/* eZephyr v2 — /work/ and case-study visual prototype (Milestone 3B).
 * "Made to be seen": the portfolio as Mumbai's hoardings. The hero's tri-vision
 * billboard turns between three posters; project cards are poster frames in the
 * Services colours; the enquiry stands on legs like a hoarding over the street.
 * Carries the Milestone 3A language (css/prototype/tokens.css). Scoped to .wk.
 * Shared pieces (fills, buttons, highlighter, motion toggle) duplicate the
 * Services prototype on purpose, so that page stays untouched; merge them into one
 * components file in the website-wide refinement round.
 */

.page-work, .page-case-study { background: var(--ez-sky-light); }
.wk { display: flow-root; background: var(--ez-paper); color: var(--ez-ink); }

/* ---------- SVG fills and strokes from the tokens ---------- */
.wk .f-yellow { fill: var(--ez-yellow); }
.wk .f-ink { fill: var(--ez-ink); }
.wk .f-ink-soft { fill: var(--ez-ink-soft); }
.wk .f-paper { fill: var(--ez-paper); }
.wk .f-sky { fill: var(--ez-sky); }
.wk .f-sky-mid { fill: var(--ez-sky-mid); }
.wk .f-sky-light { fill: var(--ez-sky-light); }
.wk .f-red { fill: var(--ez-red); }
.wk .f-bus-green { fill: var(--ez-bus-green); }
.wk .f-sea { fill: var(--ez-sea); }
.wk .f-sea-light { fill: var(--ez-sea-light); }
.wk .f-lilac { fill: var(--ez-lilac); }
.wk .f-green { fill: var(--ez-green); }
.wk .f-stone { fill: var(--ez-stone); }
.wk .f-stone-grey { fill: var(--ez-stone-grey); }
.wk .f-road { fill: var(--ez-road); }
.wk .f-road-light { fill: var(--ez-road-light); }
.wk .f-taxi { fill: var(--ez-taxi); }
.wk .s-ink-soft { stroke: var(--ez-ink-soft); }
.wk .s-red { stroke: var(--ez-red); }
.wk .s-yellow { stroke: var(--ez-yellow); }

/* ---------- Buttons, links, highlighter ---------- */
.wk .ez-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0.55em 1.25em;
  border: 2px solid var(--ez-ink);
  border-radius: 4px;
  font-family: var(--ez-font-display);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s var(--ez-ease-out), box-shadow 0.2s var(--ez-ease-out);
}
.wk .ez-btn--ink { background: var(--ez-ink); color: var(--ez-yellow); box-shadow: 0 4px 0 var(--ez-yellow), 0 4px 0 2px var(--ez-ink); }
.wk .ez-btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ez-yellow), 0 7px 0 2px var(--ez-ink); }
.wk .ez-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--ez-yellow), 0 2px 0 2px var(--ez-ink); }

.wk .ez-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-family: var(--ez-font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ez-ink);
  text-decoration: underline;
  text-decoration-color: var(--ez-yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}
.wk .ez-link:hover { text-decoration-color: var(--ez-ink); }

.wk .hl { position: relative; z-index: 0; white-space: nowrap; }
.wk .hl::before {
  content: '';
  position: absolute;
  left: -0.05em;
  right: -0.07em;
  bottom: 0.24em;
  height: 0.34em;
  background: var(--ez-yellow);
  z-index: -1;
  transform-origin: left center;
}
.wk .nowrap { white-space: nowrap; }

.wk-eyebrow {
  display: block;
  width: fit-content;
  margin-bottom: clamp(12px, 1.6vw, 20px);
  padding: 5px 12px 4px;
  background: var(--ez-ink);
  color: var(--ez-yellow);
  font-family: var(--ez-font-display);
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wk-h2 {
  font-family: var(--ez-font-display);
  font-weight: 400;
  font-size: var(--ez-text-h2);
  line-height: 0.95;
  text-transform: uppercase;
}
.wk-h2__alt { color: var(--ez-ink); }
@supports (-webkit-text-stroke: 2px black) {
  .wk-h2__alt { color: transparent; -webkit-text-stroke: 2px var(--ez-ink); }
}
.wk-h3 {
  font-family: var(--ez-font-display);
  font-weight: 400;
  font-size: var(--ez-text-h3);
  line-height: 1.05;
  text-transform: uppercase;
}

.wk-wrap { width: min(100% - 2 * var(--ez-gutter), var(--ez-max)); margin-inline: auto; }

/* ---------- Placeholders: designed, but impossible to mistake for real work ---------- */
.wk [data-placeholder] { outline: 2px dashed rgba(49, 49, 50, 0.5); outline-offset: 3px; }
.wk .placeholder-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 6px 1px;
  border-radius: 2px;
  background: var(--ez-ink);
  color: var(--ez-yellow);
  font: 700 0.6875rem/1.4 var(--ez-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.2em;
  -webkit-text-stroke: 0;
}
.wk .placeholder-text { font-style: italic; }

/* ================= Hero ================= */
.wk-hero { position: relative; overflow: hidden; background: var(--ez-sky-light); }
.wk-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--ez-gutter), var(--ez-max));
  margin-inline: auto;
  padding-top: clamp(20px, 3.5vw, 44px);
}
.wk-hero__title { margin-top: clamp(20px, 3vw, 36px); font-family: var(--ez-font-display); font-weight: 400; }
.wk-hero__line {
  display: block;
  font-size: var(--ez-text-hero);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.wk-hero__word { display: inline-block; }
.wk-hero__lead { max-width: 30rem; margin-top: clamp(16px, 2vw, 26px); font-size: var(--ez-text-lead); line-height: 1.45; }
.wk-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(20px, 2.6vw, 30px); }

.wk-city { position: relative; z-index: 1; margin-top: clamp(28px, 5vw, 48px); }
.wk-city svg { display: block; width: 100%; height: clamp(230px, 60vw, 360px); }
@media (min-width: 1024px) {
  /* Copy sits beside the low-rise end of the street; the hoardings rise to its right. */
  /* The copy column stops short of the hoarding, which starts at 596/1440 of the width. */
  .wk-hero__lead, .wk-hero__actions { max-width: min(30rem, calc(41.4vw - max(var(--ez-gutter), (100vw - var(--ez-max)) / 2) - 32px)); }
  .wk-city { margin-top: max(-12vw, -200px); }
  .wk-city svg { height: auto; aspect-ratio: 1440 / 440; }
}

/* The tri-vision hoarding: each slat shows one of three faces. Resting state: face A. */
.wk-tv rect { transform-box: fill-box; transform-origin: center; }
.wk-tv .tv-b, .wk-tv .tv-c { transform: scaleX(0); }

.wk .ez-motion-toggle {
  position: absolute;
  right: var(--ez-gutter);
  bottom: clamp(8px, 1.2vw, 14px);
  z-index: 3;
  min-height: 32px;
  padding: 4px 12px;
  border: 2px solid var(--ez-ink);
  border-radius: 999px;
  background: var(--ez-paper);
  color: var(--ez-ink);
  font: 600 0.875rem/1 var(--ez-font-body);
  cursor: pointer;
}
.wk .ez-motion-toggle[hidden] { display: none; }

/* ================= Projects ================= */
.wk-projects {
  width: min(100% - 2 * var(--ez-gutter), var(--ez-max));
  margin: clamp(56px, 8vw, 112px) auto clamp(56px, 8vw, 104px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.wk-section-head { display: grid; gap: 16px 48px; margin-bottom: clamp(24px, 3.2vw, 40px); }
.wk-section-head__intro { max-width: 30ch; font-size: var(--ez-text-lead); line-height: 1.4; }
@media (min-width: 1024px) {
  .wk-section-head { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .wk-section-head__intro { justify-self: end; }
}

/* Filter chips */
.wk-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.wk-filter[hidden] { display: none; }
.wk-filter__label { font-weight: 700; font-size: 0.9375rem; }
.wk-filter__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border: 2px solid var(--ez-ink);
  border-radius: 999px;
  background: var(--ez-paper);
  color: var(--ez-ink);
  font: 400 1rem/1 var(--ez-font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--ez-ease-out);
}
.wk-chip:hover { background: var(--ez-sky-light); }
.wk-chip[aria-pressed="true"] { background: var(--ez-ink); color: var(--ez-yellow); }
.wk-chip[hidden] { display: none; }
.wk-chip__count {
  min-width: 1.6em;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--ez-yellow);
  color: var(--ez-ink);
  font: 700 0.75rem/1.2 var(--ez-font-body);
  text-align: center;
}

/* Project grid */
.wk-grid { display: grid; gap: var(--ez-gap); }
.wk-card[hidden] { display: none; }
.wk-card {
  --c: var(--ez-yellow);
  --c-fg: var(--ez-ink);
  display: flex;
}
.wk-card--branding { --c: var(--ez-yellow); }
.wk-card--websites { --c: var(--ez-sea); --c-fg: #fff; }
.wk-card--ecommerce { --c: var(--ez-lilac); }
.wk-card--social { --c: var(--ez-sky); }
.wk-card--performance { --c: var(--ez-red); --c-fg: #fff; }

.wk-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 2px solid var(--ez-ink);
  border-radius: var(--ez-radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s var(--ez-ease-out), box-shadow 0.3s var(--ez-ease-out);
}
.wk-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--c);
  border-bottom: 2px solid var(--ez-ink);
}
.wk-card__media[data-placeholder] { outline-offset: -10px; outline-color: rgba(49, 49, 50, 0.35); }
.wk-card__media img { width: 100%; height: 100%; object-fit: cover; }
.wk-card__media figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 3px 9px 3px 3px;
  border-radius: 3px;
  background: var(--ez-paper);
  color: var(--ez-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}
.wk-motif { width: min(82%, 420px); height: auto; max-height: 86%; overflow: visible; }
.wk-motif__type { font-family: var(--ez-font-display); font-size: 150px; fill: var(--ez-ink); }
.wk-motif__windows rect { fill: var(--ez-sea-light); }

.wk-card__body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(18px, 2.2vw, 28px);
}
.wk-card__cat {
  padding: 4px 10px 3px;
  border-radius: 3px;
  background: var(--c);
  color: var(--c-fg);
  font: 400 0.875rem/1.2 var(--ez-font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wk-card__title {
  font-family: var(--ez-font-display);
  font-weight: 400;
  font-size: var(--ez-text-h3);
  line-height: 1.05;
  text-transform: uppercase;
}
.wk-card--lg .wk-card__title { font-size: var(--ez-text-h3-lg); }
.wk-card__text { max-width: 44ch; font-size: 1.0625rem; line-height: 1.45; }
.wk-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ez-ink-soft);
}
.wk-card__status::before { content: ''; width: 22px; border-top: 3px dashed currentColor; }
.wk-card__status--live { color: var(--ez-ink); }
.wk-card__status--live::before { border-top-style: solid; border-color: var(--ez-yellow); }

/* A card with a published case study: the whole card is the link. */
.wk-card__link { color: inherit; text-decoration: none; }
.wk-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.wk-card__link:focus-visible { outline: none; }
.wk-card__inner:has(.wk-card__link:focus-visible) { outline: 3px solid var(--ez-ink); outline-offset: 4px; }

/* Tablet: two columns, the feature card across the top. */
@media (min-width: 640px) {
  .wk-grid { grid-template-columns: repeat(2, 1fr); }
  .wk-card--lg { grid-column: 1 / -1; }
}
/* Desktop: a feature card two rows tall, then an asymmetric pair. */
@media (min-width: 1024px) {
  .wk-grid { grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; }
  .wk-card { grid-column: span 6; }
  .wk-card--lg { grid-column: span 7; grid-row: span 2; }
  .wk-card--lg + .wk-card,
  .wk-card--lg + .wk-card + .wk-card { grid-column: span 5; }
  .wk-card--lg .wk-card__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 320px; }
  .wk-card--lg .wk-card__body { flex: none; }
  .wk-card--lg .wk-motif { width: min(78%, 520px); }
  .wk-grid.is-filtered .wk-card { grid-column: span 6; grid-row: auto; }
  .wk-grid.is-filtered .wk-card--lg .wk-card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}

/* ================= Clients ================= */
.wk-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ez-gap); margin-top: clamp(20px, 2.6vw, 32px); }
.wk-logos li {
  display: grid;
  place-items: center;
  height: clamp(96px, 10vw, 128px);
  padding: 16px 20px;
  border: 2px solid var(--ez-ink);
  border-radius: var(--ez-radius);
  background: #fff;
}
.wk-logos img { width: auto; height: auto; max-width: 100%; max-height: clamp(60px, 6.5vw, 92px); }
/* Pale logo artwork (as on the original sky backdrop) sits on ink. */
.wk-logos li.is-dark { background: var(--ez-ink); }
@media (min-width: 640px) { .wk-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .wk-logos { grid-template-columns: repeat(6, 1fr); } }

/* ================= Enquiry: a hoarding over the street ================= */
.wk-cta {
  padding-top: clamp(56px, 8vw, 104px);
  background: var(--ez-sky-light);
}
.wk-cta__board { position: relative; width: min(100% - 2 * var(--ez-gutter), 60rem); margin-inline: auto; }
.wk-cta__panel {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 5vw, 60px);
  border: clamp(8px, 1.2vw, 12px) solid var(--ez-ink);
  background: var(--ez-yellow);
}
.wk-cta__title {
  max-width: 13ch;
  font-family: var(--ez-font-display);
  font-weight: 400;
  font-size: var(--ez-text-h2);
  line-height: 0.95;
  text-transform: uppercase;
}
.wk-cta__text { margin: 14px 0 26px; font-size: var(--ez-text-lead); }
/* Lamps on arms above the board */
.wk-cta__lamps { display: flex; justify-content: space-around; height: 26px; padding-inline: 12%; }
.wk-cta__lamps span { position: relative; width: 24px; border-left: 4px solid var(--ez-ink-soft); border-top: 4px solid var(--ez-ink-soft); }
.wk-cta__lamps span::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -12px;
  width: 16px;
  height: 9px;
  border-radius: 2px;
  background: var(--ez-ink-soft);
}
/* Lattice legs down to the footer's street */
.wk-cta__legs { display: flex; justify-content: space-between; height: clamp(40px, 6vw, 72px); padding-inline: 14%; }
.wk-cta__legs::before,
.wk-cta__legs::after {
  content: '';
  width: 22px;
  border-inline: 4px solid var(--ez-ink-soft);
  background: repeating-linear-gradient(45deg, transparent 0 8px, var(--ez-ink-soft) 8px 11px);
}

/* ================= Case study ================= */
.wk-case { --theme: var(--ez-yellow); --theme-fg: var(--ez-ink); }
.wk-case--websites { --theme: var(--ez-sea); --theme-fg: #fff; }
.wk-case--ecommerce { --theme: var(--ez-lilac); }
.wk-case--social { --theme: var(--ez-sky); }
.wk-case--performance { --theme: var(--ez-red); --theme-fg: #fff; }

/* The cover sits half on the sky, half on the paper. */
.wk-case-hero { --overhang: clamp(60px, 10vw, 150px); position: relative; padding-bottom: 1px; background: linear-gradient(var(--ez-sky-light) calc(100% - var(--overhang)), var(--ez-paper) 0); }
.wk-case-hero__inner {
  width: min(100% - 2 * var(--ez-gutter), var(--ez-max));
  margin-inline: auto;
  padding-top: clamp(20px, 3.5vw, 44px);
}
.wk-case-hero__title { margin-top: clamp(20px, 3vw, 36px); font-family: var(--ez-font-display); font-weight: 400; }
.wk-case-hero__line {
  display: block;
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.wk-case-hero__lead { max-width: 36rem; margin-top: clamp(16px, 2vw, 24px); font-size: var(--ez-text-lead); line-height: 1.45; }

.wk-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px var(--ez-gap);
  margin-top: clamp(26px, 3.6vw, 44px);
}
.wk-facts > div { padding-top: 10px; border-top: 3px solid var(--ez-ink); }
.wk-facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ez-ink-soft); }
.wk-facts dd { margin: 4px 0 0; font-size: 1.0625rem; line-height: 1.35; }
@media (min-width: 900px) { .wk-facts { grid-template-columns: repeat(4, 1fr); } }

.wk-case-cover { margin-top: clamp(28px, 4vw, 52px); }
.wk-figure { margin: 0; }
.wk-figure__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  border: 2px solid var(--ez-ink);
  border-radius: var(--ez-radius);
  background: var(--theme);
}
.wk-figure__frame[data-placeholder] { outline-offset: -10px; outline-color: rgba(49, 49, 50, 0.35); }
.wk-figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.wk-figure__frame .wk-motif { width: min(60%, 520px); }
.wk-figure figcaption { margin-top: 10px; font-size: 0.9375rem; line-height: 1.4; color: var(--ez-ink-soft); }
.wk-figure__note {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 3px 9px 3px 3px;
  border-radius: 3px;
  background: var(--ez-paper);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Numbered editorial sections */
.wk-case-body { width: min(100% - 2 * var(--ez-gutter), var(--ez-max)); margin: clamp(36px, 5vw, 64px) auto 0; }
.wk-case-section {
  display: grid;
  gap: 18px 48px;
  padding-block: clamp(32px, 5vw, 64px);
  border-top: 3px solid var(--ez-ink);
}
.wk-case-section__head { display: flex; align-items: baseline; gap: 16px; }
.wk-case-section__num {
  font-family: var(--ez-font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--ez-ink);
}
@supports (-webkit-text-stroke: 2px black) {
  .wk-case-section__num { color: transparent; -webkit-text-stroke: 2px var(--ez-ink); }
}
.wk-case-section .wk-h3 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.wk-prose { max-width: 62ch; font-size: 1.125rem; line-height: 1.6; }
.wk-prose > * + * { margin-top: 1em; }
.wk-scope { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wk-scope li {
  padding: 6px 12px 5px;
  border-radius: 3px;
  background: var(--theme);
  color: var(--theme-fg);
  font: 400 0.9375rem/1.2 var(--ez-font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 900px) {
  .wk-case-section { grid-template-columns: 4fr 8fr; }
  .wk-case-section--full { grid-template-columns: 1fr; }
}

/* Gallery */
.wk-gallery { display: grid; gap: var(--ez-gap); }
@media (min-width: 640px) {
  .wk-gallery { grid-template-columns: repeat(12, 1fr); }
  .wk-gallery > .wk-figure { grid-column: span 6; }
  .wk-gallery > .wk-figure--wide { grid-column: 1 / -1; }
  .wk-gallery > .wk-figure--lg { grid-column: span 7; }
  .wk-gallery > .wk-figure--sm { grid-column: span 5; }
}

/* Outcomes: verified results only */
.wk-outcomes { display: grid; gap: var(--ez-gap); margin-top: 22px; }
.wk-outcome { padding: 20px; border-radius: var(--ez-radius); background: var(--theme); color: var(--theme-fg); }
.wk-outcome dt { font-family: var(--ez-font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.wk-outcome dd { margin-top: 8px; font-size: 1rem; line-height: 1.4; }
@media (min-width: 640px) { .wk-outcomes { grid-template-columns: repeat(2, 1fr); } }

.wk-note {
  max-width: 62ch;
  padding: 12px 16px;
  border-left: 6px solid var(--ez-red);
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Related work */
.wk-related { padding-block: clamp(32px, 5vw, 64px) clamp(8px, 2vw, 24px); border-top: 3px solid var(--ez-ink); }
.wk-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 2.6vw, 32px); }
@media (min-width: 640px) { .wk-grid--related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wk-grid--related .wk-card { grid-column: auto; } }

/* ================= Motion ================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero entrance */
  .wk-eyebrow { animation: ez-rise 0.6s var(--ez-ease-out) both; }
  .wk-hero__word, .wk-case-hero__line { animation: ez-rise 0.8s var(--ez-ease-out) both 0.08s; }
  .wk-hero__word + .wk-hero__word { animation-delay: 0.18s; }
  .wk .hl::before { animation: ez-wipe 0.55s var(--ez-ease-out) both 0.75s; }
  .wk-hero__lead, .wk-case-hero__lead { animation: ez-rise 0.8s var(--ez-ease-out) both 0.32s; }
  .wk-hero__actions, .wk-facts { animation: ez-rise 0.8s var(--ez-ease-out) both 0.42s; }
  .wk-case-cover { animation: ez-rise 0.9s var(--ez-ease-out) both 0.5s; }
  .wk-layer { animation: ez-rise-sm 1s var(--ez-ease-out) both; }
  .wk-layer--far { animation-delay: 0.15s; }
  .wk-layer--mid { animation-delay: 0.3s; }
  .wk-layer--front { animation-delay: 0.45s; }

  /* Street life and the turning hoarding (loops; paused off-screen or on request) */
  .wk-taxi { animation: ez-drive-right 17s linear infinite; }
  .wk-bus { animation: ez-drive-left 29s linear infinite -11s; }
  .wk-waves { animation: ez-waves 3.2s linear infinite; }
  .wk-lit { animation: ez-twinkle 3.6s ease-in-out infinite alternate var(--d, 0s); }
  .wk-tv rect { animation: wk-face 12s var(--ez-ease-out) infinite; }
  .wk-tv .tv-a { animation-delay: calc(var(--n) * 0.07s); }
  .wk-tv .tv-b { animation-delay: calc(var(--n) * 0.07s - 8s); }
  .wk-tv .tv-c { animation-delay: calc(var(--n) * 0.07s - 4s); }

  /* Reveal on scroll (js/prototype/work.js marks below-the-fold items as pending) */
  [data-reveal].is-pending { opacity: 0; transform: translateY(36px); }
  [data-reveal].is-revealed {
    transition: opacity var(--ez-dur) var(--ez-ease-out), transform var(--ez-dur) var(--ez-ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .wk-cta__board.is-revealed .wk-cta__lamps span::after { animation: wk-lamp 1.2s ease-out both 0.5s; }

  /* Card motifs: a small gesture on hover, transform only */
  .wk-motif__chips rect, .wk-motif__spark, .wk-motif__phone, .wk-motif__heart, .wk-motif__awning, .wk-motif__bag, .wk-motif__arrow {
    transform-box: fill-box;
    transition: transform 0.45s var(--ez-ease-out);
  }
  .wk-motif__spark, .wk-motif__heart { transform-origin: center; }
  .wk-motif__phone { transform-origin: 50% 100%; }
  .wk-motif__awning { transform-origin: center top; }
  .wk-motif__windows rect { transition: fill 0.25s ease; }
  .wk-motif__windows rect:nth-child(2) { transition-delay: 0.08s; }
  .wk-motif__windows rect:nth-child(3) { transition-delay: 0.16s; }
  .wk-motif__chips rect:nth-child(2) { transition-delay: 0.04s; }
  .wk-motif__chips rect:nth-child(3) { transition-delay: 0.08s; }
  .wk-motif__chips rect:nth-child(4) { transition-delay: 0.12s; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wk-card:hover .wk-motif__chips rect:nth-child(1) { transform: translate(-8px, -8px); }
  .wk-card:hover .wk-motif__chips rect:nth-child(2) { transform: translate(8px, -8px); }
  .wk-card:hover .wk-motif__chips rect:nth-child(3) { transform: translate(-8px, 8px); }
  .wk-card:hover .wk-motif__chips rect:nth-child(4) { transform: translate(8px, 8px); }
  .wk-card:hover .wk-motif__spark { transform: rotate(90deg) scale(1.2); }
  .wk-card:hover .wk-motif__windows rect { fill: var(--ez-yellow); }
  .wk-card:hover .wk-motif__phone--l { transform: rotate(-8deg); }
  .wk-card:hover .wk-motif__phone--r { transform: rotate(8deg); }
  .wk-card:hover .wk-motif__heart { transform: scale(1.25); }
  .wk-card:hover .wk-motif__awning { animation: ez-flap 0.7s var(--ez-ease-out); }
  .wk-card:hover .wk-motif__bag { transform: translateY(-8px); }
  .wk-card:hover .wk-motif__arrow { transform: translate(8px, -8px); }
  /* Only a card that leads somewhere lifts. */
  .wk-card__inner:has(.wk-card__link):hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ez-ink); }
  .wk-chip:hover { transform: translateY(-2px); }
}

[data-loop].is-paused,
[data-loop].is-paused *,
.wk.is-motion-paused [data-loop],
.wk.is-motion-paused [data-loop] * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .wk *, .wk *::before, .wk *::after { animation: none !important; transition: none !important; }
  .wk .ez-btn:hover, .wk .ez-btn:active { transform: none; }
}

/* Vehicles' resting places when nothing moves */
.wk-taxi { transform: translateX(300px); }
.wk-bus { transform: translateX(1200px); }

@keyframes ez-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes ez-rise-sm { from { opacity: 0; transform: translateY(24px); } }
@keyframes ez-wipe { from { transform: scaleX(0); } }
@keyframes ez-drive-right { from { transform: translateX(-120px); } to { transform: translateX(1540px); } }
@keyframes ez-drive-left { from { transform: translateX(1560px); } to { transform: translateX(-160px); } }
@keyframes ez-waves { from { transform: translateX(-40px); } to { transform: translateX(0); } }
@keyframes ez-twinkle { from { opacity: 1; } to { opacity: 0.2; } }
@keyframes ez-flap { 0% { transform: scaleY(1); } 35% { transform: scaleY(0.82); } 70% { transform: scaleY(1.06); } 100% { transform: scaleY(1); } }
/* One face of a tri-vision slat: shown for a third of the cycle, turning in and out edge-on. */
@keyframes wk-face {
  0% { transform: scaleX(0); }
  4% { transform: scaleX(1); }
  33.3% { transform: scaleX(1); }
  37.3% { transform: scaleX(0); }
  100% { transform: scaleX(0); }
}
@keyframes wk-lamp { 0%, 40% { opacity: 1; } 20%, 60% { opacity: 0.3; } 100% { opacity: 1; } }

/* ================= Milestones 6C–6D: the international portfolio =================
 * Selected Work: real projects, one column on phones, two from 680px, three from 1180px
 * (compact cards, 2026-10-22: a slimmer stage, a tighter body and a smaller title, so a row
 * of three fits the screen). The genuine desktop screenshot is the hero of each card, edge to
 * edge in its image area (2026-10-23; see "Website screenshots" below).
 * A card with a Project Showcase has one card-wide link, "View Project"; "Visit Live Website"
 * sits above it. */
.wk-grid--showcase { grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (min-width: 680px) {
  .wk-grid--showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .wk-grid--showcase .wk-card { grid-column: auto; }
}
@media (min-width: 1180px) {
  .wk-grid--showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.wk-grid--showcase .wk-card__inner { border-radius: 10px; }
.wk-grid--showcase .wk-card__media { display: block; aspect-ratio: auto; border-bottom: 2px solid var(--ez-ink); }
.wk-grid--showcase .wk-card__media.ez-stage { padding: clamp(12px, 5%, 22px); }
.wk-grid--showcase .wk-card__media img { height: auto; object-fit: initial; }
.wk-grid--showcase .wk-card__body { gap: 8px; padding: clamp(14px, 1.6vw, 20px); }
.wk-grid--showcase .wk-card__title { font-size: clamp(1.375rem, 1.9vw, 1.75rem); }
.wk-grid--showcase .wk-card__text { font-size: 1rem; line-height: 1.4; }
.wk-grid--showcase .wk-card__scopes { gap: 6px; }
.wk-grid--showcase .wk-card__actions { gap: 8px 20px; padding-top: 2px; }
.wk .wk-grid--showcase .wk-card__cta { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
/* Website screenshots (2026-10-23): edge to edge in the card's image area, with no coloured stage
 * and no browser frame. The area keeps the height it had with the frame (about 4:3 in the
 * three-column grid, 7:5 below it); the screenshot covers it without distortion, anchored top
 * left: sites put their logo and headline on the left, so only the right edge (the end of the
 * menu) is trimmed. Logos (.wk-card__media--logo) are never cropped. */
.wk-grid--showcase .wk-card__media--shot { aspect-ratio: 7 / 5; padding: 0; background: none; }
@media (min-width: 1180px) {
  .wk-grid--showcase .wk-card__media--shot { aspect-ratio: 4 / 3; }
}
.wk-grid--showcase .wk-card__media--shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* Branding view (2026-10-23): a branding card has a second media, the logo eZephyr designed
 * (data-media="branding"), shown instead of the website screenshot (data-media="website") only
 * while the Branding filter is on (work.js sets the grid's data-view). The logo sits whole on a
 * plain plate, framed like the screenshots; a light-coloured logo gets the dark plate (as on Brands). */
.wk-grid--showcase .wk-card__media--logo { display: none; aspect-ratio: 16 / 11; place-items: stretch; }
.wk-grid--showcase[data-view="branding"] .wk-card__media[data-media="website"] { display: none; }
.wk-grid--showcase[data-view="branding"] .wk-card__media--logo { display: grid; }
/* A logo-only card (no website) shows its logo in every view. */
.wk-grid--showcase .wk-card--logo-only .wk-card__media--logo { display: grid; }
.wk-card__logo {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 9% 12%;
  border: 2px solid var(--ez-ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 36px -20px rgba(49, 49, 50, 0.55);
}
.wk-card__logo--dark { background: var(--ez-ink); }
.wk-card__logo picture { display: contents; }
.wk-grid--showcase .wk-card__logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
/* No verified logo yet: the client's name and "Logo Pending", replaced by the img when the file arrives. */
.wk-card__logo-pending { color: var(--ez-ink-soft); font: 400 1.125rem/1.3 var(--ez-font-display); letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.wk-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.wk-card__badge {
  padding: 4px 10px 3px;
  border-radius: 3px;
  background: var(--ez-yellow);
  color: var(--ez-ink);
  font: 400 0.8125rem/1.2 var(--ez-font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wk-card__meta { font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em; color: var(--ez-ink-soft); }
.wk-grid--showcase .wk-card__text { max-width: 52ch; }
.wk-card__scope {
  padding: 3px 10px 2px;
  border: 2px solid var(--ez-ink);
  border-radius: 3px;
  font: 400 0.8125rem/1.2 var(--ez-font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wk-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
}
/* Primary: View Project. Its ::after covers the card, so the whole card opens the showcase.
   It never moves on its own (a transform would shrink the card-wide area to the button). */
.wk .wk-card__cta { min-height: 48px; padding: 10px 20px; font-size: 1.0625rem; }
.wk .wk-card__cta,
.wk .wk-card__cta:hover,
.wk .wk-card__cta:active { transform: none; box-shadow: 0 4px 0 var(--ez-yellow), 0 4px 0 2px var(--ez-ink); }
.wk-card__cta::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.wk-card__cta:focus-visible { outline: none; }
.wk-card__inner:has(.wk-card__cta:focus-visible) { outline: 3px solid var(--ez-ink); outline-offset: 4px; }
/* Secondary: the live site, above the card-wide link. */
.wk-card__ext {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ez-ink);
  text-decoration: underline;
  text-decoration-color: var(--ez-sea-light);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.wk-card__ext:hover { text-decoration-color: var(--ez-ink); }
.wk-card__ext:focus-visible { outline: 3px solid var(--ez-ink); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wk-card__inner:has(.wk-card__cta):hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ez-ink); }
}
.wk-capture-note { margin-top: clamp(14px, 2vw, 22px); font-size: 0.875rem; line-height: 1.45; color: var(--ez-ink-soft); }


/* Closing board on a Project Showcase: the actions sit side by side. */
.wk-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ================= Milestone 7A: service filter, scopes, empty state =================
 * The 3B filter chips (above) return with five services. A filtered grid keeps the showcase
 * columns (the 3B .is-filtered rule was for the old 12-column grid). */
.wk-grid--showcase.is-filtered .wk-card { grid-column: auto; grid-row: auto; }
.wk-projects .wk-filter { margin-bottom: clamp(20px, 2.6vw, 30px); }
.wk-chip:focus-visible { outline: 3px solid var(--ez-ink); outline-offset: 3px; }
.wk-chip__count:empty { display: none; }

.wk-card__scopes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* Show more (2026-10-22): under the grid, in the filter chips' style. */
.wk-more { display: flex; justify-content: center; margin-top: clamp(20px, 2.6vw, 32px); }
.wk-more[hidden] { display: none; }
.wk-more__button { min-height: 48px; padding-inline: 22px; }
.wk-card__title:focus { outline: none; }
.wk-card__title:focus-visible { outline: 3px solid var(--ez-ink); outline-offset: 3px; }

/* A service with no featured projects yet: say so plainly; no placeholder projects. */
.wk-empty {
  max-width: 44rem;
  padding: clamp(22px, 3vw, 36px);
  border: 2px dashed var(--ez-ink);
  border-radius: 10px;
  background: #fff;
}
.wk-empty[hidden] { display: none; }
.wk-empty__title { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--ez-font-display); text-transform: uppercase; }
.wk-empty__text { max-width: 52ch; margin-top: 12px; font-size: 1.0625rem; line-height: 1.5; }
.wk-empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 20px; }
