/* ─────────────────────────────────────────────────────────
  Ryan Short, Service Design Portfolio
  Shared site styles
  ───────────────────────────────────────────────────────── */

:root {
  --paper: #faf9f4;
  --paper-deep: #f3f0e7;
  --paper-edge: #efece2;
  --ink: #14161a;
  --ink-soft: #3a3d44;
  --ink-muted: #71747b;
  --rule: #c9c6bc;
  --rule-soft: #e2dfd5;
  --accent: #1f4a78;
  --accent-deep: #14365a;
  --accent-soft: #e6edf5;
  --warm: #f4ecd9;
  --warm-edge: #b58a3a;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad-y: clamp(40px, 6vw, 80px);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

body {
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-tight {
  max-width: 920px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Header / Nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 244, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
  position: relative;
  top: 0px;
}

.wordmark .role {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-left: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 0;
  position: relative;
  transition: color 160ms ease;
}

.nav a:hover { color: var(--ink); }

.nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.nav .contact-cta {
  margin-left: 8px;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.nav .contact-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── Eyebrow & section labels ─────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow.muted { color: var(--ink-muted); }

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.eyebrow-rule::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ── Type ──────────────────────────────────────────────── */
.display {
  font-size: clamp(54px, 8.5vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}

.h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--ink);
}

.h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.lede {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 30ch;
  text-wrap: pretty;
}

.lede.wide { max-width: 38ch; }

p { text-wrap: pretty; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--rule-soft);
}

.hero .top-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  margin-bottom: clamp(32px, 5vw, 56px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .top-meta strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero .display {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

.hero-grid .right {
  border-left: 1px solid var(--rule);
  padding-left: clamp(20px, 3vw, 40px);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-grid .right p { margin-bottom: 14px; }
.hero-grid .right p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .right { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
}

/* ── Section blocks ────────────────────────────────────── */
section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }

.section-rule {
  border-top: 1px solid var(--rule-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: clamp(20px, 3vw, 56px);
  margin-bottom: clamp(28px, 4vw, 56px);
  align-items: start;
}

.section-head .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid var(--ink);
}

.section-head .title {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}

.section-head .title em {
  font-style: italic;
  color: var(--ink-muted);
  font-weight: 400;
}

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ── Work gallery (3-column grid) ─────────────── */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px);
  margin-top: clamp(32px, 4vw, 56px);
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* flip variant kept for backward-compat, no-op in grid */
.gallery-item.flip .gallery-cover { order: 0; }
.gallery-item.flip .gallery-meta { order: 0; }

.gallery-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 2px;
  display: block;
}

.gallery-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 400ms ease;
}

.gallery-item a.gallery-cover:hover img,
.gallery-item:hover a.gallery-cover img {
  transform: scale(1.025);
}

/* designed typographic covers for projects without imagery */
.gallery-cover.designed {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.2vw, 30px);
  color: var(--paper);
  overflow: hidden;
}

.gallery-cover.designed::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(0,0,0,0.18), transparent 55%);
  pointer-events: none;
}

.gallery-cover.designed .cover-top,
.gallery-cover.designed .cover-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
}

.gallery-cover.designed .cover-wordmark {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.gallery-cover.designed .cover-wordmark em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.02em;
  margin-top: 12px;
  opacity: 0.82;
  max-width: 28ch;
  line-height: 1.45;
}

/* brand-evoking palettes */
.cover-roots    { background: #1f3a2e; }
.cover-gofor    { background: #d24a1f; }
.cover-central1 { background: #14365a; }
.cover-hrblock  { background: #0c5b3f; }
.cover-alberta  { background: #6e4a23; }
.cover-nserc    { background: #2a2f3a; }
.cover-aucti    { background: #5b1f3a; }

.gallery-meta { padding: 16px 0 0; }

.gallery-meta .num {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  display: block;
}

.gallery-meta .gallery-title {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.gallery-meta .gallery-client {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  display: block;
}

.gallery-meta .gallery-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.gallery-meta .gallery-foot {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.gallery-meta .gallery-foot .read {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: padding-right 200ms ease;
}

.gallery-item a.gallery-cover:hover ~ .gallery-meta .read,
.gallery-meta:hover .read {
  padding-right: 4px;
}

@media (max-width: 1080px) {
  .work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .work-gallery { grid-template-columns: 1fr; gap: 32px; }
  .gallery-cover { aspect-ratio: 4 / 3; }
}

/* legacy list (retained for any other pages) */
.work-list {
  border-top: 1px solid var(--ink);
}

/* ── Case-study artifact mockups ────────────────────────── */
.artifacts {
  margin-top: clamp(40px, 5vw, 64px);
}

.artifacts h3.artifacts-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}

.artifact {
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 28px;
  position: relative;
}

.artifact .art-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule-soft);
}

.artifact .art-head .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.artifact .art-head .title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.artifact figcaption {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Persona card */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.persona-card {
  border: 1px solid var(--rule-soft);
  background: var(--paper-deep);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.persona-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.persona-card .pname {
  font-weight: 700;
  font-size: 18px;
}

.persona-card .prole {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: -6px;
}

.persona-card .pquote {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.persona-card .pmeta {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.persona-card .pmeta strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-top: 8px;
}

/* Journey map */
.journey {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.journey .stage {
  border-right: 1px dashed var(--rule);
  padding: 0 16px 0 16px;
  position: relative;
}

.journey .stage:last-child { border-right: 0; }

.journey .stage .step {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.journey .stage .name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.journey .stage .action,
.journey .stage .thought,
.journey .stage .feel {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px solid var(--rule-soft);
}

.journey .stage .feel {
  font-style: italic;
  color: var(--ink-muted);
}

.journey-axis {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  align-items: center;
  margin-bottom: 6px;
}

.journey-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 4px;
}

.journey-row .axis-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 10px;
}

.journey-row .axis-content {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 0;
}

.journey-row .axis-content > div {
  border-left: 1px dashed var(--rule);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.journey-row .axis-content > div:first-child { border-left: 0; }
.journey-row .axis-content > div.feel { font-style: italic; color: var(--ink-muted); }
.journey-row .axis-content > div strong {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: 0;
  text-transform: none;
}

/* Emotion line */
.emotion-line {
  position: relative;
  height: 64px;
  margin: 8px 0 4px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.emotion-line svg { width: 100%; height: 100%; display: block; }

/* IA tree */
.ia-tree {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.ia-tree ul {
  list-style: none;
  padding-left: 20px;
  border-left: 1px dashed var(--rule);
  margin-left: 4px;
}

.ia-tree > ul { border-left: 0; padding-left: 0; }

.ia-tree li {
  position: relative;
  padding: 4px 0 4px 0;
}

.ia-tree ul li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 16px;
  width: 14px;
  border-top: 1px dashed var(--rule);
}

.ia-tree .node {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-weight: 600;
  color: var(--ink);
  border-radius: 2px;
}

.ia-tree .node.root {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.ia-tree .node.l1 {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* User flow / process diagram */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}

.flow .node {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 14px 14px;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.flow .node + .node { margin-left: 24px; }

.flow .node + .node::before {
  content: "→";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 18px;
}

.flow .node.decision {
  background: var(--warm);
  border-color: var(--warm-edge);
}

.flow .node.start { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flow .node.end { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.flow .node .n-step {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

.flow .node .n-label {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.flow .node .n-meta {
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.4;
}

/* Wireframe sketch */
.wire {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.wire .wf-bar {
  height: 12px;
  background: var(--rule);
  border-radius: 2px;
}

.wire .wf-bar.short { width: 40%; }
.wire .wf-bar.mid { width: 70%; }
.wire .wf-bar.ink { background: var(--ink); }
.wire .wf-bar.tall { height: 22px; }

.wire .wf-block {
  border: 1px dashed var(--rule);
  background: var(--paper);
  padding: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

.wire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wire-frame {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 12px;
  aspect-ratio: 9 / 16;
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto 1fr auto;
}

.wire-frame .wf-bar { background: var(--ink); height: 8px; border-radius: 2px; }
.wire-frame .wf-bar.mid { width: 60%; }
.wire-frame .wf-bar.short { width: 40%; background: var(--rule); }
.wire-frame .wf-fill { background: var(--paper-deep); border: 1px dashed var(--rule); border-radius: 2px; }
.wire-frame .wf-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .journey-row { grid-template-columns: 1fr; }
  .journey-row .axis-label { padding-top: 16px; }
  .flow .node + .node { margin-left: 0; margin-top: 24px; }
  .flow .node + .node::before { left: 50%; top: -22px; transform: translateX(-50%); }
  .wire-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Editorial case-study layout ────────────────────────── */
.case-overline {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.case-hook {
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  max-width: 22ch;
  margin: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
  text-wrap: balance;
}

.case-hook em {
  font-style: italic;
  color: var(--ink-muted);
}

.case-section {
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid var(--rule-soft);
}

.case-section h2.case-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.case-section h2.case-h2 + .case-lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.case-section .case-body-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

.case-section .case-body-text + .case-body-text { margin-top: 16px; }

.case-section .case-body-text strong { color: var(--ink); }

/* numbered editorial list */
.num-list {
  list-style: none;
  counter-reset: nlist;
  padding: 0;
  margin: 32px 0 0;
}

.num-list > li {
  counter-increment: nlist;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(16px, 2vw, 28px);
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}

.num-list > li:last-child { border-bottom: 1px solid var(--rule-soft); }

.num-list > li::before {
  content: counter(nlist, decimal-leading-zero);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  font-weight: 700;
}

.num-list .nl-title {
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}

.num-list p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.num-list p + p { margin-top: 8px; }

/* image strip / gallery in body */
.image-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin: clamp(28px, 4vw, 48px) 0;
}

.image-strip figure {
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  position: relative;
}

.image-strip figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-strip .span-12 { grid-column: span 12; }
.image-strip .span-8 { grid-column: span 8; }
.image-strip .span-7 { grid-column: span 7; }
.image-strip .span-6 { grid-column: span 6; }
.image-strip .span-5 { grid-column: span 5; }
.image-strip .span-4 { grid-column: span 4; }

.image-strip .ratio-21-9 { aspect-ratio: 21 / 9; }
.image-strip .ratio-16-9 { aspect-ratio: 16 / 9; }
.image-strip .ratio-4-3 { aspect-ratio: 4 / 3; }
.image-strip .ratio-3-2 { aspect-ratio: 3 / 2; }
.image-strip .ratio-1-1 { aspect-ratio: 1 / 1; }

@media (max-width: 820px) {
  .image-strip { grid-template-columns: 1fr; }
  .image-strip [class*="span-"] { grid-column: span 1; }
}

/* designed image-strip tile (no real photo) */
.is-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.4vw, 32px);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.is-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(0,0,0,0.18), transparent 55%);
  pointer-events: none;
}

.is-tile .is-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.78;
  position: relative;
  z-index: 1;
}

.is-tile .is-headline {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}

.is-tile .is-foot {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

/* closing mantra strip */
.mantra {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(40px, 5vw, 80px) 0;
  overflow: hidden;
  position: relative;
}

.mantra .mantra-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(16px, 2vw, 28px);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.mantra .mantra-inner em {
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  opacity: 0.5;
}

.mantra .mantra-inner .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  opacity: 0.4;
  display: inline-block;
  transform: translateY(-12px);
}

.mantra .mantra-tag {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 22px;
}

/* full bleed cover header for case pages */
.case-cover {
  position: relative;
  background: var(--paper-deep);
}

.case-cover .cover-frame {
  aspect-ratio: 21 / 9;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.case-cover .cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .case-cover .cover-frame { aspect-ratio: 4 / 3; }
}

.work-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1.4fr 1fr 1fr 110px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  transition: background 200ms ease, padding 200ms ease;
}

.work-row:hover {
  background: var(--paper-deep);
  padding-left: 16px;
  padding-right: 16px;
}

.work-row .num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  font-weight: 600;
}

.work-row .title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-row .client {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.work-row .meta-cell {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.work-row .read {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.work-row .read::after {
  content: " →";
  transition: margin-left 200ms ease;
  display: inline-block;
}

.work-row:hover .read::after {
  margin-left: 6px;
}

@media (max-width: 900px) {
  .work-row {
    grid-template-columns: 40px 1fr 80px;
    grid-template-areas:
      "num title read"
      "num client read"
      "num meta meta";
    align-items: start;
    gap: 6px 16px;
  }
  .work-row .num { grid-area: num; }
  .work-row .title { grid-area: title; }
  .work-row .client { grid-area: client; }
  .work-row .read { grid-area: read; align-self: center; }
  .work-row .meta-cell:nth-child(4) { display: none; }
  .work-row .meta-cell:nth-child(5) { grid-area: meta; margin-top: 6px; }
}

/* ── Featured cards (home) ─────────────────────────────── */
.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}

.feat-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--rule);
  box-shadow: 0 12px 28px rgba(20,22,26,0.07);
}

.feat-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}

.feat-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.feat-card:hover .thumb img { transform: scale(1.03); }

.feat-card .thumb .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--paper);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid var(--rule);
}

.feat-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.feat-card .body .num {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.feat-card .body h3 {
  font-size: 20px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feat-card .body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.feat-card .body .more {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.feat-card .body .more::after {
  content: " →";
}

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
}

/* ── Case study page ──────────────────────────────────── */
.case-hero {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(36px, 5vw, 60px);
}

.case-hero .tag-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.case-hero .tag-row a {
  color: var(--ink-muted);
}

.case-hero .tag-row a:hover { color: var(--ink); }

.case-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: clamp(20px, 2.5vw, 32px);
  max-width: 18ch;
  text-wrap: balance;
}

.case-hero .summary {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36ch;
}

/* ── Meta grid (case study) ───────────────────────────── */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  margin: clamp(28px, 4vw, 48px) 0 0;
}

.meta-grid .item {
  padding-right: 20px;
  border-right: 1px solid var(--rule-soft);
}

.meta-grid .item:last-child { border-right: none; }

.meta-grid .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.meta-grid .value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .meta-grid { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .meta-grid .item:nth-child(2n) { border-right: none; }
}

/* ── STAR sections ────────────────────────────────────── */
.case-body {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 80px);
}

.case-body .container-tight {
  /* tight column for reading */
}

.star {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--rule-soft);
}

.star:first-child { border-top: 1px solid var(--ink); }

.star .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  padding-top: 4px;
}

.star .label .step {
  display: block;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.star .body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.star .body p { margin-bottom: 14px; }
.star .body p:last-child { margin-bottom: 0; }
.star .body strong { color: var(--ink); font-weight: 700; }

@media (max-width: 720px) {
  .star { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Case study figures ───────────────────────────────── */
.figure-block {
  margin: clamp(36px, 5vw, 64px) 0;
}

.figure-block figure {
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
}

.figure-block figure img {
  width: 100%;
  display: block;
}

.figure-block figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}

@media (max-width: 720px) {
  .figure-pair { grid-template-columns: 1fr; }
}

/* ── Reflection block ─────────────────────────────────── */
.reflection {
  background: var(--warm);
  border-left: 3px solid var(--warm-edge);
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 40px);
  margin: clamp(28px, 4vw, 48px) 0;
}

.reflection h3 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--warm-edge);
  font-weight: 700;
  margin-bottom: 16px;
}

.reflection p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.reflection p:last-child { margin-bottom: 0; }

.reflection p strong { color: var(--ink); font-weight: 700; }

/* ── Pager (case study footer) ────────────────────────── */
.pager {
  border-top: 1px solid var(--ink);
  padding-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pager .prev, .pager .next {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  transition: opacity 160ms ease;
}

.pager .next { text-align: right; align-items: flex-end; }

.pager .step {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.pager .title-link {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.pager .title-link:hover { color: var(--accent); }

@media (max-width: 720px) {
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; align-items: flex-start; }
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper);
  padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 4vw, 40px);
}

.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.site-footer .col h4 {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.site-footer .col p, .site-footer .col a {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.site-footer .col a { display: block; transition: color 160ms ease; }
.site-footer .col a:hover { color: var(--accent); }

.site-footer .col.intro p { color: var(--ink-soft); max-width: 36ch; }

.site-footer .col.intro .lock {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}

.site-footer .baseline {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .site-footer .grid { grid-template-columns: 1fr; }
}

/* ── About page ────────────────────────────────────────── */
.about-lede {
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule-soft);
}

.about-lede .display {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 22ch;
  text-wrap: balance;
}

.about-lede .display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.about-lede-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.about-lede-grid .display { margin: 0; }

.about-lede-grid .portrait {
  margin: 0;
  width: clamp(180px, 18vw, 260px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.about-lede-grid .portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.02);
  border: 1px solid var(--rule);
}

.about-lede-grid .portrait figcaption {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

@media (max-width: 720px) {
  .about-lede-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .about-lede-grid .portrait {
    order: -1;
    width: 160px;
  }
}

.about-section {
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.about-section:last-of-type { border-bottom: none; }

.about-section .columns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(28px, 4vw, 64px);
}

.about-section .columns h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.about-section .columns h2 .step {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.about-section .columns .body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.about-section .columns .body p { margin-bottom: 16px; }
.about-section .columns .body p:last-child { margin-bottom: 0; }
.about-section .columns .body strong { color: var(--ink); }

@media (max-width: 720px) {
  .about-section .columns { grid-template-columns: 1fr; }
}

/* ── Experience list (about) ──────────────────────────── */
.exp-list {
  border-top: 1px solid var(--ink);
}

.exp-row {
  display: grid;
  grid-template-columns: 140px 1.4fr 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}

.exp-row .years {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.exp-row .role {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.exp-row .role .at {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 2px;
}

.exp-row .desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .exp-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}

/* ── CTA strip ─────────────────────────────────────────── */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 96px) 0;
}

.cta-strip .container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.cta-strip h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 16ch;
  text-wrap: balance;
}

.cta-strip h2 em {
  font-style: italic;
  color: rgba(250, 249, 244, 0.55);
  font-weight: 400;
}

.cta-strip .ways {
  border-left: 1px solid rgba(250, 249, 244, 0.2);
  padding-left: clamp(20px, 3vw, 36px);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(250, 249, 244, 0.78);
}

.cta-strip .ways a {
  color: var(--paper);
  border-bottom: 1px solid rgba(250, 249, 244, 0.3);
  transition: border-color 160ms ease;
}

.cta-strip .ways a:hover { border-color: var(--paper); }

.cta-strip .ways .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 249, 244, 0.45);
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 14px;
}
.cta-strip .ways .label:first-child { margin-top: 0; }

@media (max-width: 720px) {
  .cta-strip .container { grid-template-columns: 1fr; align-items: start; }
  .cta-strip .ways { border-left: none; padding-left: 0; border-top: 1px solid rgba(250, 249, 244, 0.2); padding-top: 24px; }
}

/* ── Notes & utility ───────────────────────────────────── */
.note-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
}

.note-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Subtle entry animation ──────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .fade-up.d-1 { animation-delay: 80ms; }
  .fade-up.d-2 { animation-delay: 160ms; }
  .fade-up.d-3 { animation-delay: 240ms; }
  .fade-up.d-4 { animation-delay: 320ms; }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}


/* ── Swimlane service flow ─────────────────────────── */
.flow-swim {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-soft);
}
.flow-swim .lane {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--rule-soft);
  min-height: 96px;
}
.flow-swim .lane-label {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-deep);
  border-right: 1px solid var(--rule-soft);
  font-weight: 600;
}
.flow-swim .lane-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  position: relative;
}
.flow-swim .lane-track::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  top: 50%;
  height: 1px;
  background: var(--rule-soft);
  z-index: 0;
}
.flow-swim .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.flow-swim .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--accent);
}
.flow-swim .dot.ghost {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule-soft);
  border-color: var(--paper);
}
.flow-swim .cap {
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  color: var(--ink-soft);
  max-width: 100px;
}

/* ── Wireframes row ────────────────────────────────── */
.wires-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.wires-row.wires-web {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .wires-row, .wires-row.wires-web { grid-template-columns: repeat(2, 1fr); }
}
.phone-wire {
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  padding: 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}
.phone-wire.web {
  border-radius: 6px;
  min-height: 340px;
  padding: 18px;
}
.pw-bar {
  height: 6px;
  width: 60px;
  background: var(--ink);
  border-radius: 3px;
  align-self: center;
  opacity: 0.6;
}
.pw-bar.wide { width: 40%; height: 4px; align-self: flex-start; opacity: 0.4; }
.pw-title, .pw-h {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.pw-h { font-size: 17px; }
.pw-sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pw-list { display: flex; flex-direction: column; gap: 8px; }
.pw-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
}
.pw-item .num {
  width: 22px; height: 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.pw-item .ln { height: 6px; background: var(--rule-soft); border-radius: 3px; margin-bottom: 4px; }
.pw-item .ln.short { width: 60%; }
.pw-cta {
  margin-top: auto;
  background: var(--accent);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
}
.pw-link {
  font-size: 12px;
  color: var(--accent);
  text-align: center;
  text-decoration: underline;
}
.pw-cap {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule-soft);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}
.pw-map {
  flex: 1;
  min-height: 110px;
  background:
    repeating-linear-gradient(45deg, var(--rule-soft) 0 1px, transparent 1px 14px),
    var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  position: relative;
}
.pw-map::after {
  content: "";
  position: absolute;
  left: 50%; top: 55%;
  width: 12px; height: 12px;
  background: var(--accent);
  border: 3px solid var(--paper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--accent);
}
.pw-eta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  font-size: 12px;
}
.pw-eta strong { font-size: 14px; color: var(--ink); }
.pw-eta span { color: var(--ink-soft); }
.pw-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  padding: 4px 0;
}
.pw-check span {
  width: 16px; height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}
.pw-check span::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}
.pw-signbox {
  border: 1.5px dashed var(--rule);
  border-radius: 4px;
  min-height: 70px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
}
.pw-signbox span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pw-photo {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pw-field span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.pw-inp {
  height: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.pw-inp.short { width: 50%; }
.pw-progress {
  margin-top: 8px;
  height: 6px;
  background: var(--rule-soft);
  border-radius: 3px;
  overflow: hidden;
}
.pw-progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.pw-progress-cap {
  font-size: 11px;
  color: var(--ink-soft);
}

/* ── Dispatch dashboard mockup ─────────────────────── */
.dash-mock {
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-deep);
}
.dash-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.dash-top .pill {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
}
.dash-top .pill.ghost {
  background: transparent;
  border-color: var(--rule-soft);
  color: var(--ink-muted);
}
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}
@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
}
.dash-map {
  position: relative;
  min-height: 280px;
  border-right: 1px solid var(--rule-soft);
  background: var(--paper);
}
.dash-map .map-bg {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, var(--rule-soft) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--rule-soft) 0 1px, transparent 1px 28px);
  opacity: 0.7;
}
.dash-map .map-pin {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--accent);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--accent);
}
.dash-map .map-pin.a { top: 28%; left: 22%; }
.dash-map .map-pin.b { top: 44%; left: 58%; }
.dash-map .map-pin.c { top: 66%; left: 36%; background: #c14e2c; box-shadow: 0 0 0 1px #c14e2c; }
.dash-map .map-pin.d { top: 22%; left: 72%; }
.dash-map .map-cap {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dash-side {
  display: flex;
  flex-direction: column;
}
.dash-side .dash-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 12px;
}
.dash-side .dash-row:last-child { border-bottom: 0; }
.dash-side .dash-row strong {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 700;
  color: var(--ink);
}
.dash-side .dash-row span { color: var(--ink-soft); }
.dash-side .dash-row em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.dash-side .dash-row em.ok { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.dash-side .dash-row em.warn { background: #f6e4dc; color: #7a2e15; border: 1px solid #c14e2c; }
.dash-side .dash-row.alert { background: #fbf2ee; }


/* ── Roots persona (Fig. 01) ───────────────────────── */
.roots-persona {
  display: grid;
  grid-template-columns: 220px 1.2fr 1fr 220px;
  gap: 22px;
  background: #e6efe1;
  padding: 32px;
  border-radius: 4px;
}
@media (max-width: 1100px) { .roots-persona { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .roots-persona { grid-template-columns: 1fr; } }

.rp-id {
  background: #f4ecd6;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rp-photo {
  width: 64px; height: 64px;
  background: #cfcfcf;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 14px;
}
.rp-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.rp-role { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.rp-divider { height: 1px; background: rgba(0,0,0,0.12); align-self: stretch; margin: 14px 0; }
.rp-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13px; }
.rp-facts dt { color: var(--ink-soft); }
.rp-facts dd { color: var(--ink); margin: 0; }

.rp-bio, .rp-stats {
  background: #fff;
  padding: 22px 22px 24px;
}
.rp-bio h4, .rp-stats h4 {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--ink);
}
.rp-bio p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 12px;
}
.rp-bio p:last-child { margin-bottom: 0; }

.rp-block + .rp-block { margin-top: 22px; }
.rp-bar {
  position: relative;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--ink-soft);
}
.rp-bar .lbl-l { display: inline-block; }
.rp-bar .lbl-r { float: right; }
.rp-bar .track {
  position: relative;
  height: 6px;
  background: #d6e6d0;
  border-radius: 3px;
  margin-top: 6px;
}
.rp-bar .thumb {
  position: absolute;
  top: -3px;
  width: 22px; height: 12px;
  background: #4f8a3f;
  border-radius: 6px;
  transform: translateX(-50%);
}

.rp-quote {
  background: #4a6a37;
  color: #fff;
  padding: 26px 22px;
  display: flex;
  align-items: center;
}
.rp-quote p {
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}

/* ── Roots customer journey (Fig. 02) ───────────────── */
.rj-board {
  background: #2f4a2a;
  color: #e7eee0;
  padding: 26px 22px;
  border-radius: 4px;
  overflow-x: auto;
}
.rj-title {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: #cfdcc0;
}
.rj-stages {
  display: grid;
  grid-template-columns: 140px repeat(7, 1fr);
  gap: 6px;
  min-width: 1200px;
}
.rj-stages > .rj-chevron:nth-child(1) { grid-column: 2; }
.rj-chevron {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  text-align: center;
}
.rj-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px;
  margin-top: 10px;
  min-width: 1200px;
}
.rj-axis {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a9bda0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rj-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.rj-cell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #e7eee0;
  min-height: 60px;
}
.rj-cell p { margin: 0; }
.rj-cell ul {
  list-style: disc;
  padding-left: 14px;
  margin: 0;
}
.rj-cell ul.plain { list-style: none; padding-left: 0; }
.rj-cell ul li { margin-bottom: 2px; }
.rj-row-interaction .rj-cell { background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,0.4); padding-top: 14px; position: relative; }
.rj-row-interaction .rj-cell::before {
  content: "";
  position: absolute;
  left: 50%; top: -5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}
.rj-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.rj-dots span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.rj-row-touch .rj-cell { background: transparent; border: 1px dashed rgba(255,255,255,0.22); display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.rj-tag {
  font-size: 10.5px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  white-space: nowrap;
}
.rj-row-feeling .rj-cell { background: rgba(255,255,255,0.04); border: 0; }
.rj-row-opportunity .rj-cell { min-height: 70px; border-style: dashed; }
.rj-row-opportunity .rj-cell.empty {}

/* ── Roots user flow (Fig. 03) ─────────────────────── */
.rf-board {
  position: relative;
  background: #fbfaf6;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 24px;
  min-height: 720px;
  overflow-x: auto;
}
.rf-section { position: relative; }
.rf-section-label {
  position: absolute;
  top: -8px; left: -8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rf-pos {
  position: absolute;
  left: calc(var(--x) * 100px);
  top: calc(var(--y) * 76px + 10px);
  transform: translate(-50%, -50%);
}
.rf-node {
  background: #fff;
  border: 1.5px solid #7aa787;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--ink);
  text-align: center;
  min-width: 110px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.rf-node.small { min-width: 90px; padding: 7px 12px; font-size: 11px; }
.rf-node.primary { background: #f1f6ec; font-weight: 600; }
.rf-node.start { background: #fff; }
.rf-node.ghost { color: #a3b6a3; border-color: #c8d6c2; background: #f7f9f3; }
.rf-diamond {
  width: 130px;
  background: #fff;
  border: 1.5px solid #7aa787;
  padding: 14px 10px;
  font-size: 11px;
  color: var(--ink);
  text-align: center;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  min-height: 84px;
  display: flex; align-items: center; justify-content: center;
}
.rf-diamond.small { width: 110px; font-size: 10.5px; min-height: 70px; }
.rf-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* ── Roots user flow v2 (Fig. 03) ──────────────────── */
.rf2 {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: #fbfaf6;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 28px;
  overflow-x: auto;
}
@media (max-width: 900px) { .rf2 { grid-template-columns: 1fr; } }
.rf2-col { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.rf2-col-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.rf2-side { border-right: 1px dashed var(--rule-soft); padding-right: 28px; }
@media (max-width: 900px) { .rf2-side { border-right: 0; padding-right: 0; border-bottom: 1px dashed var(--rule-soft); padding-bottom: 20px; } }

.rf2-node {
  background: #fff;
  border: 1.5px solid #7aa787;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  align-self: center;
  max-width: 100%;
}
.rf2-node.small { padding: 8px 14px; font-size: 11px; }
.rf2-node.primary { background: #f1f6ec; font-weight: 600; }
.rf2-node.start { background: #fff; border-style: solid; }
.rf2-node.ghost { color: #95a895; border-color: #c8d6c2; background: #f7f9f3; }

.rf2-diamond {
  background: #fff;
  border: 1.5px solid #7aa787;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  align-self: center;
  border-radius: 6px;
  transform: skewX(-12deg);
  max-width: 220px;
}
.rf2-diamond > * { display: inline-block; transform: skewX(12deg); }
.rf2-diamond.small { padding: 10px 14px; font-size: 11px; }

.rf2-arrow {
  align-self: center;
  color: #7aa787;
  font-size: 14px;
  line-height: 1;
  height: 16px;
}
.rf2-arrow.split {
  display: flex;
  gap: 80px;
  font-size: 12px;
  color: #b16161;
}
.rf2-arrow.split span:last-child { color: #4f8a3f; }

.rf2-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.rf2-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.rf2-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.rf2-row.spread {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.rf2-dotted {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.rf2-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}
.rf2-stack .rf2-pair { grid-template-columns: 1fr 1fr; gap: 10px; }


/* ── Image-based artifacts ─────────────────────────── */
.artifact-image {
  margin: 0 0 28px;
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  padding: 18px;
  border-radius: 4px;
}
.artifact-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.artifact-image figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
}
.artifact-image figcaption .title { font-weight: 700; color: var(--ink); font-size: 14px; }
.artifact-image figcaption .label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }


/* ── Compact case-study callouts (Standard · Users · Method) ── */
.case-callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .case-callouts { grid-template-columns: 1fr; }
}

.cc {
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.cc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}

.cc.cc-2::before { background: #14365a; }
.cc.cc-3::before { background: #1f4a2e; }

.cc-label {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
  margin-top: 2px;
}

.cc-headline {
  font-size: 18px;
  line-height: 1.28;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.cc-foot {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: 6px;
}


/* ── Alberta designed mockups ─────────────────────────── */
.ab-mocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 820px) { .ab-mocks { grid-template-columns: 1fr; } }

.ab-frame {
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ab-frame .ab-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ab-frame .ab-chrome .dots { display:flex; gap:5px; }
.ab-frame .ab-chrome .dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rule);
}
.ab-frame .ab-chrome .url {
  flex: 1; text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0;
  text-transform: none;
}

.ab-body { padding: 18px; display: grid; gap: 12px; }
.ab-body.ab-hifi { padding: 0; background: #f4f1ea; }

/* WIREFRAME inner */
.ab-wf-nav {
  display: flex; gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ab-wf-nav span:first-child { color: var(--ink); font-weight: 700; }
.ab-wf-h {
  height: 14px; background: var(--ink); width: 60%; border-radius: 1px;
}
.ab-wf-sub {
  height: 8px; background: var(--rule); width: 35%; border-radius: 1px;
}
.ab-wf-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px;
}
.ab-wf-card {
  border: 1.5px dashed var(--rule);
  background: var(--paper);
  padding: 12px;
  display: grid; gap: 6px;
  min-height: 84px;
}
.ab-wf-card .lbl {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 700;
}
.ab-wf-card .bar { height: 6px; background: var(--rule); border-radius: 1px; }
.ab-wf-card .bar.short { width: 50%; }
.ab-wf-card .bar.mid { width: 70%; }
.ab-wf-card.ink {
  border-style: solid; border-color: var(--ink); background: var(--paper-deep);
}
.ab-wf-card.ink .bar { background: var(--ink); }
.ab-wf-table {
  display: grid; gap: 8px;
}
.ab-wf-row {
  display: grid; grid-template-columns: 1fr 80px 60px;
  gap: 10px; align-items: center;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
}
.ab-wf-row .bar { height: 6px; background: var(--rule); border-radius: 1px; }
.ab-wf-row .pill {
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted); text-align: center;
}
.ab-wf-row .pill.on { color: var(--accent); }

/* HI-FI inner — Alberta blue portal */
:root {
  --ab-blue: #003c71;
  --ab-blue-deep: #002a52;
  --ab-yellow: #e8b32a;
}
.ab-hifi-hdr {
  background: var(--ab-blue);
  color: #fff;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.ab-hifi-hdr .brand {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.ab-hifi-hdr .brand::before {
  content: ""; width: 14px; height: 14px;
  background: var(--ab-yellow);
  border-radius: 1px;
}
.ab-hifi-hdr .nav {
  display: flex; gap: 16px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.9;
}
.ab-hifi-hero {
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, var(--ab-blue) 0%, var(--ab-blue) 60%, transparent 100%);
  color: #fff;
}
.ab-hifi-hero h4 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.1; margin: 0 0 8px; max-width: 18ch;
}
.ab-hifi-hero p {
  font-size: 11.5px; opacity: 0.85; max-width: 30ch; line-height: 1.5;
}
.ab-hifi-cards {
  padding: 14px 18px 18px;
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.ab-hifi-card {
  background: #fff;
  padding: 12px 14px;
  border-radius: 2px;
  border-left: 3px solid var(--ab-yellow);
  display: grid; gap: 4px;
}
.ab-hifi-card .lbl {
  font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #6b6353; font-weight: 700;
}
.ab-hifi-card .h {
  font-size: 13px; font-weight: 700; color: var(--ab-blue-deep);
  line-height: 1.2;
}
.ab-hifi-card .d {
  font-size: 10.5px; color: #5b5447; line-height: 1.4;
}
.ab-hifi-card.alt { border-left-color: var(--ab-blue); }

/* full-width hi-fi (single) */
.ab-mocks.single { grid-template-columns: 1fr; }


/* ── Home feat-card uses designed cover ───────────────── */
.feat-card .thumb.gallery-cover.designed {
  aspect-ratio: 4 / 3;
  padding: clamp(18px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feat-card .thumb .tag { z-index: 2; }
.feat-card .thumb.designed .cover-wordmark { font-size: clamp(26px, 3vw, 38px); }
.feat-card .thumb.designed .cover-wordmark em { font-size: 12px; margin-top: 10px; }

/* Re-assert brand backgrounds (beat .feat-card .thumb specificity) */
.feat-card .thumb.cover-alberta  { background: #6e4a23; }
.feat-card .thumb.cover-nserc    { background: #2a2f3a; }
.feat-card .thumb.cover-aucti    { background: #5b1f3a; }
.feat-card .thumb.cover-roots    { background: #1f3a2e; }
.feat-card .thumb.cover-gofor    { background: #d3742a; }
.feat-card .thumb.cover-central1 { background: #14365a; }
.feat-card .thumb.cover-hrblock  { background: #0c5b3f; }


/* ── Tweakable: display drama scale ────────────────────── */
:root { --display-scale: 1; }
.display { font-size: calc(clamp(56px, 8vw, 120px) * var(--display-scale)) !important; }

/* ── Tweakable: cover treatment ────────────────────────── */
body[data-cover="striped"] .gallery-cover.designed {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.08) 0 14px,
    transparent 14px 28px
  );
}
body[data-cover="halftone"] .gallery-cover.designed::after {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.16) 1px, transparent 1.2px);
  background-size: 8px 8px;
  opacity: 1;
}

/* ── Mood: dark midnight tweaks ────────────────────────── */
body[data-mood="midnight"] {
  background: var(--paper);
  color: var(--ink);
}
body[data-mood="midnight"] .site-header,
body[data-mood="midnight"] .site-footer,
body[data-mood="midnight"] .section-rule { border-color: var(--rule-soft); }
body[data-mood="midnight"] .cta-strip { background: #0d0f14; }
body[data-mood="midnight"] .feat-card { background: var(--paper-deep); }
body[data-mood="midnight"] .feat-card .body { color: var(--ink); }

/* ── Mood: blueprint extras ────────────────────────────── */
body[data-mood="blueprint"] {
  background: var(--paper);
  background-image:
    linear-gradient(rgba(11,42,74,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,42,74,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
