/* ==========================================================================
   TECHIE ZEST — WORK / PORTFOLIO PAGE
   Scoped styles for the Work page only. Relies on tokens/base/layout/
   components for the design system; introduces nothing global.
   Namespaces: .work-hero, .pf-filter, .feature, .pf-grid / .pf-card,
   .mk-* (mockup visual system), .scale-strip, .cap-list.
   ========================================================================== */

/* ======================================================================
   01 — HERO
   ====================================================================== */
.work-hero { padding-block: clamp(1.5rem, 1rem + 1.6vw, 2.5rem) clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.work-hero__inner { max-width: 62rem; }
.work-hero .breadcrumbs { margin-bottom: var(--space-lg); }
.work-hero__eyebrow { margin-bottom: var(--space-md); }
.work-hero h1 { max-width: 20ch; margin-bottom: var(--space-lg); }
.work-hero h1 .accent { color: var(--emerald); }
.work-hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.55em;
  font-family: var(--font-mono); font-size: var(--step-0);
  color: var(--text-soft); letter-spacing: 0.01em;
}
.work-hero__meta span { color: var(--gold); }

.work-hero__proof {
  display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
}
.work-hero__proof li { display: flex; flex-direction: column; gap: 2px; }
.work-hero__proof .n {
  font-family: var(--font-display); font-weight: var(--weight-x);
  font-size: var(--step-2); line-height: 1; color: var(--navy-ink);
  letter-spacing: var(--tracking-tight); font-variant-numeric: lining-nums tabular-nums;
}
.work-hero__proof .n .suffix { color: var(--emerald); }
.work-hero__proof .l {
  font-size: var(--step--1); color: var(--text-faint);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-semi);
}

/* Hero visual — geometric portfolio composition (mini mockup collage) */
.work-hero__visual { position: relative; }
.hero-collage {
  position: relative; aspect-ratio: 1 / 0.94; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--emerald) 9%, transparent), transparent 40%),
    linear-gradient(160deg, #F7F9FC, #fff);
  overflow: hidden; box-shadow: var(--shadow-lift);
}
.hero-collage__grid { position: absolute; inset: 0; opacity: .5; }
.hero-collage__grid svg { width: 100%; height: 100%; }
.hero-collage__tile {
  position: absolute; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.hero-collage__tile svg { width: 100%; height: 100%; display: block; }
.hero-collage__tile--a { left: 7%;  top: 10%;  width: 52%; aspect-ratio: 16/11; }
.hero-collage__tile--b { right: 6%; top: 30%;  width: 40%; aspect-ratio: 9/15;  }
.hero-collage__tile--c { left: 14%; bottom: 9%; width: 44%; aspect-ratio: 16/10; }
.hero-collage__badge {
  position: absolute; left: 6%; top: 6%; z-index: 3;
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  padding: 0.4em 0.75em; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md); font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.02em; color: var(--navy-ink);
}
.hero-collage__badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 18%, transparent);
}

/* ======================================================================
   02 — FILTER
   ====================================================================== */
.pf-filterbar {
  position: sticky; top: var(--header-h); z-index: 20;
  padding-block: var(--space-md);
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.pf-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3xs);
  margin: 0;
}
.pf-filter__btn {
  display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.5em 0.95em; white-space: nowrap;
  font-size: var(--step-0); font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-flat); color: var(--text-soft);
  background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.pf-filter__btn .count {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint);
  transition: color var(--dur) var(--ease);
}
.pf-filter__btn:hover { color: var(--navy-ink); background: color-mix(in srgb, var(--navy) 6%, transparent); }
.pf-filter__btn[aria-pressed="true"] {
  color: var(--white); background: var(--emerald); border-color: var(--emerald);
}
.pf-filter__btn[aria-pressed="true"] .count { color: color-mix(in srgb, var(--white) 78%, transparent); }
.pf-filter__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* ======================================================================
   03 — FEATURED PROJECT
   ====================================================================== */
.feature { display: grid; grid-template-columns: 1.28fr 0.72fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.feature__visual { order: 0; }
.feature__body { order: 1; }
.feature__label {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--emerald-deep); margin-bottom: var(--space-lg);
}
.feature__label::before { content: ""; width: 1.75rem; height: 2px; background: var(--emerald); }

/* Stacked featured: huge screenshot on top, centered copy below */
.feature--stacked { display: block; }
.section > .feature__label {
  display: flex; justify-content: center;
  margin: 0 auto var(--space-lg);
}
.feature--stacked .feature__body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 62ch; margin: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) auto 0;
}
.feature--stacked .feature__title { max-width: none; margin: 0; }
.feature--stacked .feature__cat { margin-top: var(--space-sm); }
.feature--stacked .feature__desc { max-width: 54ch; margin: var(--space-sm) 0 var(--space-lg); }
.feature__cat {
  font-size: var(--step-0); text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--navy); font-weight: var(--weight-bold);
}
.feature__title { font-size: var(--step-4); line-height: var(--leading-tight); margin: var(--space-xs) 0 var(--space-md); max-width: 14ch; }
.feature__desc { font-size: var(--step-1); line-height: 1.5; color: var(--text-soft); max-width: 44ch; margin-bottom: var(--space-lg); }
.feature__slabel {
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--text-faint); font-weight: var(--weight-semi);
  padding-top: var(--space-md); margin-bottom: var(--space-2xs);
  border-top: 1px solid var(--line);
}
.feature__services {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md);
  margin: 0 0 var(--space-xl);
  font-size: var(--step-0); color: var(--navy-ink); font-weight: var(--weight-medium);
}
.feature__services li { position: relative; }
.feature__services li + li::before {
  content: "·"; position: absolute; left: calc(-1 * var(--space-md) / 2); transform: translateX(-50%);
  color: var(--line-strong);
}

/* ======================================================================
   04 — PORTFOLIO GRID (editorial rhythm)
   ====================================================================== */
.pf-grid {
  list-style: none; margin: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
}
.pf-card { grid-column: span 6; }               /* default / fallback */
.pf-card--lg { grid-column: span 7; }
.pf-card--md { grid-column: span 5; }
.pf-card--sm { grid-column: span 4; }
.pf-card--full { grid-column: 1 / -1; }
.pf-card[hidden] { display: none; }

.pf-card__link {
  display: flex; flex-direction: column; height: 100%; color: inherit;
  border-radius: var(--radius-lg); outline-offset: 4px;
}
.pf-card__link:focus-visible { outline: 2px solid var(--focus-ring); }

.pf-card__visual {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10; background: #F4F6FA;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.pf-card--sm .pf-card__visual { aspect-ratio: 16 / 11; }
.pf-card--full .pf-card__visual { aspect-ratio: 21 / 9; }
.pf-card__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-card__art svg { width: 100%; height: 100%; display: block; }

/* Real website screenshot inside the card frame */
.pf-card__shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
  transition: transform var(--dur) var(--ease);
}
.pf-card__ph {
  position: absolute; left: var(--space-sm); bottom: var(--space-sm); z-index: 2;
}
/* Restrained hover: the screenshot lifts subtly (scale ≤1.02), frame stays put */
.pf-card__link:hover .pf-card__visual,
.pf-card__link:focus-visible .pf-card__visual {
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--emerald) 32%, var(--line));
}
.pf-card__link:hover .pf-card__shot,
.pf-card__link:focus-visible .pf-card__shot { transform: scale(1.02); }

.pf-card__body { padding-top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); }
.pf-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm);
  font-size: var(--step--1); color: var(--text-soft);
  text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--weight-semi);
}
.pf-card__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.pf-card__title {
  font-size: var(--step-2); font-weight: var(--weight-bold);
  line-height: var(--leading-snug); color: var(--navy-ink); letter-spacing: var(--tracking-flat);
  transition: color var(--dur) var(--ease);
}
.pf-card--sm .pf-card__title { font-size: var(--step-1); }
.pf-card__link:hover .pf-card__title,
.pf-card__link:focus-visible .pf-card__title { color: var(--emerald-deep); }
.pf-card__desc { color: var(--text-soft); font-size: var(--step-0); line-height: 1.55; max-width: 52ch; }
.pf-card__foot {
  margin-top: var(--space-2xs); display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-weight: var(--weight-semi); font-size: var(--step-0); color: var(--navy);
}
.pf-card__foot svg { transition: transform var(--dur) var(--ease); }
.pf-card__link:hover .pf-card__foot { color: var(--emerald-deep); }
.pf-card__link:hover .pf-card__foot svg { transform: translateX(4px); }

.pf-empty { margin-top: var(--space-xl); text-align: center; color: var(--text-soft); }
.pf-empty[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pf-card__link:hover .pf-card__shot,
  .pf-card__link:focus-visible .pf-card__shot { transform: none; }
}

/* ----------------------------------------------------------------------
   AI SPOTLIGHT — an asymmetric, editorial portfolio row (not a SaaS card).
   Lives inside the .pf-grid as a full-width item so it inherits the
   category filter + [hidden] behaviour, but renders its own 2-col layout.
   ---------------------------------------------------------------------- */
.pf-card--spotlight { grid-column: 1 / -1; }
.pf-spot {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.75rem, 3vw, 3.25rem); align-items: center;
}
.pf-spot__body { min-width: 0; }
.pf-spot__cat {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--emerald-deep); margin-bottom: var(--space-md);
}
.pf-spot__cat::before { content: ""; width: 1.75rem; height: 2px; background: var(--emerald); }
.pf-spot__title {
  font-size: var(--step-3); line-height: var(--leading-tight);
  color: var(--navy-ink); letter-spacing: var(--tracking-tight);
  max-width: 16ch; margin-bottom: var(--space-md);
}
.pf-spot__desc { color: var(--text-soft); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.pf-spot__tags {
  list-style: none; margin: var(--space-lg) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2xs);
}
.pf-spot__tags li {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.01em;
  color: var(--text-soft); padding: 0.4em 0.8em;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.pf-spot__cta {
  margin-top: var(--space-lg); display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-weight: var(--weight-semi); font-size: var(--step-0); color: var(--navy);
}
.pf-spot__cta svg { transition: transform var(--dur) var(--ease); }
.pf-spot__cta:hover { color: var(--emerald-deep); }
.pf-spot__cta:hover svg { transform: translateX(4px); }

/* Framed builder-canvas carrying the workflow diagram */
.pf-spot__visual { min-width: 0; }
.wf-canvas {
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pf-spot__visual:hover .wf-canvas,
.pf-spot__body:hover ~ .pf-spot__visual .wf-canvas { border-color: color-mix(in srgb, var(--emerald) 30%, var(--line)); }
.wf-canvas__bar {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0.6rem var(--space-md); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #FBFCFE, color-mix(in srgb, var(--emerald) 4%, #FBFCFE));
}
.wf-canvas__dots { display: flex; gap: 6px; }
.wf-canvas__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.wf-canvas__name { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }
.wf-canvas__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--emerald-deep);
}
.wf-canvas__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.wf-canvas__view { background: #FCFDFE; }
.wf-canvas__view svg { display: block; width: 100%; height: auto; }

/* SVG workflow diagram — tokenised presentation classes */
.wf-griddot { fill: color-mix(in srgb, var(--navy) 7%, transparent); }
.wf-band { fill: color-mix(in srgb, var(--navy) 3%, transparent); }
.wf-zlabel {
  fill: var(--text-faint); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.wf-node { fill: #fff; stroke: var(--line-strong); stroke-width: 1.4; }
.wf-node--accent { stroke: var(--emerald); }
.wf-node--route { fill: color-mix(in srgb, var(--navy) 5%, #fff); stroke: var(--navy); }
.wf-nlabel { fill: var(--navy-ink); font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.wf-icon { stroke: var(--navy); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wf-icon--emerald { stroke: var(--emerald-deep); }
.wf-link { stroke: var(--line-strong); stroke-width: 1.6; fill: none; }
.wf-link--active { stroke: var(--emerald); stroke-width: 1.8; fill: none; }
.wf-ah { fill: var(--line-strong); }
.wf-ah--a { fill: var(--emerald); }

/* Linear step sequence (detail page 04) */
.wf-seq { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); }
.wf-seq__step {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.5em 0.9em; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: #fff; font-size: var(--step--1); color: var(--navy-ink); font-weight: var(--weight-medium);
}
.wf-seq__step .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--emerald); }
.wf-seq__sep { color: var(--gold); display: inline-flex; }

/* Case (project detail) — tight editorial rhythm */
.case-sec { padding-block: calc(var(--section-y) * 0.62); border-top: 1px solid var(--line); }
.case-sec:first-of-type { border-top: 0; }
.case-grid { display: grid; grid-template-columns: 14rem 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.case-grid__label { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--emerald-deep); padding-top: 0.35rem; }
.case-grid__body { min-width: 0; max-width: 68ch; }
.case-grid__body > h2 { font-size: var(--step-2); line-height: var(--leading-snug); color: var(--navy-ink); margin-bottom: var(--space-sm); }
.case-grid__body > p { color: var(--text-soft); font-size: var(--step-0); line-height: 1.6; }
.case-list { list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.case-list li { position: relative; padding: var(--space-sm) 0 var(--space-sm) var(--space-lg); border-top: 1px solid var(--line); color: var(--navy-ink); font-weight: var(--weight-medium); }
.case-list li:first-child { border-top: 0; }
.case-list li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }

/* Detail 05 — capability spec (numbered editorial list, not a card grid) */
.spec-list {
  list-style: none; margin: var(--space-lg) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
.spec-list__item {
  display: flex; align-items: baseline; gap: var(--space-sm);
  padding: 0.85rem 0; border-top: 1px solid var(--line);
}
.spec-list__n {
  flex: none; font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.06em; color: var(--emerald-deep); min-width: 1.6em;
}
.spec-list__label { color: var(--navy-ink); font-weight: var(--weight-medium); font-size: var(--step-0); line-height: 1.35; }
@media (max-width: 640px) { .spec-list { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------------
   WORKFLOW MOTION — restrained, ambient. Communicates "data flowing
   through the workflow" without a SaaS-dashboard feel. Fully disabled
   under prefers-reduced-motion (default is static, so [noscript]/reduced
   users see the finished diagram exactly as-is).
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Active spine: a slow emerald "march" along the primary path */
  .wf-link--active {
    stroke-dasharray: 3 7;
    animation: wf-flow 2.2s linear infinite;
  }
  @keyframes wf-flow { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }

  /* Decision node: one gentle pulse point (the routing/decision step) */
  .wf-node--route {
    transform-box: fill-box; transform-origin: center;
    animation: wf-pulse 2.8s var(--ease) infinite;
  }
  @keyframes wf-pulse {
    0%, 100% { stroke-width: 1.4; }
    50%      { stroke-width: 2.6; }
  }
}

/* ----------------------------------------------------------------------
   MOBILE VERTICAL WORKFLOW — readable stacked fallback for the diagram.
   Hidden by default; on narrow screens the scaled SVG (whose labels would
   become microscopic) is swapped for this vertical, branch-stacking flow
   with full-size node labels. No horizontal scrolling.
   ---------------------------------------------------------------------- */
.wf-vert { display: none; }
@media (max-width: 640px) {
  .case-sec .wf-canvas { display: none; }
  .wf-vert { display: block; margin-top: var(--space-lg); }
}
.wf-vzone {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-faint);
  margin: var(--space-md) 0 var(--space-2xs);
}
.wf-vzone:first-child { margin-top: 0; }
.wf-vstep {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0.75rem var(--space-sm); border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: #fff;
  font-weight: var(--weight-medium); color: var(--navy-ink); font-size: var(--step-0);
}
.wf-vstep--accent { border-color: var(--emerald); }
.wf-vstep--route  { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 4%, #fff); }
.wf-vstep--flag   { border-style: dashed; color: var(--text-soft); }
.wf-vconn { display: block; width: 2px; height: 16px; margin: 0 auto; background: var(--line-strong); }
.wf-vconn--active { background: var(--emerald); }
.wf-vbranch {
  list-style: none; margin: var(--space-2xs) 0 0 var(--space-md); padding: 0 0 0 var(--space-md);
  display: grid; gap: var(--space-2xs); border-left: 2px solid var(--emerald);
}
.wf-vbranch li {
  padding: 0.6rem var(--space-sm); border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-size: var(--step--1); color: var(--navy-ink);
}

@media (max-width: 1024px) {
  .pf-spot { grid-template-columns: 1fr; gap: var(--space-lg); }
  .pf-spot__visual { order: -1; }              /* image first */
  .pf-spot__title, .pf-spot__desc { max-width: none; }
  .case-grid { grid-template-columns: 1fr; gap: var(--space-sm); }
  .case-grid__label { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-spot__cta:hover svg { transform: none; }
}

/* ======================================================================
   MOCKUP VISUAL SYSTEM — one treatment per project type.
   Backgrounds/fills use tokens; SVGs scale with the card. Distinct per type.
   ====================================================================== */
.mk { position: absolute; inset: 0; }
.mk svg { width: 100%; height: 100%; display: block; }
.mk--navy { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); }
.mk--light { background: linear-gradient(160deg, #F7F9FC, #EEF2F8); }
.mk--ink { background: linear-gradient(160deg, #0B2A57, var(--navy-ink)); }

/* Browser mockup (HTML chrome) — used for the FEATURE visual */
.mk-browser {
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-lift);
}
.mk-browser__bar {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 0.7rem var(--space-md); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #FBFCFE, color-mix(in srgb, var(--emerald) 4%, #FBFCFE));
}
.mk-browser__dots { display: flex; gap: 6px; }
.mk-browser__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mk-browser__addr {
  flex: 1; max-width: 60%; height: 22px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white);
  display: flex; align-items: center; padding: 0 0.75rem; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint);
}
.mk-browser__addr::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); flex: none; }
.mk-browser__view { aspect-ratio: 16 / 10; position: relative; background: #FCFDFE; overflow: hidden; }
.mk-browser__view svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Featured browser frame carrying a real website screenshot */
.mk-browser--shot {
  display: block; color: inherit; text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mk-browser--shot:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.mk-browser__shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
  transition: transform var(--dur) var(--ease);
}
.mk-browser--shot:hover .mk-browser__shot,
.mk-browser--shot:focus-visible .mk-browser__shot { transform: scale(1.02); }
.mk-browser--shot:hover { border-color: color-mix(in srgb, var(--emerald) 34%, var(--line)); }
@media (prefers-reduced-motion: reduce) {
  .mk-browser--shot:hover .mk-browser__shot,
  .mk-browser--shot:focus-visible .mk-browser__shot { transform: none; }
}

@media (prefers-reduced-motion: reduce) { .mk-anim { animation: none !important; } }

/* ======================================================================
   07 — TRUST / SCALE STRIP
   ====================================================================== */
.scale-strip__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.scale-strip h2 { font-size: var(--step-3); max-width: 16ch; }
.scale-strip__sub { color: var(--text-invert-soft); max-width: 52ch; margin-top: var(--space-md); }
.scale-strip__stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin: 0; }
.scale-strip__stats li { padding-top: var(--space-md); border-top: 2px solid var(--gold); position: relative; }
.scale-strip__stats li::after { content: ""; position: absolute; top: -2px; left: 0; width: 30%; height: 2px; background: var(--emerald); }
.scale-strip__n {
  font-family: var(--font-display); font-weight: var(--weight-x);
  font-size: var(--step-4); line-height: 1; color: var(--white);
  letter-spacing: var(--tracking-tight); font-variant-numeric: lining-nums tabular-nums;
}
.scale-strip__n .suffix { color: var(--emerald-bright); }
.scale-strip__l { margin-top: var(--space-2xs); color: var(--text-invert-soft); font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--tracking-wide); }

/* ======================================================================
   08 — WORK BY CAPABILITY
   ====================================================================== */
.cap-list { list-style: none; margin: var(--space-xl) 0 0; border-top: 1px solid var(--line); }
.cap-item { border-bottom: 1px solid var(--line); }
.cap-item__link {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: var(--space-md) var(--space-lg); padding: var(--space-lg) var(--space-sm);
  color: inherit; transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.cap-item__link:hover { background: color-mix(in srgb, var(--emerald) 4%, transparent); padding-inline: var(--space-md); }
.cap-item__link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.cap-item__n { font-family: var(--font-mono); font-size: var(--step--1); color: var(--emerald); }
.cap-item__name { font-size: var(--step-2); font-weight: var(--weight-bold); color: var(--navy-ink); letter-spacing: var(--tracking-flat); line-height: 1.15; }
.cap-item__desc { color: var(--text-soft); font-size: var(--step-0); max-width: 42ch; justify-self: start; }
.cap-item__arrow { color: var(--text-faint); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.cap-item__link:hover .cap-item__arrow { color: var(--emerald); transform: translateX(5px); }

/* ======================================================================
   RESPONSIVE — Work page
   ====================================================================== */
@media (max-width: 1024px) {
  .work-hero__grid { grid-template-columns: 1fr; }
  .work-hero__visual { max-width: 520px; margin: var(--space-sm) auto 0; width: 100%; }
  .work-hero h1, .work-hero__lead { max-width: none; }

  .feature { grid-template-columns: 1fr; }
  .feature__body { order: 1; }
  .feature__visual { order: 0; }

  .scale-strip__grid { grid-template-columns: 1fr; }

  /* Portfolio grid → simplified 2-up on tablet */
  .pf-card--lg, .pf-card--md { grid-column: span 6; }
  .pf-card--sm { grid-column: span 6; }
}

@media (max-width: 768px) {
  .cap-item__link { grid-template-columns: auto 1fr auto; }
  .cap-item__desc { display: none; }

  /* Filter → horizontal scroll rail */
  .pf-filterbar { position: static; }
  .pf-filter {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--space-2xs);
    scrollbar-width: none; -ms-overflow-style: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
  }
  .pf-filter::-webkit-scrollbar { display: none; }
  .pf-filter__btn { scroll-snap-align: start; flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card, .pf-card--lg, .pf-card--md, .pf-card--sm, .pf-card--full { grid-column: 1 / -1; }
  .pf-card__visual, .pf-card--sm .pf-card__visual, .pf-card--full .pf-card__visual { aspect-ratio: 16 / 10; }

  .work-hero__proof { gap: var(--space-lg) var(--space-xl); }
  .scale-strip__stats { grid-template-columns: 1fr; gap: var(--space-lg); }
  .scale-strip__stats li { display: flex; align-items: baseline; gap: var(--space-md); border-top: 0; padding-top: 0; }
  .scale-strip__stats li::after { display: none; }
  .cap-item__name { font-size: var(--step-1); }
}

@media (max-width: 400px) {
  .work-hero__proof { flex-direction: column; gap: var(--space-md); }
}
