/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.5.15,
* Autoprefixer: v10.5.0
* Browsers: last 2 versions,not dead
*/

:root {
  --green: #107c41;
  --green-dark: #0b5e31;
  --green-soft: #e6f4ec;
  --ribbon: #f3f2f1;
  --ribbon-border: #d1d1d1;
  --ribbon-hover: #e8e8e8;
  --grid: #d4d4d4;
  --cell: #ffffff;
  --cell-alt: #f7f9fb;
  --ink: #212121;
  --ink-2: #5f6368;
  --fx-blue: #0f6cbd;
  --fx-blue-soft: #e3effb;
  --good: #107c41;
  --bad: #c4314b;
  --bad-soft: #fce8ec;

  /* IBM Plex (SIL Open Font License), loaded from Google Fonts in index.html */
  --f-ui: "IBM Plex Sans", "Segoe UI", -apple-system, system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", -apple-system, system-ui, sans-serif;
  --f-mono:
    "IBM Plex Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  /* grows a little on big monitors so the sheet doesn't sit in a thin strip; ledes keep their ch caps */
  --maxw: clamp(1180px, 50vw + 200px, 1360px);
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* stop iOS inflating text when a phone turns sideways */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: #e9e9e9;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
  /* long URLs, emails and names wrap instead of pushing the page sideways */
  overflow-wrap: break-word;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--fx-blue);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.h1 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}
.h2 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
.lede {
  font-size: clamp(0.98rem, 1.3vw, 1.05rem);
  color: var(--ink-2);
  max-width: 60ch;
}

/* ============================================================
   TITLE BAR
   ============================================================ */
.titlebar {
  background: var(--green-dark);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 0.78rem;
  padding: 6px var(--gutter);
  display: flex;
  align-items: center;
  gap: 8px;
}
.titlebar .sq {
  width: 14px;
  height: 14px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* ============================================================
   RIBBON
   ============================================================ */
.ribbon {
  background: var(--ribbon);
  border-bottom: 1px solid var(--ribbon-border);
}
.ribbon-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--gutter);
  overflow-x: auto;
}
.ribbon-tabs {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  font-family: var(--f-ui);
  font-size: 0.8rem;
}
.ribbon-tabs button {
  background: none;
  border: 0;
  padding: 8px 14px;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.ribbon-tabs button.active {
  color: var(--green-dark);
  font-weight: 700;
  border-bottom-color: var(--green);
  background: #fff;
}
.ribbon-tabs button:hover:not(.active) {
  background: var(--ribbon-hover);
}
/* the ribbon row scrolls sideways, which clips anything drawn outside the tab */
.ribbon-tabs button:focus-visible {
  outline-offset: -2px;
}

.ribbon-panes {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}
.ribbon-pane {
  display: flex;
  gap: 2px;
}
.ribbon-pane[hidden] {
  display: none;
}
.ribbon-pane--shared {
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid var(--ribbon-border);
}
.rgroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-right: 1px solid var(--ribbon-border);
  min-width: 70px;
}
.rgroup:last-child {
  border-right: 0;
}
.rgroup .icons {
  display: flex;
  gap: 6px;
}
.ricon {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid var(--ribbon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
  padding: 0;
  line-height: 1;
}
.ricon:hover {
  background: var(--ribbon-hover);
  border-color: #bbb;
}
.ricon:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.ricon.live {
  color: var(--green-dark);
  border-color: var(--green);
}
.ricon.live:hover {
  background: var(--green-soft);
}
.ricon.active {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: var(--green);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.rgroup .glabel {
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  color: var(--ink-2);
}

/* ============================================================
   FORMULA BAR
   ============================================================ */
.formulabar {
  background: #fff;
  border-bottom: 1px solid var(--ribbon-border);
  display: flex;
  align-items: stretch;
  font-family: var(--f-mono);
  font-size: 0.82rem;
}
.namebox {
  width: 90px;
  padding: 6px 10px;
  border-right: 1px solid var(--ribbon-border);
  color: var(--ink);
  font-weight: 700;
  display: flex;
  align-items: center;
}
.fx {
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fx-blue);
  font-style: italic;
  font-weight: 700;
  border-right: 1px solid var(--ribbon-border);
}
.formula-text {
  padding: 6px 12px;
  color: var(--fx-blue);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
}

/* ============================================================
   SHEET AREA
   ============================================================ */
.sheet {
  background: #fff;
  position: relative;
}
.colheads {
  display: grid;
  grid-template-columns: 36px repeat(8, 1fr);
  background: var(--ribbon);
  border-bottom: 1px solid var(--grid);
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  color: var(--ink-2);
  position: sticky;
  top: 0;
  z-index: 5;
}
.colheads span {
  padding: 4px 0;
  text-align: center;
  border-right: 1px solid var(--grid);
}
.sheet-body {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
}
.rownums {
  background: var(--ribbon);
  border-right: 1px solid var(--grid);
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  color: var(--ink-2);
}
.rownums div {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--grid);
}
.sheet-content {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 100% 26px;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

[data-sheet][hidden] {
  display: none;
}
/* a sheet takes focus when a link inside the previous one opens it; the sheet itself needs no ring */
.sheet-pane:focus {
  outline: none;
}
.sheet-pane {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: var(--s4) var(--gutter) 0;
}
.sheet-pane .mcell:last-child {
  margin-bottom: 0;
}

/* merged-cell content blocks */
.mcell {
  background: #fff;
  border: 1px solid var(--grid);
  padding: var(--s3);
  margin-bottom: var(--s3);
}
.mcell.hero {
  border: 2px solid var(--green);
  background: var(--green-soft);
}

/* four KPIs: a 2 × 2 block on phones, one row once there's room (auto-fit would leave 3 + 1) */
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  margin: var(--s3) 0;
}
@media (min-width: 640px) {
  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.kpi {
  background: #fff;
  padding: 14px clamp(12px, 2.5vw, 16px);
}
.kpi b {
  display: block;
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--green-dark);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.kpi span {
  font-family: var(--f-ui);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: block;
  text-align: right;
  margin-top: 2px;
}

/* How I read a brief: one card per brief, read left to right as four numbered steps,
   in its report's colour, with the answer set apart at the end */
.tt {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s3);
}
.tt-row {
  --accent: var(--green);
  --accent-soft: var(--green-soft);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr 1fr;
  background: #fff;
  border: 1px solid var(--grid);
  border-left: 4px solid var(--accent);
  counter-reset: step;
}
.tt-row--r1 {
  --accent: #0a66c2;
  --accent-soft: #e6f0fa;
}
.tt-row--r2 {
  --accent: #7a4a32;
  --accent-soft: #f3eae4;
}
.tt-row--r3 {
  --accent: #094780;
  --accent-soft: #e8eef6;
}
.tt-id {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 10px 18px;
  background: var(--cell-alt);
  border-bottom: 1px solid var(--grid);
  font-family: var(--f-mono);
  font-size: 0.72rem;
}
.tt-tag {
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tt-id b {
  font-family: var(--f-ui);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.tt-open {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.tt-row > div {
  position: relative;
  padding: 16px 18px 18px;
  counter-increment: step;
}
.tt-row > div + div {
  /* extra room on the left: the arrow badge sits on this edge */
  padding-left: 26px;
  border-left: 1px solid var(--grid);
}
/* the step label: 01 · ASKED */
.tt-row > div::before {
  content: counter(step, decimal-leading-zero) " · " attr(data-l);
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* an arrow on each divider carries the eye to the next step */
.tt-row > div:not(.out)::after {
  content: "→";
  position: absolute;
  top: 12px;
  right: -11px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--grid);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.tt-row .human {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
}
.tt-row .defn {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.tt-row .code {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--fx-blue);
}
.tt-row .out {
  background: var(--accent-soft);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
}
.tt-row .out::before {
  color: var(--accent);
}
@media (max-width: 840px) {
  /* stacked: the steps run top to bottom, so the arrows point down */
  .tt-row {
    grid-template-columns: 1fr;
  }
  .tt-row > div {
    padding: 14px 16px 16px;
  }
  .tt-row > div + div {
    padding-left: 16px;
    border-left: 0;
    border-top: 1px solid var(--grid);
  }
  .tt-row > div:not(.out)::after {
    content: "↓";
    top: auto;
    right: 16px;
    bottom: -11px;
  }
  .tt-id {
    padding: 10px 16px;
  }
}

.report-tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: #fff;
  background: var(--green);
  padding: 3px 10px;
}
.report-domain {
  font-family: var(--f-ui);
  font-size: 0.7rem;
  color: var(--ink-2);
  text-transform: uppercase;
}
.report-stack {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
}
.report-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin: 8px 0 0;
}
.report-kind {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
  border: 1px solid var(--grid);
  padding: 2px 9px;
}
.report-kind.pro {
  color: var(--green-dark);
  border-color: var(--green);
}

.mv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s3);
  padding: 14px 0;
  border-bottom: 1px dashed var(--grid);
  align-items: start;
}
.mv:last-of-type {
  border-bottom: 0;
}
.mv-stage {
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 3px;
}
.mv-body {
  min-width: 0;
}
.mv-body > *:first-child {
  margin-top: 0;
}
.mv-body > *:last-child {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .mv {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.quote {
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.3;
  margin: 0 0 6px;
}
.quote-src {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
  margin: 0;
}

.chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
  border-left: 3px solid var(--green);
  padding-left: 12px;
}
.chip b {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}
.chip span {
  font-size: 0.95rem;
  color: var(--ink-2);
}
.chip span em {
  font-style: normal;
  color: var(--ink);
}

pre {
  margin: 0 0 8px;
  padding: 12px 14px;
  background: #f5f5f5;
  border: 1px solid var(--grid);
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--ink);
}
pre .k {
  color: var(--fx-blue);
  font-weight: 700;
}
pre .c {
  color: var(--ink-2);
  font-style: italic;
}
.note {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}
.finding {
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  margin: 0;
}

.preview {
  max-width: 560px;
  border: 1px solid var(--grid);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  margin: 8px 0;
}
.preview-bar {
  background: #f5f5f5;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--grid);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--ink-2);
}
.preview-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grid);
}
.preview img {
  width: 100%;
  display: block;
}
.preview-cap {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 6px 0 0;
}

/* certificates — pinned frames */
.cert-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--s5) var(--s4);
  margin-top: var(--s4);
  padding: var(--s2) var(--s1) var(--s1);
}
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: zoom-in;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.cert-frame {
  position: relative;
  width: 100%;
  padding: 7px;
  border-radius: 10px;
  background: linear-gradient(155deg, #3a3a3a, #161616 55%, #242424);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 3px rgba(0, 0, 0, 0.18),
    0 14px 24px -12px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--tilt, 0deg));
  transform-origin: 50% 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}
.cert-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #7fd3a4 0,
    var(--green) 45%,
    var(--green-dark) 100%
  );
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.35),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: transform 0.3s ease;
}
.cert-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}
.cert-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
/* glass sheen that sweeps across on hover */
.cert-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-110%);
  pointer-events: none;
}
.cert-card:hover .cert-frame,
.cert-card:focus-visible .cert-frame {
  transform: translateY(-6px) rotate(0deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 6px rgba(0, 0, 0, 0.12),
    0 26px 40px -16px rgba(0, 0, 0, 0.5);
  animation: cert-swing 0.9s ease-out;
}
.cert-card:hover .cert-pin,
.cert-card:focus-visible .cert-pin {
  transform: scale(1.15);
}
.cert-card:hover .cert-thumb img,
.cert-card:focus-visible .cert-thumb img {
  transform: scale(1.04);
}
.cert-card:hover .cert-thumb::after,
.cert-card:focus-visible .cert-thumb::after {
  transform: translateX(110%);
  transition: transform 0.8s ease;
}
.cert-card:focus-visible .cert-frame {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
@keyframes cert-swing {
  0% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
  35% {
    transform: translateY(-6px) rotate(calc(var(--tilt, 0deg) * -1.1));
  }
  65% {
    transform: translateY(-6px) rotate(calc(var(--tilt, 0deg) * 0.45));
  }
  100% {
    transform: translateY(-6px) rotate(0deg);
  }
}
.cert-label {
  margin-top: var(--s3);
  text-align: center;
  line-height: 1.35;
  transition: transform 0.35s ease;
}
.cert-card:hover .cert-label,
.cert-card:focus-visible .cert-label {
  transform: translateY(-2px);
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(16, 124, 65, 0.22);
  color: var(--green-dark);
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cert-label b {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
.cert-label span:not(.cert-badge) {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-top: 3px;
}
.cert-label small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
  margin-top: 2px;
}

/* certificate preview */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  z-index: 200;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(8px) saturate(0.9);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
.lightbox-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  max-width: 100%;
}
.lightbox-media {
  position: relative;
  line-height: 0;
  transform-origin: 0 0;
}
.lightbox img {
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f3f0;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.15s ease;
}
.lightbox.open.settled .lightbox-close {
  opacity: 1;
  transform: scale(1);
}
.lightbox-close:hover {
  background: #fff;
  transform: scale(1.08) rotate(90deg);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.lightbox-cap {
  text-align: center;
  color: #f5f3f0;
  max-width: 640px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.3s ease;
}
.lightbox.open.settled .lightbox-cap {
  opacity: 1;
  transform: none;
}
.lightbox-cap b {
  display: block;
  font-family: var(--f-ui);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}
.lightbox-cap span {
  display: block;
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  line-height: 1.55;
  color: rgba(245, 243, 240, 0.75);
}
@media (max-width: 600px) {
  .cert-row {
    gap: var(--s4);
    padding-inline: var(--s2);
  }
  .lightbox {
    padding: 32px 16px;
  }
  .lightbox-close {
    top: -14px;
    right: -6px;
  }
  .lightbox-cap b {
    font-size: 0.95rem;
  }
  .lightbox-cap span {
    font-size: 0.68rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cert-frame,
  .cert-card:hover .cert-frame,
  .cert-card:focus-visible .cert-frame {
    animation: none;
  }
  .cert-thumb::after {
    display: none;
  }
}

.result {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s4);
}
.stat b {
  display: block;
  font-weight: 700;
  color: var(--green-dark);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-family: var(--f-ui);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.wrong {
  border-left: 3px solid var(--bad);
  background: var(--bad-soft);
  padding: 12px 14px;
}
.wrong b {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bad);
  margin-bottom: 6px;
}
.wrong p {
  margin: 0;
  font-size: 0.94rem;
}
.report-links {
  font-family: var(--f-mono);
  font-size: 0.76rem;
}
.report-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--fx-blue);
}

/* simulator */
.sim {
  border: 1px solid var(--grid);
  background: #fff;
  padding: var(--s3);
}
.sim-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  margin-bottom: 8px;
}
.sim-label {
  font-family: var(--f-ui);
  font-size: 0.74rem;
  color: var(--ink-2);
}
.sim-amt {
  font-weight: 700;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: var(--green-dark);
}
#simRange {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  margin: 0 0 var(--s2);
  cursor: pointer;
}
#simRange::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--grid);
}
#simRange::-moz-range-track {
  height: 4px;
  background: var(--grid);
}
#simRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}
#simRange::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
}
.sim-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.sim-bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 88px;
  gap: var(--s2);
  align-items: center;
}
.sim-bar-label {
  font-family: var(--f-ui);
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
}
.sim-bar-label em {
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--ink-2);
  text-transform: uppercase;
}
.sim-track {
  position: relative;
  height: 11px;
  background: #f5f5f5;
  border: 1px solid var(--grid);
  overflow: visible;
}
.sim-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  transition: width 0.35s ease;
}
.sim-fill--recall {
  background: var(--good);
}
.sim-fill--fp {
  background: var(--bad);
}
.sim-target-mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 0;
  border-left: 2px dashed var(--ink);
}
.sim-val {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  text-align: right;
}
.sim-verdict {
  font-size: 0.92rem;
  margin: 8px 0 4px;
  min-height: 2.5em;
}
.sim-target-note {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--ink-2);
  margin: 0;
}

/* services/tools */
.grid4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  margin-top: var(--s3);
}
.card {
  background: #fff;
  padding: var(--s3);
  border-top: 3px solid var(--dot, var(--grid));
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    outline-color 0.15s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.22);
  z-index: 1;
}
.card:active {
  transform: translateY(-1px) scale(0.99);
}
.card.cell-selected {
  outline-color: var(--dot, var(--green));
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.22);
}

.card .tag {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: #fff;
  background: var(--dot, var(--green));
  padding: 2px 8px;
  display: inline-block;
  /* services cards are flex columns: keep the tag its own width */
  align-self: flex-start;
  margin-bottom: 8px;
}
.card h3 {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px;
}
.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.card p em {
  font-style: normal;
  color: var(--ink);
}

.card .deliv {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--grid);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.card .deliv b {
  display: block;
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 3px;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s4);
  align-items: start;
}
@media (max-width: 800px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* availability + credentials strip (Home) */

/* ============================================================
   PER-REPORT ACCENTS — each report sheet inherits the palette of
   the dashboard it contains. App chrome stays Excel green.
   Text-safe tones only: the R3 latte (#C5A899) is 2.2:1 on white,
   so it is used as fill and the roast tone carries text.
   ============================================================ */
[data-sheet="r3"] {
  --accent: #094780;
  --accent-soft: #e8eef6;
} /* PaySim navy */
[data-sheet="r1"] {
  --accent: #0a66c2;
  --accent-soft: #e6f0fa;
} /* LinkedIn blue */
[data-sheet="r2"] {
  --accent: #7a4a32;
  --accent-soft: #f3eae4;
} /* coffee roast */

.report-tag {
  background: var(--accent, var(--green));
}
.report-kind.pro {
  color: var(--accent, var(--green-dark));
  border-color: var(--accent, var(--green));
}
.stat b {
  color: var(--accent, var(--green-dark));
}
.chip {
  border-left-color: var(--accent, var(--green));
}
.chip b {
  color: var(--accent, var(--green-dark));
}
.preview-bar {
  background: var(--accent-soft, #f5f5f5);
}
.report-links a {
  color: var(--accent, var(--fx-blue));
  border-bottom-color: var(--accent, var(--fx-blue));
}

/* sheet tab colors — Excel's own right-click → Tab Color */
.stab[data-tabc] {
  box-shadow: inset 0 -3px 0 var(--tabc);
}
.stab[data-tabc].active {
  border-bottom-color: var(--tabc);
}
.stab[hidden] {
  display: none;
}
.stab--parent::after {
  /* a drawn triangle rather than the "▾" glyph, whose size varies from font to font */
  content: "";
  display: inline-block;
  margin-left: 7px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--ink-2);
}
.stab--parent.active {
  background: var(--green-soft);
}

.btn {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: 0.8rem;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  padding: 11px 20px;
}
.btn:hover {
  background: var(--green-dark);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--grid);
}
.btn.ghost:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

/* ============================================================
   SHEET TABS (bottom)
   ============================================================ */
.sheettabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--ribbon);
  border-top: 1px solid var(--ribbon-border);
  height: 34px;
  display: flex;
  align-items: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sheettabs-in {
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter);
  gap: 1px;
}
.stab {
  font-family: var(--f-ui);
  font-size: 0.74rem;
  color: var(--ink-2);
  background: var(--ribbon-hover);
  border: 1px solid var(--ribbon-border);
  border-bottom: 0;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.12s ease;
  min-height: 30px;
}
.stab:hover:not(.active) {
  background: #fff;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.stab.active {
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--green);
  position: relative;
  top: 1px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}
.stab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.tab-nudge {
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  color: var(--ink-2);
  padding: 0 14px 6px;
  white-space: nowrap;
  animation: nudge-fade 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tab-nudge.show {
  opacity: 1;
}
.tab-nudge.hidden {
  display: none;
}
@keyframes nudge-fade {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.rv {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.rv.in {
  opacity: 1;
  transform: none;
}

/* Page-specific layout and color modifiers */

.hero-photo {
  width: 220px;
  max-width: 45%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--green);
  -o-object-fit: cover;
  object-fit: cover;
  margin-top: 8px;
  flex-shrink: 0;
}
.hero-title,
.contact-title {
  margin-top: 8px;
}
.hero-lede {
  margin-top: 10px;
}
.brief-note,
.section-heading {
  margin-top: 6px;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.sim-intro {
  margin: 0 0 8px;
}
.sim-target-mark--recall {
  left: 97.7%;
}
.sim-target-mark--fp {
  left: 0;
}
.report-followup {
  margin-top: 10px;
}
.section-lede,
.contact-lede {
  margin-top: 8px;
}
.card--green {
  --dot: var(--green);
}
.card--bad {
  --dot: var(--bad);
}
.card--blue {
  --dot: var(--fx-blue);
}

.about-title {
  margin: 6px 0 10px;
}
.about-lede {
  margin-top: 12px;
}

.contact-lede {
  margin-bottom: 0;
}
.sheet-tab--r3 {
  --tabc: #094780;
}
.sheet-tab--r1 {
  --tabc: #0a66c2;
}
.sheet-tab--r2 {
  --tabc: #7a4a32;
}

/* ============================================================
   RESPONSIVE — fluid type & mobile layout
   ============================================================ */

/* Fluid font sizes for small UI text */
.eyebrow {
  font-size: clamp(0.6875rem, 0.64rem + 0.15vw, 0.72rem);
}
.kpi span {
  font-size: clamp(0.6875rem, 0.64rem + 0.15vw, 0.72rem);
}
.stat span {
  font-size: clamp(0.6875rem, 0.64rem + 0.15vw, 0.72rem);
}

.report-tag,
.report-domain,
.report-stack,
.report-kind {
  font-size: clamp(0.6875rem, 0.66rem + 0.1vw, 0.72rem);
}
.note,
.preview-cap,
.sim-verdict,
.sim-target-note {
  font-size: clamp(0.7rem, 0.66rem + 0.15vw, 0.76rem);
}
.card .tag {
  font-size: 0.6875rem;
}
.card h3 {
  font-size: clamp(0.88rem, 0.82rem + 0.3vw, 1rem);
}
.card p {
  font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
}
.tt-row .human {
  font-size: clamp(0.88rem, 0.82rem + 0.3vw, 0.98rem);
}
.tt-row .defn,
.tt-row .code {
  font-size: clamp(0.72rem, 0.69rem + 0.12vw, 0.78rem);
}
.tt-row .out {
  font-size: clamp(0.84rem, 0.78rem + 0.3vw, 0.94rem);
}

.wrong p {
  font-size: clamp(0.84rem, 0.78rem + 0.3vw, 0.94rem);
}

.sim-label {
  font-size: clamp(0.72rem, 0.69rem + 0.12vw, 0.78rem);
}
.sim-amt {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
}
.sim-bar-label {
  font-size: clamp(0.6875rem, 0.66rem + 0.1vw, 0.72rem);
}
.sim-val {
  font-size: clamp(0.72rem, 0.69rem + 0.12vw, 0.78rem);
}
.btn {
  font-size: clamp(0.78rem, 0.75rem + 0.12vw, 0.84rem);
  padding: clamp(9px, 0.5rem, 11px) clamp(14px, 1rem, 20px);
}
.formulabar {
  font-size: clamp(0.74rem, 0.7rem + 0.2vw, 0.82rem);
}
.namebox {
  width: clamp(70px, 8vw, 90px);
}

/* Mobile: hide colheads and rownums, sheet tabs as scrollable pills */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  .colheads {
    display: none;
  }
  .sheet-body {
    display: block;
  }
  .rownums {
    display: none;
  }
  .sheet-content {
    background-image: none;
  }
  .sheettabs {
    height: auto;
    min-height: 34px;
    flex-wrap: nowrap;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .sheettabs-in {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 6px var(--gutter);
  }
  .stab {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--ribbon-border);
    font-size: 0.78rem;
    flex-shrink: 0;
  }
  .stab.active {
    border-radius: 20px;
    border: 1px solid var(--green);
  }
  .stab:hover:not(.active) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .stab[data-tabc] {
    box-shadow: none;
  }
  .stab[data-tabc].active {
    border-bottom-color: var(--green);
  }
  /* the body already reserves room for the bottom tab bar */
  .sheet-pane {
    padding: var(--s3) var(--gutter) var(--s2);
  }
  .ribbon-row {
    padding: 6px var(--gutter);
  }
  .rgroup {
    padding: 4px 10px;
    min-width: 56px;
  }
  .ricon {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }
  .tt {
    margin-top: var(--s2);
  }
}

/* ============================================================
   CONTACTS — contact table, services, message composer
   ============================================================ */
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s4);
  align-items: center;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

/* headline words rise in one after another */
.word {
  display: inline-block;
}
.words-in .word {
  animation: word-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--w) * 55ms);
}

/* contact table — a small spreadsheet with a gliding cell cursor */
.ctable {
  position: relative;
  background: #fff;
  border: 1px solid var(--grid);
  box-shadow: 0 18px 40px -24px rgba(11, 94, 49, 0.45);
  font-size: 0.9rem;
}
.crow {
  position: relative;
  display: grid;
  grid-template-columns: 30px 118px minmax(0, 1fr) 76px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--grid);
}
.crow:last-child {
  border-bottom: 0;
}
.crow > * {
  padding: 0 12px;
}
.crow-n {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--ribbon);
  border-right: 1px solid var(--grid);
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  color: var(--ink-2);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.crow.is-active .crow-n {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
}
.crow--head {
  min-height: 28px;
  background: var(--ribbon);
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.crow-k {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-right: 1px solid var(--grid);
  font-family: var(--f-ui);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.crow-k svg {
  color: var(--green);
  flex-shrink: 0;
}
.crow-v {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
  text-decoration: none;
}
.crow-v small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
  line-height: 1.3;
}
.crow-v b .colon {
  animation: colon-blink 1s steps(1) infinite;
}
@keyframes colon-blink {
  50% {
    opacity: 0.2;
  }
}
/* the whole row is clickable through its link */
.crow-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.crow-link:focus-visible {
  outline: none;
}
.crow-act {
  text-align: center;
  font-family: var(--f-ui);
  font-size: 0.8rem;
  color: var(--ink-2);
  transition:
    transform 0.25s ease,
    color 0.2s ease;
}
.crow.is-active .crow-act {
  color: var(--green-dark);
  transform: translate(2px, -2px);
}
.crow-copy {
  position: relative;
  z-index: 2;
  justify-self: center;
  padding: 4px 8px;
  border: 1px solid var(--grid);
  background: #fff;
  font-family: var(--f-ui);
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.crow.is-active .crow-copy {
  transform: none;
}
.crow-copy:hover {
  border-color: var(--green);
  background: var(--green-soft);
}
.crow-copy.done {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  transform: scale(1.08);
}

/* the cell cursor: one selection box that glides between rows */
.csel {
  position: absolute;
  left: 30px;
  right: 0;
  top: 0;
  height: 46px;
  border: 2px solid var(--green);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}
.csel::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border: 1px solid #fff;
}
.csel.on {
  opacity: 1;
}

/* intro: each value is typed into its cell as the cursor reaches it */
.ctable.intro .crow:not(.crow--head) .crow-v,
.ctable.intro .crow:not(.crow--head) .crow-act {
  clip-path: inset(0 100% 0 0);
}
.ctable.intro .crow.typed .crow-v {
  animation: cell-type calc(var(--n, 16) * 24ms) steps(var(--n, 16), end)
    forwards;
}
.ctable.intro .crow.typed .crow-act {
  animation: cell-type 0.25s ease forwards;
  animation-delay: calc(var(--n, 16) * 24ms);
}
@keyframes cell-type {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* copy: Excel's marching ants around the copied cell */
.crow.copied::before {
  content: "";
  position: absolute;
  inset: 3px 3px 3px 33px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--green) 50%, transparent 0) repeat-x,
    linear-gradient(90deg, var(--green) 50%, transparent 0) repeat-x,
    linear-gradient(0deg, var(--green) 50%, transparent 0) repeat-y,
    linear-gradient(0deg, var(--green) 50%, transparent 0) repeat-y;
  background-size:
    8px 2px,
    8px 2px,
    2px 8px,
    2px 8px;
  background-position:
    0 0,
    0 100%,
    0 0,
    100% 0;
  animation: ants 0.45s linear infinite;
}
@keyframes ants {
  to {
    background-position:
      8px 0,
      -8px 100%,
      0 -8px,
      100% 8px;
  }
}

/* services — cards tilt toward the cursor under a soft spotlight */
.services .card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    outline-color 0.15s ease;
}
.services .card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--dot) 13%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.services .card:hover::after {
  opacity: 1;
}
.services .card .deliv {
  margin-bottom: 14px;
}
.card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--grid);
}
.card-actions a {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--dot);
  text-decoration: none;
}
.card-actions a:hover {
  text-decoration: underline;
}
.card-actions button {
  font-family: var(--f-ui);
  font-size: 0.7rem;
  padding: 6px 12px;
  border: 1px solid var(--dot);
  background: #fff;
  color: var(--dot);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.card-actions button:hover {
  background: var(--dot);
  color: #fff;
}

/* composer — a data-entry sheet that becomes an email */
.composer {
  margin-top: var(--s3);
  border: 1px solid var(--grid);
}
.cf-row {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  border-bottom: 1px solid var(--grid);
  transition: background 0.3s ease;
}
.cf-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ribbon);
  border-right: 1px solid var(--grid);
  font-family: var(--f-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.cf-label i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--ink-2);
}
.cf-row:focus-within .cf-label {
  background: var(--green-soft);
  color: var(--green-dark);
}
.cf-row textarea,
.cf-row input[type="text"],
.cf-row input[type="email"],
.cf-row input[type="tel"] {
  width: 100%;
  border: 0;
  padding: 12px 14px;
  font: inherit;
  /* 16px: anything smaller makes iOS zoom the page when the field is focused */
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  resize: vertical;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.2s ease;
}
.cf-row textarea:focus,
.cf-row input[type="text"]:focus,
.cf-row input[type="email"]:focus,
.cf-row input[type="tel"]:focus {
  outline-color: var(--green);
}
.cf-row ::-moz-placeholder {
  color: #757575;
}
.cf-row ::placeholder {
  color: #757575;
}
.cf-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}
.cf-chips label {
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.cf-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cf-chips span {
  display: block;
  padding: 6px 13px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: 0.76rem;
  color: var(--ink-2);
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.cf-chips label:hover span {
  border-color: var(--green);
  color: var(--green-dark);
}
.cf-chips input:checked + span {
  color: #fff;
  border-color: transparent;
}
.cf-chips input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
/* the pill that slides to whichever topic is picked */
.cf-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 6px 16px -8px rgba(11, 94, 49, 0.7);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
    width 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
    height 0.3s ease;
}
/* no pill before JS positions it: fall back to a filled chip */
.cf-chips:not(.has-pill) input:checked + span {
  background: var(--green);
}
.cf-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 14px;
}
.cf-foot .btn {
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cf-foot .note {
  flex: 1;
  min-width: 220px;
  margin: 0;
}
/* composer rows flash green in sequence as the message is assembled */
.composer.sending .cf-row {
  animation: flash-fill 0.7s ease both;
  animation-delay: calc(var(--r) * 90ms);
}
@keyframes flash-fill {
  0% {
    background: transparent;
  }
  35% {
    background: var(--green-soft);
  }
  100% {
    background: transparent;
  }
}
.cf-row.nudge {
  animation: nudge 0.9s ease;
}
@keyframes nudge {
  0%,
  100% {
    background: transparent;
  }
  30% {
    background: var(--green-soft);
  }
}

/* sections rise into view as they are scrolled to */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.rise.risen {
  opacity: 1;
  transform: none;
}

.sheet-foot {
  text-align: center;
  margin: 0 0 var(--s4);
}

@media (max-width: 900px) {
  .contact-hero {
    grid-template-columns: 1fr;
  }
}
/* a narrow contact table (phones, or beside the intro on small laptops) puts each
   field's name above its value, so the email and CV link are never cut short */
.ctable {
  container-type: inline-size;
}
@container (max-width: 440px) {
  .crow {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 58px;
  }
  .crow-n {
    grid-row: 1 / 3;
  }
  .crow-k {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    padding-top: 9px;
    border-right: 0;
    font-size: 0.7rem;
    line-height: 1.3;
  }
  /* the value gets the full width; Copy / ↗ sit on the label's line */
  .crow-v {
    grid-column: 2 / 4;
    grid-row: 2;
    padding-bottom: 9px;
    line-height: 1.35;
  }
  .crow-act {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    min-width: 44px;
  }
  .crow-copy {
    min-height: 30px;
    margin: 6px 10px 0 0;
    padding: 4px 12px;
  }
  .crow--head {
    grid-template-rows: auto;
    min-height: 28px;
  }
  .crow--head .crow-n {
    grid-row: auto;
  }
  .crow--head span:nth-child(n + 3) {
    display: none;
  }
  .crow--head span:nth-child(2)::after {
    content: " · Value";
  }
}
@media (max-width: 600px) {
  .cf-row {
    grid-template-columns: 1fr;
  }
  .cf-label {
    border-right: 0;
    border-bottom: 1px solid var(--grid);
    padding: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rise {
    opacity: 1;
    transform: none;
  }
  .crow-v b .colon {
    animation: none;
  }
}

/* ============================================================
   PROJECT GALLERY — each report runs on a monitor on the desk
   (same dark bezel as the certificates, but standing, not pinned)
   ============================================================ */
.proj-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: var(--s5) var(--s4);
  margin-top: var(--s4);
  padding: var(--s2) var(--s1) var(--s1);
}
.proj-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
/* the screen: upright, a deeper chin, and a power light in the report's colour */
.proj-card .cert-frame {
  --stand: 22px;
  margin-bottom: var(--stand);
  padding: 7px 7px 13px;
  transform: none;
  transform-origin: 50% 100%;
  background:
    radial-gradient(
      circle at 50% calc(100% - 6.5px),
      var(--pin) 0 1.8px,
      transparent 2.4px
    ),
    linear-gradient(155deg, #3a3a3a, #161616 55%, #242424);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}
/* neck and foot of the stand */
.proj-card .cert-frame::before,
.proj-card .cert-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}
.proj-card .cert-frame::before {
  top: 100%;
  width: 16%;
  height: calc(var(--stand) - 5px);
  transform: translateX(-50%);
  background: linear-gradient(90deg, #1c1c1c, #3a3a3a 45%, #262626);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.proj-card .cert-frame::after {
  top: calc(100% + var(--stand) - 5px);
  width: 34%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 2px 2px 5px 5px;
  background: linear-gradient(180deg, #3a3a3a, #1a1a1a);
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.35);
}
.proj-thumb {
  aspect-ratio: 16 / 10;
}
.proj-thumb img {
  -o-object-position: top center;
  object-position: top center;
}
/* hover: the screen grows a touch from its base (so it stays on the stand) and glows in the report's colour */
.proj-card:hover .cert-frame,
.proj-card:focus-visible .cert-frame {
  transform: scale(1.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px color-mix(in srgb, var(--pin) 35%, transparent),
    0 18px 34px -14px color-mix(in srgb, var(--pin) 55%, rgba(0, 0, 0, 0.5));
}
.proj-card:hover .cert-thumb img,
.proj-card:focus-visible .cert-thumb img {
  transform: scale(1.04);
}
.proj-card:hover .cert-thumb::after,
.proj-card:focus-visible .cert-thumb::after {
  transform: translateX(110%);
  transition: transform 0.8s ease;
}
.proj-card:focus-visible .cert-frame {
  outline: 2px solid var(--pin);
  outline-offset: 4px;
}
.proj-body {
  margin-top: var(--s3);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proj-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.proj-tag {
  padding: 2px 8px;
  background: var(--pin);
  color: #fff;
}
.proj-body h3 {
  margin: 10px 0 4px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.proj-card:hover h3 {
  color: var(--pin);
}
.proj-ask {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.5;
}
.proj-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0 0;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}
.proj-stats div {
  padding: 10px 8px 10px 0;
}
.proj-stats div + div {
  padding-left: 10px;
  border-left: 1px solid var(--grid);
}
.proj-stats dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: var(--pin);
  line-height: 1.2;
}
.proj-stats dt {
  margin-top: 2px;
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.3;
}
.proj-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin: auto 0 0;
  padding-top: 12px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}
.proj-open {
  color: var(--pin);
  font-weight: 700;
  transform: translateX(-6px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover .proj-open,
.proj-card:focus-visible .proj-open {
  transform: none;
}

/* KPIs — each number opens the report it came from */
a.kpi {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition:
    background 0.2s ease,
    outline-color 0.2s ease;
}
a.kpi:hover,
a.kpi:focus-visible {
  background: var(--green-soft);
  outline-color: var(--green);
}
.kpi span {
  display: block;
  text-align: right;
}
.kpi-go {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--green-dark);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.3s ease;
}
a.kpi:hover .kpi-go,
a.kpi:focus-visible .kpi-go {
  opacity: 1;
  transform: none;
}

/* brief rows open their report */
.tt-row[data-goto] {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.tt-row[data-goto]:hover,
.tt-row[data-goto]:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.tt-row[data-goto]:hover .tt-open,
.tt-row[data-goto]:focus-visible .tt-open {
  transform: translateX(3px);
}

/* dashboard screenshots zoom into the preview */
.preview[data-zoom] {
  cursor: zoom-in;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.preview[data-zoom]:hover,
.preview[data-zoom]:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.35);
}
.preview[data-zoom] .preview-bar::after {
  content: "⤢ Click to enlarge";
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
/* one line only: the filename and the hint never wrap into a tall bar */
.preview-bar {
  white-space: nowrap;
  overflow: hidden;
}
@media (pointer: coarse) {
  .preview[data-zoom] .preview-bar::after {
    content: "⤢ Tap to enlarge";
  }
}
@media (max-width: 420px) {
  .preview[data-zoom] .preview-bar::after {
    content: "⤢";
    font-size: 0.9rem;
  }
}
.preview[data-zoom]:hover .preview-bar::after {
  opacity: 1;
}
.lightbox img {
  max-width: min(1200px, 94vw);
}

/* tools: three columns, so six cards fill two whole rows */
@media (min-width: 900px) {
  .grid4--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* home hero: title and lede share one column beside the photo */
h1.eyebrow {
  font-weight: 400;
}

/* ============================================================
   CHART BAND — every sheet opens on a line chart that draws itself
   ============================================================ */
/* styled as a chart embedded in the sheet: white plot area, Excel green + charcoal series */
.chart-band {
  --cb-a: var(--green);
  --cb-b: #3a3f44;
  --cb-grid: #e3e6e8;
  --cb-bg: #fff;
  position: relative;
  /* decorative, so it gives way on short screens (sideways phones, small laptops) */
  height: clamp(100px, 22vh, 170px);
  margin-bottom: var(--s3);
  background: linear-gradient(180deg, var(--cb-bg) 50%, #f4f9f6);
  border: 1px solid var(--grid);
  overflow: hidden;
  /* the chart redraws itself every frame while it draws in: keep that layout and paint
     work inside the band instead of letting it dirty the sheet around it */
  contain: layout paint style;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.chart-band--tall {
  height: clamp(110px, 26vh, 210px);
}
/* phones: the band keeps its original height; the label is tucked up a little so the
   lines have room to move underneath it */
@media (max-width: 700px) {
  .chart-band--line .cb-label {
    top: 12px;
  }
}
.cb-label {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 2;
  margin: 0;
  font-family: var(--f-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--cb-a);
}
.chart-band.drawn .cb-label {
  animation: cb-label 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chart-band svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cb-grid {
  stroke: var(--cb-grid);
  stroke-width: 1;
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
}
.chart-band.drawn .cb-grid {
  animation: cb-draw 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--g) * 90ms);
}
.cb-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}
.cb-line--a {
  stroke: var(--cb-a);
}
.cb-line--b {
  stroke: var(--cb-b);
}
.chart-band.drawn .cb-line {
  animation: cb-draw 1.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.chart-band.drawn .cb-line--b {
  animation-delay: 0.22s;
}
.chart-band.live .cb-line {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
}
@keyframes cb-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.cb-dot {
  stroke: var(--cb-bg);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: r 0.25s ease;
}
.cb-dot--a {
  fill: var(--cb-a);
}
.cb-dot--b {
  fill: var(--cb-b);
}
.chart-band.drawn .cb-dot {
  animation: cb-pop 0.45s cubic-bezier(0.34, 1.8, 0.64, 1) forwards;
  animation-delay: var(--d);
}
.chart-band.live .cb-dot {
  transform: scale(1);
  animation: none;
}
.cb-dot.hot {
  r: 6;
}
@keyframes cb-pop {
  to {
    transform: scale(1);
  }
}
.cb-cross {
  stroke: rgba(16, 124, 65, 0.4);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.chart-band:hover .cb-cross {
  opacity: 1;
}
.chart-band + .mcell > p.eyebrow:first-child {
  display: none;
}

@media (max-width: 700px) {
  /* the ribbon scrolls sideways: fade its right edge so that reads as "more" */
  .ribbon-row {
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .ribbon-row::-webkit-scrollbar {
    display: none;
  }
  .proj-row {
    gap: var(--s4);
    padding-inline: var(--s1);
  }
  .chart-band,
  .chart-band--tall {
    height: clamp(96px, 17vh, 130px);
  }
  .cb-label {
    top: 16px;
    left: 16px;
    font-size: 0.6875rem;
    letter-spacing: 0.4em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .proj-card:hover .cert-frame,
  .proj-card:focus-visible .cert-frame {
    animation: none;
  }
  .cb-grid,
  .cb-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .cb-dot {
    transform: scale(1);
  }
}

/* IBM Plex headlines: SemiBold with slightly tighter tracking reads more refined than Bold at display sizes */
.h1,
.h2,
.report-title {
  font-weight: 600;
}
.h1 {
  letter-spacing: -0.02em;
}

/* ============================================================
   ABOUT ROADMAP — a rope that fills as you scroll, lighting each milestone
   ============================================================ */
@media (min-width: 801px) {
  .about-bio {
    position: sticky;
    top: 48px;
  }
}
.roadmap {
  position: relative;
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 8px 0 8px 70px;
}
.rm-rope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.rm-track {
  fill: none;
  stroke: var(--grid);
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}
.rm-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
}
/* the filled rope is revealed by a window sliding over it (see the roadmap script):
   the window and the rope inside it move by opposite amounts, so only the edge travels */
.rm-clip {
  position: absolute;
  /* only as wide as the rope's sway, so the layers behind it stay small */
  top: 0;
  bottom: 0;
  left: 0;
  width: 56px;
  overflow: hidden;
  pointer-events: none;
  /* both are moved by the script in the same frame (no transition: see the roadmap script) */
  transform: translateY(-100%);
  will-change: transform;
}
.rm-clip > svg {
  transform: translateY(100%);
  will-change: transform;
}
/* the rope's tip: a 12px ring with a 3px stroke centred on its edge */
.rm-head {
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  box-sizing: border-box;
  border: 3px solid var(--green);
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform, opacity;
}
.rm-item {
  position: relative;
  padding: 0 0 26px;
}
.rm-item:last-child {
  padding-bottom: 0;
}
/* milestone badge — grey until the rope reaches it, then it pops into its brand colour */
.rm-node {
  --c: var(--green);
  --bg: #fff;
  position: absolute;
  left: -70px;
  top: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--c);
  border: 2px solid var(--c);
  box-shadow: 0 0 0 5px #fff;
  filter: grayscale(1);
  opacity: 0.45;
  transform: scale(0.86);
  transition:
    filter 0.45s ease,
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.34, 1.7, 0.64, 1);
}
.rm-node--frontend {
  --c: #e34f26;
}
.rm-node--powerbi {
  --c: #1f1f1f;
  --bg: #f2c811;
  border-color: #d9b30c;
}
.rm-node--google {
  --c: #4285f4;
}
.rm-node--datacamp {
  --c: #03ef62;
  --bg: #05192d;
  border-color: #05192d;
}
.rm-node--pipeline {
  --c: #ff694a;
}
.rm-node--ms {
  --c: #737373;
  border-color: #d0d0d0;
}
.rm-item.reached .rm-node {
  filter: none;
  opacity: 1;
  transform: scale(1);
}
/* today: a soft ring keeps pulsing on the current milestone */
.rm-item--now.reached .rm-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: rm-ping 2.2s ease-out infinite;
}
@keyframes rm-ping {
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}
/* the future stays hollow and dashed */
.rm-item--next .rm-node {
  border-style: dashed;
}
.rm-item--next.reached .rm-node {
  filter: grayscale(0.6);
  opacity: 0.8;
}
.rm-card {
  padding: 10px 14px 12px;
  border: 1px solid var(--grid);
  background: #fff;
  opacity: 0.45;
  transform: translateX(10px);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}
.rm-item.reached .rm-card {
  opacity: 1;
  transform: none;
}
.rm-item.reached .rm-card:hover {
  border-color: var(--green);
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.3);
}
.rm-item--now .rm-card {
  border-color: var(--green);
  background: var(--green-soft);
}
.rm-item--next .rm-card {
  border-style: dashed;
}
.rm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 4px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
}
.rm-tag {
  font-weight: 700;
  color: var(--green-dark);
}
.rm-date {
  color: var(--ink-2);
}
.rm-now {
  padding: 1px 7px;
  background: var(--green);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rm-card b {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
}
.rm-card > span {
  display: block;
  margin-top: 3px;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (max-width: 600px) {
  .roadmap {
    padding-left: 54px;
  }
  .rm-node {
    left: -54px;
    width: 34px;
    height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rm-node,
  .rm-card {
    filter: none;
    opacity: 1;
    transform: none;
  }
  .rm-item--now.reached .rm-node::after {
    animation: none;
  }
}

/* ============================================================
   TOOLS — brand tiles, evidence chips, and a tool × project matrix
   ============================================================ */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tools .card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    outline-color 0.15s ease;
}
/* brand-tinted spotlight that follows the pointer */
.tools .card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--dot) 12%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tools .card:hover::after {
  opacity: 1;
}
.tool-logos {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}
.tool-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow:
    0 8px 18px -10px var(--dot),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.5s cubic-bezier(0.34, 1.7, 0.64, 1);
}
.tool-sub {
  position: absolute;
  right: -10px;
  bottom: -8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.5s cubic-bezier(0.34, 1.7, 0.64, 1) 0.05s;
}
.tools .card:hover .tool-tile {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
}
.tools .card:hover .tool-sub {
  transform: translate(3px, 2px) rotate(8deg);
}
.tool-when {
  align-self: flex-start;
  margin: 2px 0 8px !important;
  padding: 2px 8px;
  background: color-mix(in srgb, var(--dot) 12%, #fff);
  border-left: 2px solid var(--dot);
  color: var(--ink) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
}
.tool-used {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto !important;
  padding-top: 14px;
}
.tool-used span {
  margin-right: 2px;
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tool-used a {
  position: relative;
  z-index: 1;
  padding: 2px 8px;
  border: 1px solid var(--grid);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.tool-used a:hover {
  border-color: var(--dot);
  background: var(--dot);
  color: #fff;
}

/* the matrix — an Excel table with conditional formatting */
.tm-wrap {
  margin-top: var(--s3);
  overflow-x: auto;
  border: 1px solid var(--grid);
}
.tmatrix {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tmatrix th,
.tmatrix td {
  border-bottom: 1px solid var(--grid);
  border-right: 1px solid var(--grid);
  padding: 0;
  height: 48px;
  transition: background 0.15s ease;
}
.tmatrix tr > :last-child {
  border-right: 0;
}
.tmatrix thead th {
  height: auto;
  padding: 10px 12px;
  background: var(--green);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border-right-color: rgba(255, 255, 255, 0.2);
}
.tmatrix thead th.tm-corner {
  text-align: left;
}
.tmatrix thead button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tmatrix thead button span {
  margin-top: 1px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.92;
}
.tmatrix thead button:hover b {
  text-decoration: underline;
}
.tmatrix tbody tr:nth-child(even) {
  background: var(--cell-alt);
}
.tmatrix tbody th {
  padding: 0 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
/* when the matrix scrolls sideways on a phone, the tool names stay pinned on the left */
.tmatrix tbody th,
.tmatrix tfoot th,
.tmatrix thead .tm-corner {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: inset -1px 0 0 var(--grid);
}
.tmatrix tbody tr:nth-child(even) th {
  background: var(--cell-alt);
}
.tmatrix tfoot th {
  background: var(--ribbon);
}
.tmatrix thead .tm-corner {
  background: var(--green);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.2);
}
@media (max-width: 600px) {
  .tmatrix {
    min-width: 540px;
    font-size: 0.84rem;
  }
  .tmatrix tbody th,
  .tmatrix tfoot th {
    padding: 0 10px;
  }
  .tm-logo {
    margin-right: 8px;
  }
  .tmatrix .tm-total {
    min-width: 88px;
  }
}
.tmatrix tbody tr:hover > th {
  background: var(--green-soft);
}
.tm-logo {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 6px;
  vertical-align: middle;
}
.tm-logo svg {
  width: 14px;
  height: 14px;
}
.tm-c {
  position: relative;
  text-align: center;
  cursor: default;
}
.tm-dot {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  transform: scale(0.01);
  transition: transform 0.5s cubic-bezier(0.34, 1.7, 0.64, 1);
  transition-delay: calc((var(--r) + var(--c)) * 60ms);
}
.tm-c--b .tm-dot {
  background: var(--green);
}
.tm-c--v .tm-dot {
  background: #9fd8b8;
  border: 2px solid var(--green);
}
.tm-c--none .tm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grid);
}
.tmatrix.seen .tm-dot {
  transform: scale(1);
}
/* data bars in the Total column, like Excel conditional formatting */
.tm-total {
  position: relative;
  min-width: 120px;
  padding: 0 12px !important;
  text-align: right;
}
.tm-bar {
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: calc((100% - 16px) * var(--v));
  background: linear-gradient(90deg, #63be7b, #c6e9d1);
  border-left: 2px solid var(--green);
  transform: scaleX(0.001);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.tmatrix.seen .tm-bar {
  transform: scaleX(1);
}
.tm-total b,
.tmatrix tfoot b {
  position: relative;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.tmatrix tfoot th,
.tmatrix tfoot td {
  height: 40px;
  background: var(--ribbon);
  border-bottom: 0;
  text-align: center;
  font-size: 0.8rem;
}
.tmatrix tfoot th {
  padding: 0 14px;
  text-align: left;
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* crosshair: hovering a cell lights its row and column */
.tmatrix tbody tr:hover > * {
  background: var(--green-soft);
}
.tmatrix[data-hl="0"] [data-col="0"],
.tmatrix[data-hl="1"] [data-col="1"],
.tmatrix[data-hl="2"] [data-col="2"],
.tmatrix[data-hl="3"] [data-col="3"],
.tmatrix[data-hl="4"] [data-col="4"] {
  background: var(--green-soft);
}
.tmatrix thead [data-col] {
  background: var(--green);
}
.tmatrix[data-hl="0"] thead [data-col="0"],
.tmatrix[data-hl="1"] thead [data-col="1"],
.tmatrix[data-hl="2"] thead [data-col="2"],
.tmatrix[data-hl="3"] thead [data-col="3"],
.tmatrix[data-hl="4"] thead [data-col="4"] {
  background: var(--green-dark);
}
.tm-c:hover {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.tm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 12px 0 0;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}
.tm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tm-key {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.tm-key--b {
  background: var(--green);
}
.tm-key--v {
  background: #9fd8b8;
  border: 2px solid var(--green);
}
@media (prefers-reduced-motion: reduce) {
  .tm-dot,
  .tm-bar {
    transform: none;
  }
}

/* ============================================================
   NAVIGATION — report pager (all sizes), tab bar + menu (phones)
   ============================================================ */
.report-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 0 var(--s3);
  background: var(--grid);
  border: 1px solid var(--grid);
}
.report-pager a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease;
}
.report-pager a:hover {
  background: var(--green-soft);
}
.report-pager .rp-next {
  text-align: right;
}
.report-pager span {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--green-dark);
}
.report-pager b {
  font-size: 0.95rem;
  font-weight: 600;
}

.menu-btn,
.mbar,
.drawer {
  display: none;
}

@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  /* the ribbon and sheet tabs give way to proper phone navigation */
  .ribbon,
  .sheettabs {
    display: none;
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .titlebar {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 48px;
  }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -4px -8px -4px auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .menu-btn:active {
    background: rgba(255, 255, 255, 0.15);
  }

  /* bottom tab bar */
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--grid);
  }
  .mtab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 52px;
    padding: 6px 0 4px;
    border: 0;
    background: none;
    color: var(--ink-2);
    font-family: var(--f-ui);
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
  }
  .mtab svg {
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.7, 0.64, 1);
  }
  .mtab span {
    position: relative;
    z-index: 1;
  }
  /* active tab: a soft green pill grows behind the icon */
  .mtab::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 54px;
    height: 30px;
    margin-left: -27px;
    border-radius: 999px;
    background: var(--green-soft);
    transform: scaleX(0.3);
    opacity: 0;
    transition:
      transform 0.35s cubic-bezier(0.34, 1.5, 0.64, 1),
      opacity 0.2s ease;
  }
  .mtab.active {
    color: var(--green-dark);
  }
  .mtab.active::before {
    transform: none;
    opacity: 1;
  }
  .mtab.active svg {
    transform: translateY(-1px) scale(1.06);
  }
  .mtab:active svg {
    transform: scale(0.9);
  }

  /* menu: a sheet that slides up from the bottom */
  .drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    visibility: hidden;
    transition: visibility 0s linear 0.4s;
  }
  .drawer.open {
    visibility: visible;
    transition: none;
  }
  .drawer-scrim {
    position: absolute;
    inset: 0;
    background: rgba(13, 20, 16, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
  }
  .drawer.open .drawer-scrim {
    opacity: 1;
  }
  .drawer-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, 0.45);
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    /* already on its own layer when the tap lands, so the slide starts on the next frame */
    will-change: transform;
    contain: layout style;
  }
  .drawer.open .drawer-panel {
    transform: none;
    /* once open it settles back into the page, which keeps its text as sharp as before */
    will-change: auto;
  }
  .drawer-panel::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: var(--grid);
  }
  .drawer-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grid);
    font-family: var(--f-ui);
    font-size: 0.8rem;
  }
  .drawer-head .sq {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
  }
  .drawer-head b {
    font-weight: 600;
    color: var(--ink);
  }
  .drawer-x {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: -6px -6px -6px auto;
    border: 0;
    border-radius: 50%;
    background: var(--ribbon);
    color: var(--ink);
    cursor: pointer;
  }
  .drawer-k {
    margin: 16px 0 6px;
    font-family: var(--f-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .drawer-list,
  .drawer-sub {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .drawer-list > li {
    border-bottom: 1px solid var(--grid);
  }
  .drawer-list button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 0 10px 0 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .drawer-list button:active {
    background: var(--cell-alt);
  }
  /* sheet index, like Excel's row numbers */
  .dn {
    display: grid;
    place-items: center;
    width: 28px;
    align-self: stretch;
    background: var(--ribbon);
    border-right: 1px solid var(--grid);
    font-family: var(--f-ui);
    font-size: 0.68rem;
    color: var(--ink-2);
  }
  .drawer-list svg {
    color: var(--green);
    flex-shrink: 0;
  }
  .drawer-list b {
    font-size: 0.98rem;
    font-weight: 600;
  }
  .drawer-list button.is-current {
    color: var(--green-dark);
    background: var(--green-soft);
  }
  .drawer-list button.is-current .dn {
    background: var(--green);
    color: #fff;
  }
  .drawer-sub {
    padding: 0 0 8px 40px;
  }
  .drawer-sub button {
    min-height: 44px;
    gap: 10px;
    padding: 4px 8px;
    border-radius: 6px;
  }
  .drawer-sub i {
    width: 4px;
    align-self: stretch;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--tabc);
  }
  .drawer-sub b {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tabc);
    white-space: nowrap;
  }
  .drawer-sub span {
    font-size: 0.86rem;
    color: var(--ink);
    line-height: 1.3;
  }
  /* list items drift up one after another as the sheet opens */
  .drawer-list > li,
  .drawer-actions > * {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.3s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .drawer.open .drawer-list > li,
  .drawer.open .drawer-actions > * {
    opacity: 1;
    transform: none;
  }
  .drawer.open .drawer-list > li:nth-child(1) {
    transition-delay: 0.08s;
  }
  .drawer.open .drawer-list > li:nth-child(2) {
    transition-delay: 0.11s;
  }
  .drawer.open .drawer-list > li:nth-child(3) {
    transition-delay: 0.14s;
  }
  .drawer.open .drawer-list > li:nth-child(4) {
    transition-delay: 0.17s;
  }
  .drawer.open .drawer-list > li:nth-child(5) {
    transition-delay: 0.2s;
  }
  .drawer.open .drawer-list > li:nth-child(6) {
    transition-delay: 0.23s;
  }
  .drawer.open .drawer-actions > * {
    transition-delay: 0.26s;
  }
  .drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .da {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--grid);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }
  .da:first-child {
    grid-column: 1 / -1;
    background: var(--green);
    border-color: var(--green);
    color: #fff;
  }
  .da svg {
    flex-shrink: 0;
  }
  .da:not(:first-child) svg {
    color: var(--green);
  }
  html.menu-lock,
  html.menu-lock body {
    overflow: hidden;
  }
  .report-pager {
    grid-template-columns: 1fr;
  }
  .report-pager .rp-next {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drawer-list > li,
  .drawer-actions > * {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  /* the empty spreadsheet tail only makes sense next to row numbers, which phones hide */
  .sheet-content {
    min-height: 0 !important;
  }
}

/* the roadmap's first placement on arrival happens without transitions */
.roadmap.rm-instant .rm-clip,
.roadmap.rm-instant .rm-clip > svg,
.roadmap.rm-instant .rm-head,
.roadmap.rm-instant .rm-node,
.roadmap.rm-instant .rm-card {
  transition: none !important;
}

/* ============================================================
   HOME HERO — status, headline with highlighter, photo as the selected cell
   ============================================================ */
.mcell.hero2 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s4);
  align-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--grid);
  border-top: 3px solid var(--green);
  overflow: hidden;
}
/* a faint spreadsheet grid that fades out behind the photo */
.mcell.hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 88px 26px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(
    ellipse 55% 75% at 78% 50%,
    #000 10%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 55% 75% at 78% 50%,
    #000 10%,
    transparent 75%
  );
}
/* above the faint grid, explicitly: on phones the photo is reordered first (order: -1),
   and paint order follows that, which would otherwise put the grid over her face */
.hero-main,
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(16, 124, 65, 0.25);
  border-radius: 999px;
  background: var(--green-soft);
  font-size: 0.8rem;
  line-height: 1.3;
}
.hero-status b {
  color: var(--green-dark);
  font-weight: 700;
}
.hero-status span {
  color: var(--ink-2);
}
.hero-status .live-dot {
  margin-right: 0;
}
/* the details read as one line joined by dots; each item stays whole when it wraps */
.hs-meta > span {
  white-space: nowrap;
}
.hs-meta > span + span::before {
  content: "·";
  margin: 0 0.45em;
}
/* phones: the status on one line, the details as small chips beneath it */
@media (max-width: 560px) {
  .hero-status {
    display: flex;
    gap: 8px 8px;
    padding: 10px 12px 12px;
    border-radius: 14px;
  }
  .hs-meta {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 100%;
    gap: 6px;
  }
  .hero-status .hs-meta > span {
    padding: 3px 9px;
    border: 1px solid rgba(16, 124, 65, 0.18);
    border-radius: 999px;
    background: #fff;
    font-size: 0.72rem;
  }
  .hs-meta > span + span::before {
    content: none;
  }
  /* as standalone chips each item starts with a capital */
  .hs-meta > span::first-letter {
    text-transform: uppercase;
  }
}
.hero2 .hero-title {
  margin-top: 10px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.05;
}
/* the highlighter pen that sweeps under "make sense." */
.hl {
  color: inherit;
  background: none;
}
.hero2 .hero-lede {
  margin: 18px 0 0;
  max-width: 56ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.hero-ctas .btn {
  padding: 12px 20px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.hero-ctas .btn:not(.ghost):hover {
  box-shadow: 0 10px 20px -10px rgba(11, 94, 49, 0.7);
}
.btn-icon {
  display: inline-grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 !important;
}
.hero-creds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
}
.hero-creds .k {
  margin-right: 4px;
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cred {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.cred:hover {
  border-color: var(--green);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.cred-logo {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--grid);
}
.cred--soon {
  border-style: dashed;
  color: var(--ink-2);
}

/* photo: the selected cell, with its name box label and fill handle */
.hero-visual {
  justify-self: center;
  width: min(100%, 340px);
  padding: 26px;
}
.hero-cell {
  position: relative;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 55%, #fff 0, var(--green-soft) 70%);
  border: 2px solid var(--green);
  box-shadow: 0 30px 50px -30px rgba(11, 94, 49, 0.55);
}
.hero-cell .hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  -o-object-fit: contain;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}
.hero-ref {
  position: absolute;
  top: -24px;
  left: -2px;
  padding: 2px 8px;
  background: var(--green);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
}
.hero-handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border: 2px solid #fff;
}
/* her tools sit around the photo */
.hero-tool {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  box-shadow:
    0 12px 22px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.6, 0.64, 1),
    box-shadow 0.3s ease;
}
.hero-tool--t1 {
  top: 6px;
  right: 0;
}
.hero-tool--t2 {
  top: 42%;
  left: 0;
}
.hero-tool--t3 {
  bottom: 0;
  right: 18%;
}
.hero-tool--t4 {
  bottom: 22%;
  right: -4px;
}
.hero-tool:hover,
.hero-tool:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 26px -12px rgba(0, 0, 0, 0.55);
}
/* the tool's name appears beside it on hover */
.hero-tool::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  padding: 3px 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(4px, -50%);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.hero-tool--t2::after {
  right: auto;
  left: calc(100% + 8px);
  transform: translate(-4px, -50%);
}
.hero-tool:hover::after,
.hero-tool:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

/* opening sequence, played once when the page opens */
.hero-in .hero-status,
.hero-in .hero-lede,
.hero-in .hero-ctas,
.hero-in .hero-creds {
  animation: hero-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-in .hero-status {
  animation-delay: 0s;
}
.hero-in .hero-lede {
  animation-delay: 0.45s;
}
.hero-in .hero-ctas {
  animation-delay: 0.55s;
}
.hero-in .hero-creds {
  animation-delay: 0.65s;
}
@keyframes hero-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.hero-in .hero-cell {
  animation: cell-select 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
@keyframes cell-select {
  from {
    opacity: 0;
    clip-path: inset(0 100% 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(-80px -80px -80px -80px);
  }
}
.hero-in .hero-ref,
.hero-in .hero-handle {
  animation: hero-fade 0.4s ease 0.9s both;
}
@keyframes hero-fade {
  from {
    opacity: 0;
  }
}
.hero-in .hero-tool {
  animation: tool-pop 0.55s cubic-bezier(0.34, 1.7, 0.64, 1) both;
  animation-delay: calc(0.85s + var(--i) * 0.1s);
}
@keyframes tool-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

/* the contact hero stacks early: its table needs the full width */
@media (max-width: 860px) {
  .mcell.hero2.contact-hero {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }
}
/* the home hero keeps text beside the photo on tablets and sideways phones;
   it only stacks on portrait phones and very narrow windows */
@media (max-width: 760px) and (orientation: portrait), (max-width: 559px) {
  .mcell.hero2 {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }
  .hero-visual {
    order: -1;
    justify-self: center;
    width: min(100%, 230px);
    padding: 24px 22px 18px 22px;
  }
  .mcell.hero2::before {
    -webkit-mask-image: radial-gradient(
      ellipse 70% 40% at 50% 18%,
      #000 10%,
      transparent 75%
    );
    mask-image: radial-gradient(
      ellipse 70% 40% at 50% 18%,
      #000 10%,
      transparent 75%
    );
  }
}
@media (max-width: 860px) {
  .hero-tool {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .hero-tool svg {
    width: 17px;
    height: 17px;
  }
}
@media (max-width: 420px) {
  .hero-status span {
    font-size: 0.74rem;
  }
  /* primary action takes the row; CV shares the next one with the icon links */
  .hero-ctas {
    gap: 8px;
  }
  .hero-ctas .btn:not(.btn-icon) {
    flex: 1 1 0;
    min-width: -moz-max-content;
    min-width: max-content;
    justify-content: center;
    padding-inline: 14px;
    text-align: center;
  }
  .hero-ctas .btn:first-child {
    flex-basis: 100%;
  }
}
/* keep the highlighted phrase on one line so the marker stroke stays whole */
.hl {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .hero-status {
    border-radius: 14px;
  }
}

/* Contacts intro shares the Home hero look; the contact table sits where the photo does */
@media (min-width: 861px) {
  .mcell.hero2.contact-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}
.contact-hero .contact-title {
  margin-top: 10px;
}
.contact-hero .ctable {
  position: relative;
}

/* composer chips: 12px mid-grey text looked soft on standard-density screens */
.cf-chips span {
  padding: 7px 14px;
  font-size: 0.84rem;
  color: var(--ink);
}
.cf-chips input:checked + span {
  font-weight: 600;
}

/* footer: a cell-aligned status bar instead of loose text on the gridlines */
.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 0 0 var(--s3);
  padding: 9px 14px;
  background: var(--ribbon);
  border: 1px solid var(--grid);
  text-align: left;
}
.sheet-foot .ready {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-ui);
  font-weight: 600;
  color: var(--green-dark);
}
.sheet-foot .ready::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---- contact form: direct sending ---- */
/* the honeypot: off-screen for people, still in the form for bots */
.cf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cf-foot .btn:disabled {
  opacity: 0.75;
  cursor: progress;
}
.cf-turnstile:empty {
  display: none;
}
/* a cell that needs attention: Excel-style red border and label */
.cf-row--error .cf-label {
  background: var(--bad-soft);
  color: var(--bad);
}
.cf-row--error textarea,
.cf-row--error input {
  outline-color: var(--bad) !important;
  background: #fffafb;
}
.cf-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.86rem;
}
.cf-status:empty {
  display: none;
}
.cf-status--error {
  color: var(--bad);
}
.cf-status a {
  color: inherit;
  font-weight: 600;
}
/* sent: the form gives way to a confirmation */
.cf-done:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: var(--s3);
  padding: 22px;
  border: 1px solid var(--green);
  background: var(--green-soft);
  outline: none;
  animation: hero-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cf-done-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  animation: tool-pop 0.55s cubic-bezier(0.34, 1.7, 0.64, 1) 0.15s both;
}
.cf-done b {
  display: block;
  font-size: 1.1rem;
  color: var(--green-dark);
}
.cf-done p {
  margin: 4px 0 14px;
  color: var(--ink-2);
}

/* ============================================================
   CHART TYPES — each section's band has its own chart
   (elements rest in their final state; .drawn plays the entrance,
   .live stops it so hover changes don't replay anything)
   ============================================================ */
/* reports: the line chart takes the report's own colour */
.sheet-pane[data-sheet="r1"] .chart-band,
.sheet-pane[data-sheet="r2"] .chart-band,
.sheet-pane[data-sheet="r3"] .chart-band {
  --cb-a: var(--accent);
}
.sheet-pane[data-sheet="r1"] .cb-label,
.sheet-pane[data-sheet="r2"] .cb-label,
.sheet-pane[data-sheet="r3"] .cb-label {
  color: var(--accent);
}
.cb-grid-s {
  stroke: var(--cb-grid);
  stroke-width: 1;
}
.cb-axis {
  stroke: #c3c8cc;
  stroke-width: 1.5;
}
.chart-band svg * {
  transform-box: fill-box;
}

/* bars (each pair grows as one group, see .cb-barg) */
@keyframes cb-grow {
  from {
    transform: scaleY(0);
  }
}

/* areas */
.cb-area {
  transform-origin: 50% 100%;
  opacity: 0.92;
}
.chart-band.drawn:not(.live) .cb-area {
  animation: cb-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d);
}
@keyframes cb-rise {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
}
.cb-ridge {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
}
.chart-band.drawn:not(.live) .cb-ridge {
  stroke-dasharray: 1;
  animation: cb-trace 1s cubic-bezier(0.65, 0, 0.35, 1) both;
  animation-delay: var(--d);
}
@keyframes cb-trace {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.cb-guide {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
}
.cb-probe {
  stroke-width: 2.5;
  opacity: 0;
}
.chart-band--area.hovering .cb-guide,
.chart-band--area.hovering .cb-probe {
  opacity: 1;
}

/* donuts */
.cb-track {
  fill: none;
  stroke: var(--cb-grid);
  stroke-width: 11;
}
.cb-seg {
  fill: none;
  stroke-width: 11;
  transition: stroke-width 0.25s ease;
}
.chart-band.drawn:not(.live) .cb-seg {
  animation: cb-sweep 0.6s cubic-bezier(0.65, 0, 0.35, 1) both;
  animation-delay: var(--d);
}
@keyframes cb-sweep {
  from {
    stroke-dasharray: 0 100;
  }
}
.cb-check {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-band.drawn:not(.live) .cb-check {
  stroke-dasharray: 1 2;
  animation: cb-trace-in 0.45s ease-out both;
  animation-delay: var(--d);
}
.cb-donut.hot .cb-seg {
  stroke-width: 15;
}
/* icons inside donuts (Report 02's coffee) draw in like the checks.
   Their placement transform is in chart coordinates, so it must not scale from the icon's own box. */
.chart-band svg .cb-icon {
  transform-box: view-box;
}
/* icons inside donuts (Report 02's coffee) draw in like the checks */
.cb-icon-p {
  fill: none;
  stroke: var(--cb-a);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* the gap is longer than the path, and the stroke stays hidden until it starts,
   so rounded caps don't show as stray dots while an icon waits its turn */
.chart-band.drawn:not(.live) .cb-icon-p {
  stroke-dasharray: 1 2;
  animation: cb-trace-in 0.55s ease-out both;
  animation-delay: var(--d);
}
@keyframes cb-trace-in {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.cb-steam {
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
}
.cb-donut.hot .cb-steam {
  transform: translateY(-1.5px);
  opacity: 0.55;
}

/* heatmap */
@keyframes cb-pop-cell {
  from {
    transform: scale(0);
    opacity: 0;
  }
}

/* scatter */
.cb-bubble {
  transform-origin: 50% 50%;
  fill-opacity: 0.85;
  stroke: #fff;
  stroke-width: 1.5;
  transition: transform 0.25s cubic-bezier(0.34, 1.6, 0.64, 1);
}
.chart-band.drawn:not(.live) .cb-bubble {
  animation: cb-pop-cell 0.5s cubic-bezier(0.34, 1.7, 0.64, 1) both;
  animation-delay: var(--d);
}
.cb-bubble.hot {
  transform: scale(1.6);
  fill-opacity: 1;
}
.cb-trend {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}
.chart-band.drawn:not(.live) .cb-trend {
  stroke-dasharray: 1;
  animation: cb-trace 0.9s cubic-bezier(0.65, 0, 0.35, 1) both;
  animation-delay: var(--d);
}
.cb-resid {
  stroke: var(--coral, #e5533d);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  opacity: 0;
}
.chart-band--scatter.hovering .cb-resid {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .chart-band .cb-area,
  .chart-band .cb-ridge,
  .chart-band .cb-seg,
  .chart-band .cb-check,
  .chart-band .cb-icon-p,
  .chart-band .cb-bubble,
  .chart-band .cb-trend {
    animation: none !important;
  }
}

/* footer flag */
/* inline, so the text wraps like a sentence instead of splitting into flex columns */
.sheet-foot .loc {
  display: inline;
}
.sheet-foot .loc .flag {
  display: inline-block;
  margin: 0 6px 0 2px;
  vertical-align: -2px;
}
.flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  -o-object-fit: cover;
  object-fit: cover;
}
/* ring segments rotate about the donut centre given in their transform attribute */
.chart-band svg .cb-seg {
  transform-box: view-box;
}

/* ---- chart performance: fewer, cheaper animations ---- */
/* bars animate as pairs (one group each), not as single rects */
.cb-barg {
  transform-origin: 50% 100%;
  transition: opacity 0.2s ease;
}
.chart-band.drawn:not(.live) .cb-barg {
  animation: cb-grow 0.75s cubic-bezier(0.34, 1.35, 0.64, 1) both;
  animation-delay: var(--d);
}
.chart-band--bars.hovering .cb-barg {
  opacity: 0.3;
}
.chart-band--bars.hovering .cb-barg.hot {
  opacity: 1;
}
/* heatmap: cells are static; columns reveal them and three outlines follow the pointer */
.cb-hl {
  fill: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.cb-hl--line {
  stroke: rgba(58, 63, 68, 0.35);
  stroke-width: 1.5;
}
.cb-hl--cell {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.chart-band--heatmap.hovering .cb-hl {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .chart-band .cb-barg {
    animation: none !important;
  }
}

/* ============================================================
   RENDERING PERFORMANCE — endless and entrance effects use only
   transform and opacity, which the GPU animates without repainting
   ============================================================ */
/* words rise without a blur filter (blur forces a repaint every frame) */
@keyframes word-rise {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
}
@keyframes cb-label {
  from {
    opacity: 0;
    letter-spacing: 0.1em;
  }
}
/* "Open to work" dot: the pulse is a scaling ring, not an animated box-shadow */
.live-dot {
  position: relative;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: live-ring 2s ease-out infinite;
}
@keyframes live-ring {
  from {
    transform: scale(1);
    opacity: 0.5;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}
/* line charts: pulse on the latest point */
.cb-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  pointer-events: none;
  opacity: 0;
}
.chart-band.live .cb-pulse {
  opacity: 1;
}
.cb-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--cb-a);
  animation: live-ring-o 2.4s ease-out infinite;
}
@keyframes live-ring-o {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::after,
  .cb-pulse::after {
    animation: none;
    opacity: 0;
  }
}

/* CV button with a document icon */
.btn-cv {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.btn-cv svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.btn-cv:hover svg {
  transform: translateY(2px);
}

/* donut checks follow the band's colour */
.cb-check {
  stroke: var(--cb-a);
}
/* images carry width/height attributes (for layout stability); keep their real proportions */
.preview img {
  height: auto;
}

/* ============================================================
   REPORT PAGES — header, numbered stages, and polished parts
   ============================================================ */
/* header */
.sheet-pane[data-sheet^="r"] .chart-band + .mcell {
  padding: clamp(22px, 3.5vw, 36px);
  border-top: 3px solid var(--accent);
}
.report-meta {
  align-items: center;
}
.report-tag {
  padding: 3px 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.report-kind {
  border-radius: 999px;
  padding: 2px 10px;
}
.report-stack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.report-stack i {
  font-style: normal;
  padding: 2px 9px;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: #fff;
  font-family: var(--f-mono);
  color: var(--ink);
}
.sheet-pane[data-sheet^="r"] .report-title {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.report-actions {
  margin-top: 18px;
}
.report-actions .btn,
.report-links .btn {
  padding: 10px 16px;
  font-weight: 600;
  color: var(--ink);
}
.report-actions .btn:hover,
.report-links .btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.report-links a.btn {
  border-bottom: 1px solid var(--grid);
}

/* stages: a numbered path whose steps light up in the report colour as you reach them */
.sheet-pane[data-sheet^="r"] .mcell:has(> .mv) {
  counter-reset: stage;
  padding: clamp(18px, 3vw, 32px);
}
.sheet-pane[data-sheet^="r"] .mv {
  position: relative;
  counter-increment: stage;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--s4);
  padding: 22px 0 30px;
  border-bottom: 0;
}
.sheet-pane[data-sheet^="r"] .mv-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ink);
}
.sheet-pane[data-sheet^="r"] .mv-stage::before {
  content: counter(stage, decimal-leading-zero);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--grid);
  background: #fff;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  color: var(--ink-2);
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease;
}
.sheet-pane[data-sheet^="r"] .mv.in .mv-stage::before {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
/* the connecting line between steps */
.sheet-pane[data-sheet^="r"] .mv::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 56px;
  bottom: -22px;
  width: 2px;
  background: var(--grid);
  transform-origin: top;
}
.sheet-pane[data-sheet^="r"] .mv:last-of-type::before {
  display: none;
}
.sheet-pane[data-sheet^="r"] .mv::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 56px;
  bottom: -22px;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0.001);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.sheet-pane[data-sheet^="r"] .mv.in::after {
  transform: scaleY(1);
}
.sheet-pane[data-sheet^="r"] .mv:last-of-type::after {
  display: none;
}

/* the ask: a pull quote */
.sheet-pane .quote {
  margin: 0 0 10px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
}
.sheet-pane .quote-src {
  padding-left: 22px;
}

/* definitions: a glossary */
.sheet-pane .chips {
  gap: 0;
  border-top: 1px solid var(--grid);
}
.sheet-pane .chip {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-left: 0;
  border-bottom: 1px solid var(--grid);
}
.sheet-pane .chip b {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
}
.sheet-pane .chip span {
  font-size: 0.98rem;
}

/* code: an editor panel */
.mv-body pre {
  position: relative;
  padding: 0 16px 14px;
  background: #fbfcfd;
  border: 1px solid var(--grid);
  border-left: 3px solid var(--accent);
  font-size: 0.8rem;
}
.mv-body pre::before {
  content: "Power Query · M";
  display: block;
  margin: 0 -16px 12px;
  padding: 7px 16px;
  background: var(--ribbon);
  border-bottom: 1px solid var(--grid);
  font-family: var(--f-ui);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.mv-body pre .k {
  color: var(--accent);
}

/* the finding and its dashboard */
.sheet-pane .finding {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sheet-pane .preview {
  max-width: 100%;
  margin: 18px 0 10px;
  border-radius: 8px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.45);
}
.sheet-pane .preview-bar {
  padding: 9px 14px;
  font-size: 0.7rem;
}
.sheet-pane .preview-bar i:nth-child(1) {
  background: #ff5f57;
}
.sheet-pane .preview-bar i:nth-child(2) {
  background: #febc2e;
}
.sheet-pane .preview-bar i:nth-child(3) {
  background: #28c840;
}
.sheet-pane .preview-cap {
  font-size: 0.78rem;
}

/* the decision: KPI tiles */
.sheet-pane .result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
}
.sheet-pane .stat {
  padding: 18px 20px;
  background: #fff;
}
.sheet-pane .stat b {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
}
.sheet-pane .stat span {
  display: block;
  margin-top: 6px;
}

/* what I got wrong first: a calm lesson card, not an alarm */
.sheet-pane .wrong {
  position: relative;
  margin-top: 16px;
  padding: 16px 18px 16px 54px;
  background: #fff8e6;
  border: 1px solid #f3dfa8;
  border-left: 3px solid #d99a00;
}
.sheet-pane .wrong::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 22px;
  height: 22px;
  background: #b57f00;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.sheet-pane .wrong b {
  color: #8a6200;
}
.sheet-pane .wrong p {
  font-size: 0.98rem;
  color: var(--ink);
}
.sheet-pane .report-links {
  margin-top: 16px;
}

/* simulator */
.sheet-pane .sim {
  padding: clamp(18px, 2.5vw, 26px);
  border-top: 3px solid var(--accent);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.4);
}
.sheet-pane .sim-amt {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--accent);
}
#simRange {
  height: 28px;
}
#simRange::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) var(--p, 20%),
    #e3e6e8 var(--p, 20%)
  );
}
#simRange::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e3e6e8;
}
#simRange::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
#simRange::-webkit-slider-thumb {
  margin-top: -9px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.35);
  -webkit-transition: transform 0.15s ease;
  transition: transform 0.15s ease;
}
#simRange:active::-webkit-slider-thumb {
  transform: scale(1.12);
}
#simRange::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid var(--accent);
}
.sheet-pane .sim-bar-row {
  grid-template-columns: 120px minmax(0, 1fr) 110px;
}
.sheet-pane .sim-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
}
.sheet-pane .sim-track {
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #eef1f3;
}
.sheet-pane .sim-fill {
  border-radius: 999px;
}
.sheet-pane .sim-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sheet-pane .sim-verdict {
  margin: 14px 0 6px;
  padding: 12px 14px;
  background: var(--cell-alt);
  border-left: 3px solid var(--ink);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .report-stack {
    margin-left: 0;
  }
  .sheet-pane[data-sheet^="r"] .mv {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0 22px;
  }
  .sheet-pane[data-sheet^="r"] .mv::before,
  .sheet-pane[data-sheet^="r"] .mv::after {
    display: none;
  }
  .sheet-pane .chip {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .sheet-pane .sim-bar-row {
    grid-template-columns: 1fr 90px;
  }
  .sheet-pane .sim-bar-row .sim-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* tool pills carry a small brand tile */
.report-stack i {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 4px;
}
.st-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
/* heatmap entrance: columns rise and fade in one after another, eased like the bars */
.cb-colg {
  transform-origin: 50% 100%;
}
.chart-band.drawn:not(.live) .cb-colg {
  animation: cb-col-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d);
}
@keyframes cb-col-in {
  from {
    opacity: 0;
    transform: translateY(10px) scaleY(0.6);
  }
}
/* heatmap hover: the outlines glide between cells instead of jumping */
.chart-band svg .cb-hl {
  transform-box: view-box;
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.chart-band.hl-snap .cb-hl {
  transition: opacity 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .chart-band .cb-colg {
    animation: none !important;
  }
  .chart-band svg .cb-hl {
    transition: opacity 0.2s ease;
  }
}

/* ============================================================
   PERFORMANCE PASS
   ============================================================ */
/* the highlighter under "make sense." grows as a scaled layer (GPU) instead of a repainted background */
.hl {
  position: relative;
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.04em;
  right: -0.04em;
  top: 58%;
  bottom: 10%;
  background: #b6e5c9;
  transform-origin: left center;
}
.hero-in .hl::after {
  animation: hl-grow 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.75s both;
}
@keyframes hl-grow {
  from {
    transform: scaleX(0.001);
  }
}
/* endless effects pause while their block is off-screen (toggled by an IntersectionObserver) */
.is-offscreen,
.is-offscreen *,
.is-offscreen::after,
.is-offscreen *::after {
  animation-play-state: paused !important;
}
/* ...and while the menu or the image preview covers the page: they are hidden under the
   overlay, but would still make the browser redraw (and re-blur) what is behind it */
.fx-covered .live-dot::after,
.fx-covered .cb-pulse::after,
.fx-covered .rm-node::after,
.fx-covered .colon {
  animation-play-state: paused !important;
}
/* text that changes often (formula bar, counters) is contained so updates stay local */
.namebox,
.formula-text,
.kpi,
.stat,
.tm-total {
  contain: layout paint;
}
@media (prefers-reduced-motion: reduce) {
  .hero-in .hl::after {
    animation: none;
  }
}
/* <picture> wrappers don't add a box: images keep sizing against their frames */
picture {
  display: contents;
}

/* semantic markup, same look */
/* report stage labels are <h3>s: drop the browser's heading margins and weight */
.mv-stage {
  margin: 0;
  font-weight: inherit;
}
/* each stat is <dt> then <dd> (valid order); the value still sits on top */
.proj-stats div {
  display: flex;
  flex-direction: column-reverse;
}
/* the contact table is an <address>, which browsers italicise */
address.ctable {
  font-style: normal;
}
/* keyboard users can jump past the ribbon; off-screen until focused */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 500;
  padding: 8px 14px;
  background: #fff;
  color: var(--green-dark);
  font: 600 0.85rem var(--f-ui);
  border: 2px solid var(--green);
  border-radius: 4px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ============================================================
   TOUCH, SHORT SCREENS & OVERLAYS — sizing that depends on the input
   device or the viewport's height rather than its width
   ============================================================ */
/* touch: every control is a comfortable thumb target (44px, or 36px+ for dense chips) */
@media (pointer: coarse) {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  .cred {
    min-height: 40px;
  }
  .card-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .card-actions button {
    min-height: 40px;
    padding-inline: 14px;
  }
  .tool-used a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
  }
  .crow-copy {
    min-height: 34px;
    padding: 6px 12px;
  }
  .cf-chips span {
    padding: 10px 16px;
  }
  #simRange {
    height: 44px;
  }
  .menu-btn,
  .drawer-x {
    width: 44px;
    height: 44px;
  }
}
/* touch tablets that keep the desktop ribbon and sheet tabs */
@media (pointer: coarse) and (min-width: 701px) and (min-height: 501px) {
  .ricon {
    width: 36px;
    height: 36px;
  }
  .sheettabs {
    height: auto;
    min-height: 34px;
  }
  .stab {
    min-height: 42px;
    padding-inline: 16px;
  }
  body {
    padding-bottom: 68px;
  }
}
/* no hover on touch screens: show the affordances hover would have revealed */
@media (hover: none) {
  .proj-open {
    transform: none;
  }
  .kpi-go {
    opacity: 1;
    transform: none;
  }
}

/* phones held sideways: every pixel of height counts */
@media (pointer: coarse) and (max-height: 500px) {
  .titlebar {
    position: static;
  }
  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
  .mbar {
    padding: 4px max(6px, env(safe-area-inset-left, 0px))
      calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .mtab {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
  }
  .mtab::before {
    top: 6px;
    bottom: 6px;
    left: 8px;
    right: 8px;
    width: auto;
    height: auto;
    margin-left: 0;
  }
}
/* the menu sheet stays a readable width on sideways phones and large phones */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  .drawer-panel {
    left: max(0px, calc(50% - 300px));
    right: max(0px, calc(50% - 300px));
  }
}

/* enlarged screenshots always fit, caption included, even on short screens */
.lightbox {
  padding-block: max(24px, env(safe-area-inset-top, 0px))
    max(24px, env(safe-area-inset-bottom, 0px));
}
.lightbox img {
  max-height: min(78vh, calc(100vh - 170px));
  max-height: min(78dvh, calc(100dvh - 170px));
}
@media (max-height: 500px) {
  .lightbox-fig {
    gap: 10px;
  }
  .lightbox img {
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
  }
  .lightbox-cap span {
    display: none;
  }
}
/* eyebrows: an explicit line height keeps their size identical before and after the web font swaps in */
.eyebrow {
  line-height: 1.5;
}

/* composer topics carry a small icon; it takes the accent colour, and white once picked */
.cf-chips span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cf-ico {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--green);
  transition: color 0.3s ease;
}
.cf-chips input:checked + span .cf-ico {
  color: #fff;
}
/* phones: two columns of tiles, icon over label, with the catch-all "Something else"
   as a slim row across the bottom. Labels may wrap inside a tile, so two columns
   hold even on narrow phones. The pill measures each label, so it follows the grid. */
@media (max-width: 600px) {
  .cf-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .cf-chips label {
    display: flex;
  }
  .cf-chips span {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 78px;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
  }
  .cf-ico {
    width: 22px;
    height: 22px;
  }
  .cf-chips label:last-child {
    grid-column: 1 / -1;
  }
  .cf-chips label:last-child span {
    flex-direction: row;
    min-height: 0;
    padding: 11px 12px;
  }
  .cf-chips label:last-child .cf-ico {
    width: 18px;
    height: 18px;
  }
  .cf-pill {
    border-radius: 12px;
  }
}

/* report scope line under the title, and the same on a card */
.report-scope {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 8px 0 0;
}
.proj-scope {
  margin: 6px 0 0;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.proj-flag {
  padding: 1px 8px;
  border: 1px solid var(--grid);
  border-radius: 999px;
}
/* limitations / small-sample notes: same block as .wrong, neutral colour */
.limits {
  border-left: 3px solid var(--ink-2);
  background: var(--cell-alt);
  padding: 12px 14px;
}
.limits b {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.limits p {
  margin: 0;
  font-size: 0.94rem;
}
