/* ==========================================================================
   work.css — the /work/ route.

   The page is one dark hero that becomes a journey (see THE HERO and THE
   JOURNEY near the end of this file, driven by js/work-journey.js): four
   columns, a stepper of four thumbnails and the four experiences, then the
   Kuneo Blue proof statement. The older archive grid and its cards were removed
   with the journey; the legacy archive primitives, the case-study template and
   the published-work rules below are kept for the case-study pages.
   ========================================================================== */

/* ==========================================================================
   LEGACY ARCHIVE PRIMITIVES — retained, no longer used by /work/.

   `.wk-archive` and its `.wk-item--*` rhythm variants were the previous
   full-width staggered layout. They are kept because they document the
   reserved-slot behaviour the brief still requires ("the archive expands
   without changing the layout system") and because the empty-slot
   recomposition below is referenced by the system's own comments. Nothing on
   the shipped pages matches these selectors today.
   ========================================================================== */

.wk-archive {
  display: grid;
  gap: clamp(48px, 8vh, 104px);
  margin-top: clamp(40px, 6vh, 72px);
}

.wk-item {
  display: grid;
  gap: var(--space-6);
}

/* The four-slot rhythm. Each variant changes proportion and alignment,
   never the system. */
.wk-item--wide {
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
}

.wk-item--narrow {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(560px, 100%);
}

.wk-item--offset {
  grid-template-columns: minmax(0, 1fr);
  width: min(78%, 1080px);
  margin-left: auto;
}

.wk-item--landscape {
  grid-template-columns: minmax(0, 1fr);
}

.wk-item__meta {
  display: grid;
  gap: var(--space-2);
}

.wk-item__eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kuneo-blue);
}

.wk-item__title {
  font-size: clamp(1.5rem, min(3vw, 4.5svh), 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.wk-item__desc {
  color: var(--gray-600);
  max-width: 58ch;
}

@media (max-width: 1023px) {
  .wk-item--narrow,
  .wk-item--offset {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }
}

/* Mixed archive: a PUBLISHED item and reserved slots on one page. The
   empty-slot recomposition sets `gap: 0` on the archive and gives every
   reserved item its own border-top + padding, which is right for the list —
   but it left the published card's text flush against the first hairline
   (measured: 0px of separation). The published item therefore owns the space
   between itself and the reserved list; the reserved rows keep their tight
   internal rhythm, and a future all-published archive simply falls back to the
   normal editorial gap. */
.no-slot-labels .wk-archive:has(.p-media--empty) .wk-item:not(:has(.p-media--empty)) {
  padding-bottom: clamp(48px, 8vh, 104px);
}

/* Empty-slot recomposition (§10.6): without assets the archive becomes a
   staggered editorial list — the rhythm lives on in the copy measures
   (wide / narrow / wide / offset), so the page still reads as a designed
   body of work rather than a grid of holes. Art-direction mode returns the
   media. The per-variant widths are deliberately NOT flattened: they are the
   rhythm (§16.2). */
.no-slot-labels .wk-archive:has(.p-media--empty) {
  gap: 0;
}

.no-slot-labels .wk-item:has(.p-media--empty) {
  padding-block: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--gray-200);
}

.no-slot-labels .wk-item:has(.p-media--empty):last-child {
  border-bottom: 1px solid var(--gray-200);
}

/* ==========================================================================
   Case-study template — a flexible editorial storytelling system, never
   twelve identical boxed sections (§18.1). The template page documents the
   system with real structure but explicit placeholder content.

   READING FLOW (maintainer: "quisiera que la lectura sea mas fluida").
   The old composition set every chapter at the same weight in one wide
   column, so the eye had no rhythm to follow and the measure ran long. The
   chapter now reads on a NARROW, centred measure — the single change that
   does most of the work for prose — with the label in a left gutter on wide
   screens, so the eye tracks one column while the structure stays visible
   beside it rather than above every block.
   ========================================================================== */

.cs-flow {
  display: grid;
  gap: clamp(64px, 10vh, 132px);
}

.cs-chapter {
  display: grid;
  gap: var(--space-6);
}

/* The chapter's own label sits above the text on a narrow measure, and moves
   into a real left gutter once there is room for one. `--cs-measure` is the
   reading column: one number, so every block on the page lines up on the same
   two edges. */
.cs-chapter__label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kuneo-blue);
  max-width: var(--cs-measure, 62ch);
}

.cs-chapter__title {
  font-size: clamp(1.5rem, min(2.6vw, 4svh), 2.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: var(--cs-measure, 62ch);
}

.cs-chapter__body {
  color: var(--gray-600);
  /* A prose measure, not a container width. 62ch keeps a line in the
     comfortable band at every viewport instead of stretching to the shell. */
  max-width: var(--cs-measure, 62ch);
}

/* The paragraphs inside a chapter breathe as one column, not as separate
   blocks: the gap between them is smaller than the gap between chapters, so
   the chapter reads as a unit. */
.cs-chapter__body + .cs-chapter__body {
  margin-top: calc(-1 * var(--space-2));
}

/* Sticky side metadata for the evidence moments (§18.1). */
.cs-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.cs-split__aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.cs-split__aside p {
  font-size: var(--fs-small);
  color: var(--gray-500);
}

@media (max-width: 1023px) {
  .cs-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-split__aside {
    position: static;
  }
}

/* Wide screens: a real two-column READING layout. The label takes a fixed
   gutter and the prose takes the measure, so every chapter scans the same way
   — "label | text" — and the reader always knows which chapter they are
   inside because the label sticks while its chapter scrolls.

   This applies to EVERY chapter shape. The ones carrying a .cs-split keep
   their own 1:2 structure INSIDE the reading column, so the aside and the
   prose stay a comfortable size instead of the aside drifting into the
   gutter. (An earlier version exempted them, which left those chapters
   labelled full-width — visibly inconsistent with their neighbours.) */
@media (min-width: 1024px) {
  .cs-chapter {
    --cs-measure: 60ch;
    grid-template-columns: 12ch minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }

  .cs-chapter__label {
    grid-column: 1;
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }

  /* Everything that is not the label lives in the reading column. */
  .cs-chapter > :not(.cs-chapter__label) {
    grid-column: 2;
  }

  /* The split's own two columns are narrower than the full shell, so its
     1:2 ratio is retuned to 1:2.4 — the aside is supporting text and the
     prose keeps a comfortable measure inside the reading column. */
  .cs-chapter .cs-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  }
}

/* Prior-experience attribution — the visible note that these projects predate
   Kuneo. Restrained by design (spec §23.2: "visible but not legal fine print"),
   so it is a quiet line under the metadata grid, not a banner. */
.cs-attribution {
  margin-top: clamp(22px, 3.5vh, 36px);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 68ch;
}

.cs-attribution strong {
  color: var(--gray-700);
  font-weight: 600;
}

/* The case-study template is a STRUCTURAL document (noindex, unreferenced
   until a real case study ships). Its image slots are part of the system it
   documents, so they keep the neutral branded surface and are never marked
   as empty. A real case study replaces this page and carries its own
   assets — see §18.1. */

/* ==========================================================================
   PUBLISHED WORK — the first real project (First_Our_Work brief).

   The archive is no longer all placeholders: slot 01 links to a real case
   study with a real asset. A published item therefore carries a route, and
   the whole card is the click target — no separate "View case study"
   control.
   ========================================================================== */

/* Published archive item: the media becomes the link surface. */
.wk-item__media-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.wk-item__media-link .p-media {
  background-color: var(--gray-100);
}

.wk-item__media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-x, 50%) var(--image-y, 50%);
  transition: transform var(--duration-slow) var(--ease-emphasized);
}

/* Slot 02 is a PORTRAIT frame (4:5) holding a LANDSCAPE asset (1672×941), so
   the crop has to be art-directed or it cuts through the subject. Anchoring
   left keeps the asset's own bottom-left editorial treatment in frame, and the
   vertical bias favours its lower half — the same lower-left reading the
   homepage rail establishes. Aspect is never distorted: this is a crop. */
.wk-item--narrow .wk-item__media-link img {
  --image-x: 0%;
  --image-y: 62%;
}

.wk-item__media-link:hover img,
.wk-item__media-link:focus-visible img {
  transform: scale(1.03);
}

/* ---- Legacy `.wk-item__title` (reserved-slot rows) --------------------
   Kept for the archive's reserved-item composition (see the legacy archive
   primitives above); nothing on the shipped pages renders it today. */
.wk-item__title a {
  color: inherit;
  text-decoration: none;
}

.wk-item__title a:hover,
.wk-item__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .wk-item__media-link img {
    transition: none;
  }

  .wk-item__media-link:hover img,
  .wk-item__media-link:focus-visible img {
    transform: none;
  }
}

/* ==========================================================================
   CASE STUDY — published project pages (§18.1 storytelling system, applied).

   The template documents the blocks; a published study composes the SAME
   primitives (`.cs-flow`, `.cs-chapter`, `.cs-split`) as one continuous
   edit. Only the pieces a real study needs beyond the template live here:
   the image-led hero, the metadata strip, the overview lead and the
   capability list.
   ========================================================================== */

.cs-hero-media {
  margin: 0;
  background-color: var(--white);
}

/* The project asset is the hero visual, edge to edge inside the wide shell.
   The supplied image is used directly: object-fit contains nothing, so its
   own composition and gradient survive intact. */
.cs-hero-media .p-media {
  width: var(--shell-wide);
  margin-inline: auto;
}

.cs-hero-media__caption {
  display: block;
  width: var(--shell-wide);
  margin-inline: auto;
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--gray-500);
  max-width: 68ch;
}

/* Metadata strip — three labelled facts, stated plainly. No invented dates,
   no client name. */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin: 0;
  padding-block: clamp(4px, 1vh, 12px);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.cs-meta__item {
  display: grid;
  gap: var(--space-2);
}

.cs-meta dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kuneo-blue);
}

.cs-meta dd {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--gray-600);
}

/* The overview is the strongest body statement on the page: larger than
   body copy, quieter than a chapter title. */
.cs-lead {
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
  color: var(--brand-ink);
  max-width: 62ch;
}

/* Capability list — a factual inventory, not marketing bullets. */
.cs-list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.cs-list li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--gray-600);
}

.cs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1px;
  background-color: var(--kuneo-blue);
}

/* ==========================================================================
   THE HERO — four columns, the hard part of each stated first.
   Dark and full screen. The entrance is CSS animation with a backwards fill,
   so the finished page is the default state: a blue line splits the screen,
   the columns open from it like a shutter, then each constraint is written in,
   one after another. Nothing moves on its own after that; on a roomy desktop
   screen the scroll takes over (THE JOURNEY, below).
   ========================================================================== */

.wk-hero {
  --wk-h: calc(100svh - var(--header-h));
  overflow-x: clip;
  background-color: var(--brand-ink);
  color: var(--white);
}

.wk-hero__inner {
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: var(--wk-h);
  padding-block: clamp(32px, 6svh, 72px);
}

.wk-hero__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  animation: wk-fade 700ms var(--ease-standard) backwards;
}

.wk-hero__title {
  max-width: 24ch;
  font-size: clamp(2.25rem, 0.8rem + 4.2vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
  animation: wk-fade 800ms var(--ease-standard) 100ms backwards;
}

.wk-hero__mark {
  margin-left: 0.08em;
  font-size: 0.45em;
  vertical-align: super;
  line-height: 0;
}

.wk-hero__mark a {
  color: var(--blue-300);
  text-decoration: none;
}

.wk-hero__support {
  max-width: 52ch;
  margin-top: clamp(12px, 2svh, 24px);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--gray-300);
  animation: wk-fade 800ms var(--ease-standard) 300ms backwards;
}

.wk-hero__cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  margin: clamp(20px, 4svh, 44px) 0 0;
  padding: 0;
  list-style: none;
}

/* The line the columns open from: drawn first, gone as they open. */
.wk-hero__cols::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 2;
  height: 1px;
  background-color: var(--kuneo-blue);
  opacity: 0;
  pointer-events: none;
  animation: wk-line 1100ms var(--ease-standard) 200ms backwards;
}

.wk-col {
  animation: wk-open 800ms var(--ease-standard) calc(600ms + var(--i, 0) * 80ms) backwards;
}

.wk-col__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  min-height: clamp(260px, 42svh, 460px);
  padding: clamp(16px, 1.6vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  color: var(--white);
  text-decoration: none;
  transition: border-color 400ms var(--ease-standard);
}

.wk-col__link:hover,
.wk-col__link:focus-visible {
  border-color: var(--kuneo-blue);
}

/* The picture is texture, not proof: grey, low, under a blue wash. */
.wk-col__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0) 70%);
}

.wk-col__img img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.3;
  transition: opacity 500ms var(--ease-standard);
}

.wk-col__link:hover .wk-col__img img,
.wk-col__link:focus-visible .wk-col__img img {
  opacity: 0.5;
}

.wk-col__num,
.wk-col__name,
.wk-col__stack,
.wk-col__constraint,
.wk-col__go {
  position: relative;
  z-index: 1;
}

.wk-col__num {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue-300);
}

.wk-col__name {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-300);
}

.wk-col__stack {
  font-size: var(--fs-small);
  color: var(--gray-300);
}

.wk-col__constraint {
  display: block;
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: clamp(1.125rem, 0.7rem + 1.15vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* Written in, left to right, one column after the other. */
.wk-col__constraint > span {
  display: block;
  animation: wk-write 700ms var(--ease-standard) calc(1400ms + var(--i, 0) * 400ms) backwards;
}

.wk-col__go {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--blue-300);
  opacity: 0.8;
}

.wk-hero__note {
  max-width: 62ch;
  margin-top: clamp(16px, 3svh, 32px);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--gray-300);
  animation: wk-fade 800ms var(--ease-standard) 600ms backwards;
}

.wk-hero__note sup {
  color: var(--blue-300);
}

@keyframes wk-fade {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes wk-line {
  0% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }

  50% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes wk-open {
  from {
    clip-path: inset(50% 0);
  }

  to {
    clip-path: inset(0);
  }
}

@keyframes wk-write {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Tablet and phones: four stacked bands, the constraint large. The shutter
   stays; the writing is quicker. */
@media (max-width: 899px) {
  .wk-hero {
    --wk-h: calc(100svh - var(--header-h-mobile));
  }

  .wk-hero__cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .wk-col__link {
    min-height: 0;
    padding: 16px 18px;
  }

  .wk-col__constraint {
    padding-top: var(--space-2);
    font-size: 1.25rem;
  }

  .wk-col__go {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wk-hero__eyebrow,
  .wk-hero__title,
  .wk-hero__support,
  .wk-hero__cols::before,
  .wk-col,
  .wk-col__constraint > span,
  .wk-hero__note {
    animation: none;
  }

  .wk-col__link,
  .wk-col__img img {
    transition: none;
  }
}

/* ==========================================================================
   THE JOURNEY (js/work-journey.js)
   Finished state first: the hero as above, then the four experiences stacked,
   photo in colour, summary and a button each. On a roomy desktop screen the
   module adds .is-scene: the section is pinned for a runway, the columns
   shrink into a stepper and the experiences arrive one at a time on the same
   ink. Only transform, opacity and clip-path are animated.
   ========================================================================== */

.wk-j__stepper {
  display: none;
}

.wk-j__items {
  padding-block: clamp(32px, 6vw, 96px) clamp(56px, 9vw, 120px);
}

.wk-j__grid {
  display: grid;
  gap: clamp(72px, 10vw, 140px);
}

.wk-x {
  display: grid;
  gap: var(--space-6);
  scroll-margin-top: calc(var(--header-h-mobile) + 24px);
}

@media (min-width: 900px) {
  .wk-x {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
    scroll-margin-top: calc(var(--header-h) + 24px);
  }
}

.wk-x__text {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.wk-x__eyebrow {
  margin: 0;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.wk-x__title {
  font-size: clamp(2rem, 1rem + 2.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
}

.wk-x__constraint {
  margin: 0;
  font-size: clamp(1.125rem, 0.9rem + 0.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-300);
}

.wk-x__summary {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  color: var(--gray-300);
}

.wk-x__meta {
  max-width: 52ch;
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--gray-300);
}

.wk-x__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  overflow: hidden;
  isolation: isolate;
  margin-top: var(--space-2);
  padding: 0.85em 1.5em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition:
    background-color 300ms var(--ease-standard),
    border-color 300ms var(--ease-standard);
}

.wk-x__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--kuneo-blue);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 360ms var(--ease-standard);
}

.wk-x__btn:hover,
.wk-x__btn:focus-visible {
  border-color: var(--kuneo-blue);
}

.wk-x__btn:hover::before,
.wk-x__btn:focus-visible::before {
  clip-path: inset(0 0 0 0);
}

/* On phones the photo leads each experience. */
@media (max-width: 899px) {
  .wk-x__photo {
    order: -1;
  }
}

.wk-x__photo {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.06);
}

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

/* The stepper: four thumbnails, one active. */
.wk-j__steps {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wk-step {
  position: relative;
  display: block;
  width: clamp(80px, 8vw, 112px);
  color: var(--white);
  text-decoration: none;
}

.wk-step img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 400ms var(--ease-standard), filter 400ms var(--ease-standard), outline-color 300ms var(--ease-standard), transform 300ms var(--ease-standard);
  outline: 2px solid transparent;
  outline-offset: 3px;
}

.wk-step:hover img,
.wk-step:focus-visible img {
  opacity: 0.85;
  transform: translate3d(0, -3px, 0);
}

.wk-step:focus-visible img {
  outline-color: var(--accent, var(--kuneo-blue));
}

.wk-step.is-active img {
  filter: none;
  opacity: 1;
  outline-color: var(--accent, var(--kuneo-blue));
  animation: wk-pop 420ms var(--ease-standard);
}

.wk-step__track {
  display: block;
  height: 2px;
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.18);
}

.wk-step__track i {
  display: block;
  height: 100%;
  background-color: var(--blue-300);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
}

.wk-j__label {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: var(--fs-small);
  color: var(--gray-300);
}

/* ---- Pinned on a roomy desktop screen (class set by the module) --------- */
/* 520svh: about a screen of scroll for each of the four experiences plus the
   hero-to-stepper move (see the timeline in js/work-journey.js). */
.wk-hero.is-scene .wk-j__runway {
  height: calc(var(--wk-h) + 520svh);
}

.wk-hero.is-scene .wk-j__stage {
  position: sticky;
  top: var(--header-h);
  height: var(--wk-h);
  overflow: hidden;
}

.wk-hero.is-scene .wk-hero__inner {
  height: 100%;
  min-height: 0;
  padding-block: clamp(24px, 5svh, 56px);
}

/* The honest line stays at the foot through the whole journey. */
.wk-hero.is-scene .wk-hero__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 4;
  width: var(--shell-wide);
  max-width: none;
  margin: 0 auto;
}

.wk-hero.is-scene .wk-hero__cols {
  position: relative;
  z-index: 2;
}

.wk-hero.is-scene .wk-col {
  animation: none;
  transform-origin: 0 0;
  will-change: transform;
}

.wk-hero.is-scene .wk-col__link > :not(.wk-col__img) {
  opacity: var(--wk-txt, 1);
}

.wk-hero.is-scene .wk-hero__cols::before {
  display: none;
}

.wk-hero.is-scene .wk-j__stepper {
  position: absolute;
  top: clamp(20px, 4svh, 40px);
  left: 0;
  right: 0;
  z-index: 3;
  display: block;
  opacity: var(--wk-step-op, 0);
  visibility: var(--wk-step-vis, hidden);
}

.wk-hero.is-scene .wk-j__items {
  position: absolute;
  inset: clamp(120px, 19svh, 164px) 0 clamp(48px, 8svh, 72px) 0;
  z-index: 1;
  padding: 0;
}

.wk-hero.is-scene .wk-j__grid {
  height: 100%;
  gap: 0;
  grid-template-rows: minmax(0, 1fr);
}

.wk-hero.is-scene .wk-x {
  grid-area: 1 / 1;
  min-height: 0;
  align-items: center;
  /* Off stage until the module paints it: faded, not hidden, so it stays in
     the accessibility tree and the Tab order. */
  opacity: 0;
  pointer-events: none;
}

.wk-hero.is-scene .wk-x__text {
  gap: clamp(8px, 1.6svh, 16px);
}

.wk-hero.is-scene .wk-x__photo {
  max-height: min(46svh, 420px);
  justify-self: end;
  width: 100%;
}

.wk-hero.is-scene .wk-x__summary {
  font-size: clamp(0.9375rem, 0.8rem + 0.35vw, 1.0625rem);
  line-height: 1.5;
}

@media (max-height: 860px) {
  .wk-hero.is-scene .wk-x__meta {
    display: none;
  }

  .wk-hero.is-scene .wk-x__title {
    font-size: clamp(1.75rem, 0.9rem + 2vw, 2.75rem);
  }

  .wk-hero.is-scene .wk-x__summary {
    font-size: 0.9375rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wk-x__btn,
  .wk-step img {
    transition: none;
  }
}

/* ==========================================================================
   PROOF — Kuneo Blue, full screen. The statement rises word by word and a
   a ring and a check draw themselves at the right (js/work-journey.js, initProof).
   ========================================================================== */

.wk-proof-s {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(100svh, 860px);
  overflow: hidden;
  padding-block: clamp(80px, 14svh, 160px);
  background-color: var(--kuneo-blue);
  color: var(--white);
}

.wk-proof-s__inner {
  position: relative;
  z-index: 1;
}

.wk-proof-s__eyebrow {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);                     /* solid: 0.86 alpha fell below 4.5:1 on Kuneo Blue */
}

.wk-proof-s__title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 1rem + 5.4vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--white);
}

.wk-pw {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  vertical-align: bottom;
}

.wk-pw > span {
  display: inline-block;
  transition: transform 800ms var(--ease-standard) calc(var(--i, 0) * 70ms);
}

.wk-proof-s.is-armed:not(.is-in) .wk-pw > span {
  transform: translate3d(0, 110%, 0);
}

.wk-proof-s__line {
  max-width: 40ch;
  margin-top: clamp(20px, 4svh, 40px);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--white);
  transition: opacity 700ms var(--ease-standard) 900ms;
}

.wk-proof-s__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: clamp(20px, 4svh, 36px);
  transition: opacity 700ms var(--ease-standard) 1100ms;
}

.wk-proof-s__note {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.86);
}

.wk-proof-s.is-armed:not(.is-in) .wk-proof-s__line,
.wk-proof-s.is-armed:not(.is-in) .wk-proof-s__actions {
  opacity: 0;
}

/* The verified mark: a ring and a check, drawn one after the other. */
.wk-proof-s__check {
  position: absolute;
  right: clamp(-120px, -4vw, -24px);
  top: 50%;
  width: clamp(260px, 42vw, 620px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.wk-proof-s__ring {
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  opacity: 0.35;
  transition: stroke-dashoffset 1400ms var(--ease-standard) 300ms;
}

.wk-proof-s__tick {
  stroke-width: 7;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms var(--ease-standard) 1300ms;
}

.wk-proof-s.is-armed:not(.is-in) .wk-proof-s__ring,
.wk-proof-s.is-armed:not(.is-in) .wk-proof-s__tick {
  stroke-dashoffset: 100;
}

@media (max-width: 767px) {
  .wk-proof-s__check {
    top: auto;
    bottom: -90px;
    opacity: 0.3;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wk-pw > span,
  .wk-proof-s__line,
  .wk-proof-s__actions,
  .wk-proof-s__ring,
  .wk-proof-s__tick {
    transition: none;
  }
}

/* ---- The accent of each experience, from its photo ---------------------- */
#facility,
.wk-j__steps li:nth-child(1) .wk-step {
  --accent: #e9a23b;
}

#payments,
.wk-j__steps li:nth-child(2) .wk-step {
  --accent: #f2a541;
}

#redemption,
.wk-j__steps li:nth-child(3) .wk-step {
  --accent: #2a8c86;
}

#dental,
.wk-j__steps li:nth-child(4) .wk-step {
  --accent: #9db59a;
}

.wk-x__constraint {
  color: var(--blue-300);
}

@keyframes wk-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* ---- Depth: light behind the stage, rolling numerals, the comet, the tilt - */
.wk-j__glow,
.wk-j__ghost,
.wk-j__comet {
  display: none;
}

.wk-j__steps-wrap {
  position: relative;
}

.wk-hero.is-scene .wk-j__glow,
.wk-hero.is-scene .wk-j__ghost,
.wk-hero.is-scene .wk-j__comet {
  display: block;
}

.wk-j__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wk-j__glow > i {
  position: absolute;
  inset: -10%;
  opacity: 0;
  visibility: hidden;
}

.wk-j__glow > i:nth-child(1) {
  background: radial-gradient(circle at 70% 55%, rgba(233, 162, 59, 0.34), transparent 60%);
}

.wk-j__glow > i:nth-child(2) {
  background:
    radial-gradient(circle at 80% 70%, rgba(242, 165, 65, 0.26), transparent 55%),
    radial-gradient(circle at 30% 20%, rgba(47, 91, 211, 0.32), transparent 60%);
}

.wk-j__glow > i:nth-child(3) {
  background: radial-gradient(circle at 70% 55%, rgba(42, 140, 134, 0.45), transparent 60%);
}

.wk-j__glow > i:nth-child(4) {
  background: radial-gradient(circle at 70% 55%, rgba(157, 181, 154, 0.26), transparent 60%);
}

/* The last light is Kuneo Blue: it hands the eye to the proof section. */
.wk-j__glow > i:nth-child(5) {
  background: radial-gradient(circle at 50% 60%, rgba(37, 99, 235, 0.4), transparent 70%);
}

/* Giant outlined numerals, rolling like an odometer (a plane of its own). */
.wk-j__ghost {
  position: absolute;
  left: -1vw;
  top: 50%;
  z-index: 0;
  height: 0.9em;
  margin-top: -0.45em;
  overflow: hidden;
  font-size: clamp(14rem, 26vw, 24rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  opacity: 0;
  pointer-events: none;
}

.wk-j__ghost-col > span {
  display: block;
  height: 0.9em;
}

/* The comet: a light that travels the four thumbnails. */
.wk-j__comet {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 0 12px 3px var(--blue-300);
  opacity: 0;
  pointer-events: none;
}

/* The photo leans toward the pointer and a soft light follows it. */
.wk-x__photo {
  position: relative;
}

.wk-x__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), rgba(255, 255, 255, 0.14), transparent 42%);
  opacity: var(--hl, 0);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .wk-x__btn::before,
  .wk-step img {
    transition: none;
  }
}
