/* ==========================================================================
   Risenex "Our Work" section: portfolio.html and the seven case-*.html pages.
   Hand-written source, linked directly by those eight pages; not part of the
   css/styles.css -> css/pages/ split. The shared header and footer keep their
   styles from css/pages/<page>.css. Same tokens and language as css/home.css.

   Motion contract:
   - html.wk-motion  set in <head> on screens 768px and wider with motion
                     allowed and no data saver. Gates hover-scroll, tilt,
                     scroll reveals and Lenis.
   - Reveals never hide anything at first paint: js/work.js marks only the
     elements still below the viewport (.wk-pending) once it runs.
   Phones and reduced motion get a static, stacked layout.
   ========================================================================== */

.wk-page {
  --royal: #1f4fb8;
  --royal-2: #2a5fd0;
  --royal-hi: #5b8ff5;
  --royal-deep: #143a8a;
  --navy: #0a1a3a;
  --ink: #0b1630;
  --text: #3b475b;
  --muted: #5b6779;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: rgba(11, 22, 48, 0.08);
  --line-2: rgba(11, 22, 48, 0.14);
  --gold: #c08a1e;
  --gold-text: #8f6210;
  /* Metallic gold: dark bronze edges, a bright specular band and a second,
     softer highlight, so it reads as polished metal rather than flat yellow. */
  --gold-grad: linear-gradient(110deg, #7f4f08 0%, #b8801f 12%, #e9bd5c 22%, #fff2c7 30%, #f0c766 37%, #c08a1e 50%, #9c6510 58%, #e4b453 70%, #fbe3a1 77%, #cf9a35 86%, #8a560a 100%);
  --gold-sheen: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 249, 226, 0.75) 46%, rgba(255, 240, 200, 0.3) 54%, rgba(255, 255, 255, 0) 68%);
  --sh-1: 0 1px 1px rgba(11, 22, 48, 0.04), 0 2px 4px rgba(11, 22, 48, 0.04), 0 8px 16px -4px rgba(11, 22, 48, 0.06);
  --sh-2: 0 1px 2px rgba(11, 22, 48, 0.05), 0 4px 8px rgba(11, 22, 48, 0.05), 0 16px 32px -8px rgba(11, 22, 48, 0.08), 0 32px 64px -16px rgba(11, 22, 48, 0.1);
  --sh-3: 0 2px 4px rgba(11, 22, 48, 0.05), 0 8px 16px rgba(11, 22, 48, 0.06), 0 24px 48px -12px rgba(11, 22, 48, 0.14), 0 56px 96px -24px rgba(11, 22, 48, 0.2);
  --sh-gold: inset 0 1px 0 rgba(255, 252, 235, 0.85), inset 0 -2px 0 rgba(90, 55, 0, 0.22), inset 0 0 0 1px rgba(120, 76, 6, 0.18), 0 1px 2px rgba(90, 55, 0, 0.25), 0 10px 24px -8px rgba(176, 120, 20, 0.6);
  --sh-gold-hover: inset 0 1px 0 rgba(255, 252, 235, 0.9), inset 0 -2px 0 rgba(90, 55, 0, 0.22), inset 0 0 0 1px rgba(120, 76, 6, 0.18), 0 2px 4px rgba(90, 55, 0, 0.25), 0 18px 36px -10px rgba(176, 120, 20, 0.7);
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --wrap: 1240px;

  padding-top: 0 !important;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', 'Geist Fallback Roboto', 'Geist Fallback Segoe', 'Geist Fallback Arial', 'Geist Fallback Helvetica', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.wk { display: block; overflow-x: clip; }
.wk *, .wk *::before, .wk *::after { box-sizing: border-box; }
.wk img { max-width: 100%; display: block; }
.wk i, .wk em { font-style: normal; }
/* Resets at zero specificity, so a component's own margin always wins. */
:where(.wk) :where(ol, ul) { list-style: none; margin: 0; padding: 0; }
:where(.wk) :where(h1, h2, h3, h4, p, figure, dl, dd) { margin: 0; }
/* :where() keeps this at class weight, so component colours (white hero titles, dark panels) win. */
.wk :where(h1, h2, h3, h4) { color: var(--ink); text-wrap: balance; }
.wk :where(h3, h4) { line-height: 1.22; }
.wk p { text-wrap: pretty; }
.wk a:focus-visible, .wk button:focus-visible {
  outline: 3px solid #e2ad3b; outline-offset: 3px; border-radius: 8px;
}
.wk-wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- type ---------- */
.wk-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--royal-2); margin-bottom: 20px;
}
.wk-eyebrow::before {
  content: ''; width: 24px; height: 2px; border-radius: 2px;
  background: var(--gold-grad); box-shadow: 0 1px 4px rgba(176, 120, 20, 0.4);
}
.wk-eyebrow--light { color: rgba(255, 255, 255, 0.8); }
.wk-h2 {
  font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.042em;
  font-weight: 650; color: var(--ink); max-width: 17ch;
}
.wk-serif {
  font-family: var(--serif); font-style: italic !important; font-weight: 400;
  letter-spacing: -0.01em; padding-right: 0.06em;
}
.wk-gold-text {
  background: var(--gold-grad); background-size: 220% 100%; background-position: 30% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- buttons ---------- */
.wk-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  transition: transform 0.3s var(--ease), translate 0.6s var(--ease), box-shadow 0.3s var(--ease), background-position 0.6s var(--ease), background-color 0.3s;
  white-space: nowrap;
}
.wk-btn svg { flex: none; transition: transform 0.3s var(--ease); }
.wk-btn:hover svg { transform: translate(2px, -2px); }
.wk-btn--gold {
  color: #1d1404; background: var(--gold-grad); background-size: 220% 100%; background-position: 20% 0;
  box-shadow: var(--sh-gold);
}
.wk-btn--gold:hover { background-position: 80% 0; transform: translateY(-2px); box-shadow: var(--sh-gold-hover); }
.wk-btn--glass {
  color: #fff; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -10px rgba(2, 11, 36, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.wk-btn--glass:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.wk-btn--navy { color: #fff; background: linear-gradient(160deg, #2a5fd0, #1f4fb8 45%, #143a8a); box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.wk-btn--navy:hover { transform: translateY(-2px); box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.wk-btn--xl { height: 66px; padding: 0 36px; font-size: 18px; }

/* ---------- status tags: one wording everywhere ---------- */
.wk-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2);
}
.wk-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none;
}
.wk-tag--live::before { background: #1f9d55; box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.16); }
.wk-tag--private::before { background: var(--royal-2); box-shadow: 0 0 0 3px rgba(42, 95, 208, 0.16); }
.wk-tag--done::before { background: var(--gold); box-shadow: 0 0 0 3px rgba(192, 138, 30, 0.18); }
.wk-tag--dev::before { background: #d9822b; box-shadow: 0 0 0 3px rgba(217, 130, 43, 0.18); }
.wk-tag--onblue { color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Live pulse (in-progress builds) */
.wk-pulse { position: relative; display: inline-block; width: 9px; height: 9px; flex: none; }
.wk-pulse::before, .wk-pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #d9822b;
}
.wk-pulse::after { animation: wk-pulse 2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
@keyframes wk-pulse { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

/* ==========================================================================
   Laptop frame. The screen is a size container, so a tall strip can travel
   exactly (its height minus the screen's) on hover: 62.5cqw is the screen
   height at 16:10.
   ========================================================================== */
.wk-device { position: relative; display: block; width: 100%; }
.wk-device__lid {
  position: relative; padding: 2.4% 2.4% 3.2%; border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, #1a2236 0%, #0c1222 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 30px 60px -24px rgba(10, 26, 58, 0.45);
}
.wk-device__lid::before {
  content: ''; position: absolute; top: 1%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: #2b354c;
}
.wk-device__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px;
  background: #e9eef6; container-type: inline-size;
}
.wk-device__screen picture { display: block; }
.wk-device__shot { width: 100%; height: auto; transform: translateY(0); transition: transform 1.1s var(--ease); }
.wk-device__screen--fit .wk-device__shot { height: 100%; object-fit: cover; object-position: top center; }
.wk-device__base {
  position: relative; width: 112%; margin-left: -6%; aspect-ratio: 100 / 3.2;
  border-radius: 2px 2px 14px 14px / 2px 2px 100% 100%;
  background: linear-gradient(180deg, #e9edf3 0%, #c7cfdb 55%, #9aa5b6 100%);
  box-shadow: inset 0 1px 0 #fff, 0 14px 24px -12px rgba(10, 26, 58, 0.5);
}
.wk-device__base::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 16%; height: 38%; transform: translateX(-50%);
  border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #b6bfcc, #d5dbe4);
}
/* Branded placeholder: used where no capture exists (never client data). */
.wk-device__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 7%;
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(91, 143, 245, 0.55), rgba(91, 143, 245, 0) 60%),
    radial-gradient(70% 60% at 10% 110%, rgba(226, 173, 59, 0.35), rgba(226, 173, 59, 0) 60%),
    linear-gradient(160deg, #164da5 0%, #12347a 60%, #102a5e 100%);
  color: #fff; overflow: hidden;
}
.wk-device__placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 8cqw 8cqw;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(80% 70% at 70% 30%, #000, transparent 75%);
}
.wk-device__placeholder b {
  position: relative; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 13cqw; line-height: 0.95; letter-spacing: -0.02em;
}
.wk-device__placeholder span {
  position: relative; margin-top: 3cqw; font-size: max(11px, 2.6cqw); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Desktop with motion: the strip scrolls through on hover, the frame tilts. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .wk-motion .wk-scroll:hover .wk-device__shot--tall,
  .wk-motion .wk-scroll:focus-within .wk-device__shot--tall {
    transform: translateY(calc(-100% + 62.5cqw));
    transition: transform var(--d, 5s) cubic-bezier(0.45, 0.05, 0.4, 1);
  }
  .wk-motion .wk-tilt {
    transform: perspective(1400px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
    transition: transform 0.6s var(--ease);
    will-change: transform;
  }
  .wk-motion .wk-tilt.is-tracking { transition: transform 0.12s linear; }
}

/* ==========================================================================
   HERO (both page types)
   ========================================================================== */
.wk-hero { padding: 88px 12px 0; }
.wk-hero__panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 34px;
  /* Blues sampled from assets/risenex-logo.png, as on the home hero. */
  background:
    radial-gradient(110% 85% at 88% 8%, rgba(27, 91, 186, 0.9) 0%, rgba(27, 91, 186, 0) 58%),
    radial-gradient(90% 80% at 8% 100%, #0c2150 0%, rgba(12, 33, 80, 0) 62%),
    linear-gradient(160deg, #164da5 0%, #154394 34%, #12347a 68%, #102a5e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -40px 80px -40px rgba(3, 12, 40, 0.6),
    0 2px 4px rgba(16, 47, 117, 0.12),
    0 24px 48px -16px rgba(16, 42, 94, 0.4),
    0 60px 120px -40px rgba(16, 42, 94, 0.5);
  color: rgba(255, 255, 255, 0.82);
}
.wk-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.wk-glow { position: absolute; border-radius: 50%; }
.wk-glow--a { width: 760px; height: 760px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(70, 125, 215, 0.4) 0%, rgba(70, 125, 215, 0) 65%); }
.wk-glow--b { width: 620px; height: 620px; left: -220px; bottom: -320px; background: radial-gradient(circle, rgba(226, 173, 59, 0.26) 0%, rgba(226, 173, 59, 0) 65%); }
.wk-gridlines {
  position: absolute; inset: -10% 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
}
.wk-hero__title {
  font-size: clamp(52px, 7.6vw, 120px); line-height: 0.96; letter-spacing: -0.05em;
  font-weight: 680; color: #fff; text-shadow: 0 2px 30px rgba(3, 12, 40, 0.25);
}
.wk-hero__title .wk-serif { font-size: 1.06em; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(30, 16, 0, 0.35)); }
.wk-hero__lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, 0.84); max-width: 36em; }

/* Index hero */
.wk-hero--index .wk-hero__inner { padding: 104px 0 56px; }
.wk-hero--index .wk-hero__title { margin-bottom: 28px; }
.wk-hero--index .wk-hero__lede { margin-bottom: 64px; }

/* Facts / stats row: glass tiles */
.wk-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.wk-stat {
  padding: 22px 22px 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.wk-stat dt { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.74); }
.wk-stat dd {
  order: -1; font-size: clamp(30px, 3vw, 44px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.05;
  color: #fff; margin-bottom: 8px;
}
.wk-stat { display: flex; flex-direction: column; }
.wk-stat--gold dd { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* Case hero */
.wk-hero--case .wk-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 72px 0 48px;
}
.wk-crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 26px; color: rgba(255, 255, 255, 0.66); }
.wk-crumbs a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.wk-crumbs a svg { transition: transform 0.3s var(--ease); }
.wk-crumbs a:hover svg { transform: translateX(-3px); }
.wk-hero--case .wk-hero__title { font-size: clamp(46px, 6vw, 96px); margin-bottom: 24px; }
.wk-hero--case .wk-hero__lede { margin-bottom: 26px; }
.wk-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.wk-stack li {
  font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.wk-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.wk-hero__note { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); max-width: 30em; }
.wk-hero__device { position: relative; width: 100%; max-width: 640px; margin-left: auto; }
.wk-hero__device::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -6%; height: 16%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(3, 12, 40, 0.55), rgba(3, 12, 40, 0)); filter: blur(8px);
}
.wk-hero--case .wk-stats { padding-bottom: 40px; }
.wk-stats--words dd { font-size: clamp(24px, 2.2vw, 32px); }

/* ==========================================================================
   PORTFOLIO: filters, grid, cards
   ========================================================================== */
.wk-work { padding: 112px 0 40px; }
.wk-work__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 36px; }
.wk-work__head p { font-size: 17px; line-height: 1.6; max-width: 30em; margin-top: 18px; }
.wk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.wk-chip {
  height: 42px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 550; color: var(--ink); background: #fff;
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.wk-chip:hover { transform: translateY(-1px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); }
.wk-chip[aria-pressed="true"] {
  color: #fff; background: linear-gradient(160deg, #1b5bba, #143a8a);
  box-shadow: 0 8px 20px -8px rgba(20, 58, 138, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.wk-chip:focus-visible { outline: 3px solid #e2ad3b; outline-offset: 3px; }
.wk-chip sup { font-size: 11px; margin-left: 4px; opacity: 0.7; vertical-align: 2px; }

.wk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.wk-card[hidden] { display: none; }
.wk-card { position: relative; }
.wk-card__body {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 14px 14px 26px; border-radius: 28px; background: #fff; color: var(--text);
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
  transition: box-shadow 0.45s var(--ease);
}
.wk-card:hover .wk-card__body { box-shadow: var(--sh-3), inset 0 0 0 1px var(--line-2); }
.wk-card__stage {
  position: relative; overflow: hidden; border-radius: 20px; padding: 40px 12% 30px; margin-bottom: 26px;
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(91, 143, 245, 0.22), rgba(91, 143, 245, 0) 70%),
    linear-gradient(180deg, #eef3fb 0%, #e3eaf6 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.wk-card__stage.has-phone { padding: 40px 17% 30px 7%; }
.wk-card__stage::after {
  content: ''; position: absolute; left: 20%; right: 20%; bottom: 18px; height: 20px; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(10, 26, 58, 0.28), rgba(10, 26, 58, 0)); filter: blur(6px);
}
.wk-card__stage .wk-tilt { position: relative; z-index: 1; }
.wk-card__meta, .wk-card__title, .wk-card__text, .wk-card__chips, .wk-card__foot { padding-inline: 14px; }
.wk-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wk-card__sector { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }
.wk-card__title { font-size: 30px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 12px; }
.wk-card__text { font-size: 16px; line-height: 1.6; margin-bottom: 18px; flex: 1; }
.wk-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.wk-card__chips li {
  font-size: 12.5px; padding: 5px 10px; border-radius: 8px; color: var(--muted); background: #f1f4f9;
  box-shadow: inset 0 0 0 1px var(--line);
}
/* The main link covers the whole card; the live-site link sits above it. */
.wk-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.wk-card__main {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--royal); text-decoration: none;
}
.wk-card__main::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 28px; }
.wk-card__main:focus-visible { outline: none; }
.wk-card__main:focus-visible::after { outline: 3px solid #e2ad3b; outline-offset: 3px; }
.wk-card__main svg, .wk-card__live svg { flex: none; transition: transform 0.35s var(--ease); }
.wk-card:hover .wk-card__main svg { transform: translateX(4px); }
.wk-card:hover .wk-card__main[target="_blank"] svg { transform: translate(3px, -3px); }
.wk-card__live {
  position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 550; color: var(--ink); text-decoration: none;
  background: #f1f4f9; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s, box-shadow 0.25s;
}
.wk-card__live span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-card__live svg { width: 14px; height: 14px; }
.wk-card__live:hover { background: #e7edf7; box-shadow: inset 0 0 0 1px var(--line-2); }
.wk-card__live:hover svg { transform: translate(2px, -2px); }
.wk-card__nocase { font-size: 13px; color: var(--muted); }

/* Phone frame beside the laptop */
.wk-phone {
  position: absolute; right: -14%; bottom: -4%; width: 24%; z-index: 2;
  padding: 3.2% 2.6%; border-radius: 18px; background: linear-gradient(180deg, #1a2236, #0c1222);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 40px -16px rgba(10, 26, 58, 0.55);
}
.wk-phone__screen { aspect-ratio: 390 / 844; overflow: hidden; border-radius: 12px; background: #e9eef6; }
.wk-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wk-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* In progress */
.wk-ongoing { padding: 72px 0 32px; }
.wk-ongoing__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.wk-ongoing__head p { font-size: 16.5px; max-width: 30em; }
.wk-ongoing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wk-mini {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: start;
  padding: 28px; border-radius: 24px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.wk-mini__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #1b5bba, #102a5e); box-shadow: 0 10px 20px -10px rgba(16, 42, 94, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.wk-mini__status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #a35c12; margin-bottom: 8px; }
.wk-mini h3 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 6px; }
.wk-mini p { font-size: 15.5px; line-height: 1.55; }
.wk-mini__meta { grid-column: 2; font-size: 13.5px; color: var(--muted); }
.wk-mini__meta span + span::before { content: '·'; margin: 0 8px; }

.wk-honest {
  display: flex; gap: 16px; align-items: flex-start; max-width: 860px; margin: 56px 0 0; padding: 22px 26px;
  border-radius: 20px; background: linear-gradient(180deg, #fff, #f6f8fc); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15.5px; line-height: 1.6;
}
.wk-honest svg { flex: none; margin-top: 2px; color: var(--gold); }

/* ==========================================================================
   CASE STUDY body: sticky contents + sections
   ========================================================================== */
.wk-layout {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 72px; padding: 104px 0 40px;
}
.wk-toc { position: relative; }
.wk-toc__inner { position: sticky; top: 112px; }
.wk-toc__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.wk-toc__track { position: relative; padding-left: 18px; }
.wk-toc__track::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line-2); }
.wk-toc__bar {
  position: absolute; left: 0; top: 4px; width: 2px; height: calc(100% - 8px); border-radius: 2px;
  background: var(--gold-grad); background-size: 100% 300%; transform-origin: 0 0; transform: scaleY(var(--p, 0));
  transition: transform 0.2s linear;
}
.wk-toc li + li { margin-top: 4px; }
.wk-toc a {
  display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; line-height: 1.35; color: var(--muted); text-decoration: none;
  transition: color 0.25s;
}
.wk-toc a span { font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 2px; color: inherit; opacity: 0.7; }
.wk-toc a:hover { color: var(--ink); }
/* Active entry: colour and a hairline stroke instead of bold, so its width (and the
   wrap of the entries below) never changes as you scroll. */
.wk-toc a[aria-current="true"] { color: var(--royal); -webkit-text-stroke: 0.35px currentColor; }
.wk-toc a[aria-current="true"] span { color: var(--gold-text); opacity: 1; }
.wk-toc__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--royal); text-decoration: none; }

.wk-content { min-width: 0; }
.wk-content > section { scroll-margin-top: 110px; }
.wk-content > section + section { margin-top: 112px; }
.wk-content p, .wk-content li { font-size: 17px; line-height: 1.7; }
.wk-content p + p { margin-top: 16px; }
.wk-content strong { color: var(--ink); font-weight: 600; }
.wk-content code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em;
  padding: 2px 6px; border-radius: 6px; background: #eef2f9; color: var(--royal-deep); box-shadow: inset 0 0 0 1px var(--line);
}
.wk-content a:not([class]) { color: var(--royal); text-underline-offset: 3px; }
.wk-measure { max-width: 740px; }
.wk-kicker {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--royal-2);
}
.wk-kicker span {
  display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.04em; color: #1d1404; background: var(--gold-grad); background-size: 220% 100%; box-shadow: var(--sh-gold);
}
.wk-content .wk-h2 { max-width: 20ch; margin-bottom: 28px; font-size: clamp(30px, 3.4vw, 46px); }
.wk-lead { font-size: 20px !important; line-height: 1.55 !important; color: var(--ink); max-width: 36em; margin-bottom: 32px; }
.wk-h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; margin: 40px 0 12px; }

/* Problem: two facets */
.wk-facets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wk-facet { padding: 30px; border-radius: 24px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.wk-facet.is-tech { background: linear-gradient(180deg, #f3f6fc, #eaf0f9); }
.wk-facet-label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.wk-facet p, .wk-facet li { font-size: 16px; }

/* Approach: decisions */
.wk-decision { position: relative; padding: 30px 0 30px 0; border-top: 1px solid var(--line-2); }
.wk-decision:last-child { border-bottom: 1px solid var(--line-2); }
.wk-decision .wk-h3 { margin-top: 0; }
.wk-decision > p, .wk-decision > ul { max-width: 740px; }
.wk-decision-why {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; margin-top: 18px !important;
  padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); max-width: 740px;
}
.wk-decision-why b { font-size: 12.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); padding-top: 4px; }
.wk-decision-why span { font-size: 16px; line-height: 1.65; }

/* Challenges */
.wk-challenge {
  padding: 36px; border-radius: 28px; background: #fff; box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
}
.wk-challenge + .wk-challenge, .wk-challenge + .wk-figure, .wk-figure + .wk-challenge { margin-top: 28px; }
.wk-challenge-head { display: flex; gap: 20px; align-items: baseline; margin-bottom: 26px; }
.wk-challenge-n {
  flex: none; font-size: 44px; font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.wk-challenge-head h3 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.25; }
.wk-step { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.wk-step-label { display: inline-flex; align-items: center; gap: 8px; align-self: start; padding-top: 4px; font-size: 12.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.wk-step-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.wk-step.is-problem .wk-step-label { color: #b4473a; }
.wk-step.is-solution .wk-step-label { color: var(--royal-2); }
.wk-step.is-outcome .wk-step-label { color: var(--gold-text); }
.wk-step-body p, .wk-step-body li { font-size: 16.5px; }
.wk-challenge-body > .wk-figure { margin-top: 18px; }

/* Figures: large, framed like a browser window, zoom slightly into view */
.wk-figure { margin: 40px 0; }
.wk-figure > img, .wk-figure figure > img, .wk-shot {
  width: 100%; height: auto; border-radius: 18px; background: #e9eef6;
  box-shadow: var(--sh-3), 0 0 0 1px var(--line);
}
.wk-figure figcaption { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 16px; max-width: 640px; }
.wk-figure.is-inset { max-width: 560px; margin-inline: auto; }
.wk-figure.is-inset-lg { max-width: 780px; margin-inline: auto; }
.wk-figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wk-figure-pair figure { margin: 0; }
.wk-zoom { overflow: hidden; border-radius: 18px; }

/* Features */
.wk-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wk-feature { padding: 26px 28px; border-radius: 22px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.wk-feature h3, .wk-feature h4 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 12px; }
.wk-feature li { position: relative; padding-left: 20px; font-size: 15.5px !important; line-height: 1.55 !important; }
.wk-feature li + li { margin-top: 8px; }
.wk-feature li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--royal-hi); transform: rotate(45deg); }

/* Result */
.wk-panel {
  position: relative; overflow: hidden; padding: 40px; border-radius: 28px; color: rgba(255, 255, 255, 0.84);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(27, 91, 186, 0.9), rgba(27, 91, 186, 0) 60%),
    linear-gradient(160deg, #154394 0%, #102a5e 100%);
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.wk-panel p { font-size: 18px; color: rgba(255, 255, 255, 0.86); max-width: 40em; }
.wk-panel strong { color: #fff; }
.wk-panel code { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.wk-result-action { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.wk-note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 22px 24px; border-radius: 20px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.wk-note svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--gold); }
.wk-note p { font-size: 15px !important; line-height: 1.65 !important; color: var(--muted); }

/* Code */
.wk-code { margin: 20px 0; border-radius: 18px; background: #0c1426; box-shadow: var(--sh-2); overflow: auto; }
.wk-code pre { margin: 0; padding: 22px 24px; }
.wk-code code { background: none !important; box-shadow: none !important; padding: 0 !important; color: #d6deeb !important; font-size: 13.5px !important; line-height: 1.65; }
.wk-code .k { color: #9ab8ff; }
.wk-code .s { color: #f3d891; }

/* Inline CTA after the result */
.wk-ask {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: 96px; padding: 36px 40px; border-radius: 28px;
  background: radial-gradient(80% 120% at 100% 100%, rgba(226, 173, 59, 0.16), rgba(226, 173, 59, 0) 60%), linear-gradient(180deg, #fff, #eef3fb);
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
}
.wk-ask h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 650; }
.wk-ask p { font-size: 16.5px; margin-top: 8px; }

/* ==========================================================================
   NEXT PROJECT
   ========================================================================== */
.wk-next { padding: 40px 12px 120px; }
.wk-next__link {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center;
  overflow: hidden; isolation: isolate; padding: 72px 72px 64px; border-radius: 34px; text-decoration: none; color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(42, 95, 208, 0.9) 0%, rgba(42, 95, 208, 0) 60%),
    linear-gradient(160deg, #143a8a 0%, #0a1a3a 100%);
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.wk-next__link::before {
  content: ''; position: absolute; z-index: -1; right: -120px; bottom: -280px; width: 640px; height: 640px; border-radius: 50%;
  border: 80px solid transparent; border-top-color: rgba(91, 143, 245, 0.3); border-left-color: rgba(226, 173, 59, 0.34);
  transform: rotate(-20deg); transition: transform 1.2s var(--ease);
}
.wk-next__link:hover::before { transform: rotate(-6deg); }
.wk-next__label { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.74); margin-bottom: 22px; }
.wk-next__label::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.wk-next__name { display: block; font-size: clamp(48px, 6.4vw, 104px); font-weight: 680; letter-spacing: -0.05em; line-height: 0.95; color: #fff; margin-bottom: 22px; }
.wk-next__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #f3d891; }
.wk-next__text { display: block; font-size: 17px; line-height: 1.6; max-width: 30em; margin-bottom: 32px; }
.wk-next__go { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: #fff; }
.wk-next__go b {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #1d1404;
  background: var(--gold-grad); background-size: 220% 100%; box-shadow: var(--sh-gold); transition: transform 0.4s var(--ease), background-position 0.6s var(--ease);
}
.wk-next__link:hover .wk-next__go b { transform: translateX(6px); background-position: 80% 0; }
.wk-next__device { transition: transform 0.8s var(--ease); }
.wk-next__link:hover .wk-next__device { transform: translateY(-8px); }

/* ==========================================================================
   CTA (home style)
   ========================================================================== */
.wk-cta { padding: 24px 12px 120px; }
.wk-cta__panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 34px; padding: 128px 0 120px;
  background: radial-gradient(80% 70% at 50% 120%, rgba(226, 173, 59, 0.18), rgba(226, 173, 59, 0) 70%), linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  box-shadow: var(--sh-3), inset 0 0 0 1px var(--line), inset 0 1px 0 #fff;
}
.wk-cta__arc {
  position: absolute; z-index: -1; left: 50%; bottom: -62%; width: 1200px; height: 1200px; margin-left: -600px; border-radius: 50%;
  border: 120px solid transparent; border-top-color: rgba(42, 95, 208, 0.08); border-right-color: rgba(226, 173, 59, 0.16);
  transform: rotate(-30deg);
}
.wk-cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.wk-cta__title {
  font-size: clamp(64px, 12vw, 200px); line-height: 0.9; letter-spacing: -0.065em; font-weight: 720;
  color: var(--ink); margin: 6px 0 28px; text-shadow: 0 1px 0 #fff, 0 20px 40px rgba(11, 22, 48, 0.08);
}
.wk-cta__title .wk-serif { font-size: 1.06em; filter: drop-shadow(0 10px 20px rgba(120, 78, 8, 0.25)); text-shadow: none; }
.wk-cta__text { font-size: 19px; line-height: 1.6; max-width: 32em; margin-bottom: 40px; }
.wk-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 26px; margin-bottom: 28px; }
.wk-wa {
  display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 24px; border-radius: 999px;
  color: var(--ink); font-weight: 600; text-decoration: none; background: #fff;
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wk-wa svg { color: #1f9d55; }
.wk-wa:hover { transform: translateY(-2px); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line-2); }
.wk-cta__mail { font-size: 15px; color: var(--muted); }
.wk-cta__mail a { color: var(--royal); font-weight: 600; }

/* ==========================================================================
   Scroll reveals (desktop, motion allowed). js/work.js adds .wk-pending only
   to elements still below the viewport, then .wk-in as they arrive.
   ========================================================================== */
.wk-motion .wk-pending { opacity: 0; transform: translateY(28px); }
.wk-motion .wk-pending.wk-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.wk-motion .wk-zoom.wk-pending { opacity: 1; transform: none; }
.wk-motion .wk-zoom.wk-pending > img { transform: scale(1.08); opacity: 0.4; }
.wk-motion .wk-zoom.wk-pending.wk-in > img { transform: none; opacity: 1; transition: transform 1.4s var(--ease), opacity 0.9s var(--ease); }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
  .wk-hero--case .wk-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .wk-hero__device { margin: 0 auto; }
  .wk-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
  .wk-next__link { grid-template-columns: minmax(0, 1fr); padding: 56px 48px; }
  .wk-next__device { max-width: 560px; }
}
@media (max-width: 900px) {
  .wk-grid { grid-template-columns: minmax(0, 1fr); }
  .wk-ongoing__grid { grid-template-columns: minmax(0, 1fr); }
  .wk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-layout { grid-template-columns: minmax(0, 1fr); }
  .wk-toc { display: none; }
}

/* ==========================================================================
   Phone (< 768px): stacked, static
   ========================================================================== */
@media (max-width: 767px) {
  .wk-wrap { width: calc(100% - 32px); }
  .wk-hero { padding: 76px 8px 0; }
  .wk-hero__panel { border-radius: 26px; }
  .wk-hero--index .wk-hero__inner { padding: 56px 0 28px; }
  .wk-hero__title { font-size: clamp(44px, 13vw, 60px); }
  .wk-hero--index .wk-hero__lede { margin-bottom: 36px; }
  .wk-hero--case .wk-hero__inner { padding: 40px 0 32px; gap: 36px; }
  .wk-hero--case .wk-hero__title { font-size: clamp(40px, 11.5vw, 56px); }
  .wk-hero__lede { font-size: 17px; }
  .wk-hero__meta .wk-btn { width: 100%; justify-content: center; }
  .wk-glow--a { width: 420px; height: 420px; right: -160px; top: -160px; }
  .wk-stats { gap: 8px; }
  .wk-stat { padding: 16px 16px 14px; border-radius: 16px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .wk-stat dd { font-size: 30px; }
  .wk-stats--words dd { font-size: 20px; }
  .wk-stat dt { font-size: 13px; }
  .wk-hero--case .wk-stats { padding-bottom: 20px; }

  .wk-work { padding: 72px 0 24px; }
  .wk-work__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
  .wk-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 28px; padding: 4px 16px 10px; scrollbar-width: none; }
  .wk-filters::-webkit-scrollbar { display: none; }
  .wk-chip { flex: none; height: 40px; padding: 0 16px; }
  .wk-grid { gap: 20px; }
  .wk-card__body { padding: 10px 10px 22px; border-radius: 22px; }
  .wk-card__main::after { border-radius: 22px; }
  .wk-card__stage.has-phone { padding: 26px 15% 22px 5%; }
  .wk-phone { border-radius: 12px; }
  .wk-phone__screen { border-radius: 8px; }
  .wk-card__stage { padding: 26px 9% 22px; border-radius: 16px; margin-bottom: 20px; }
  .wk-card__meta, .wk-card__title, .wk-card__text, .wk-card__chips, .wk-card__foot { padding-inline: 10px; }
  .wk-card__title { font-size: 25px; }
  .wk-card__text { font-size: 15.5px; }
  .wk-ongoing { padding: 56px 0 16px; }
  .wk-mini { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .wk-mini__meta { grid-column: 1; }
  .wk-honest { padding: 18px 20px; font-size: 15px; }

  .wk-layout { padding: 64px 0 24px; }
  .wk-content > section + section { margin-top: 72px; }
  .wk-content p, .wk-content li { font-size: 16.5px; }
  .wk-lead { font-size: 18px !important; }
  .wk-facets, .wk-features, .wk-figure-pair { grid-template-columns: minmax(0, 1fr); }
  .wk-facet { padding: 22px; }
  .wk-decision-why { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px; }
  .wk-challenge { padding: 22px 18px; border-radius: 22px; }
  .wk-challenge-head { gap: 14px; }
  .wk-challenge-n { font-size: 32px; }
  .wk-challenge-head h3 { font-size: 20px; }
  .wk-step { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; }
  .wk-figure { margin: 28px 0; }
  .wk-figure > img, .wk-figure figure > img { border-radius: 12px; }
  .wk-panel { padding: 26px 22px; border-radius: 22px; }
  .wk-panel p { font-size: 16.5px; }
  .wk-result-action .wk-btn { width: 100%; justify-content: center; }
  .wk-ask { margin-top: 64px; padding: 26px 22px; border-radius: 22px; }
  .wk-ask .wk-btn { width: 100%; justify-content: center; }

  .wk-next { padding: 24px 8px 72px; }
  .wk-next__link { gap: 36px; padding: 40px 24px 32px; border-radius: 26px; }
  .wk-next__name { font-size: clamp(42px, 12vw, 60px); }

  .wk-cta { padding: 0 8px 64px; }
  .wk-cta__panel { padding: 72px 0 64px; border-radius: 26px; }
  .wk-cta__title { font-size: clamp(56px, 17vw, 80px); }
  .wk-cta__text { font-size: 17px; }
  .wk-cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .wk-cta__actions .wk-btn, .wk-wa { width: 100%; justify-content: center; }
}

/* Reduced motion: nothing moves, whatever the screen size. */
@media (prefers-reduced-motion: reduce) {
  .wk-page *, .wk-page *::before, .wk-page *::after { animation: none !important; transition: none !important; }
  .wk-next__link:hover .wk-next__device, .wk-btn:hover, .wk-chip:hover { transform: none; }
}

/* ==========================================================================
   SITE-WIDE POLISH (one system for every page on css/work.css)
   Motion runs only on desktop with motion allowed: CSS intros sit inside
   the same media query as Home's; scroll-driven states need html.wk-motion,
   which js/work.js reads. Phones and reduced motion stay static.
   ========================================================================== */

/* Gold that catches the light: buttons get a sheen that crosses on hover. */
.wk-btn--gold { overflow: hidden; isolation: isolate; }
.wk-btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--gold-sheen) no-repeat; background-size: 260% 100%; background-position: 140% 0;
  transition: background-position 0.9s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .wk-btn--gold:hover::after { background-position: -40% 0; }
  .wk-btn:active, .wk-chip:active, .wk-wa:active { transform: translateY(0) scale(0.975); transition-duration: 0.12s; }
  .wk-btn--glass:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 30px -12px rgba(2, 11, 36, 0.7); }
}
.wk-gold-text { background-size: 240% 100%; }

/* Hero entrance: title words rise out of a mask, everything else follows. */
.wk-hw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.04em 0.06em 0.12em; margin: -0.04em -0.06em -0.12em; }
.wk-hw > span { display: inline-block; }
:is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) :is(.wk-crumbs, .bx-logo) { --hi: 0; }
:is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) .wk-eyebrow { --hi: 1; }
:is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) :is(.wk-hero__lede, .lg-hero__sub) { --hi: 4; }
:is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) :is(.wk-stack, .lg-hero__intro, .sv-hero__ctas, .pr-ctas) { --hi: 5; }
:is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) :is(.wk-hero__meta, .sv-hero__count, .pr-chips, .lg-hero__meta) { --hi: 6; }
:is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) :is(.wk-stats, .wk-hero__device, .sv-demo) { --hi: 7; }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .wk-hw > span { animation: wkWord 1.1s var(--ease) both; animation-delay: calc(0.15s + var(--i) * 0.09s); }
  :is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) :is(.wk-crumbs, .bx-logo, .wk-eyebrow, .wk-hero__lede, .lg-hero__sub, .wk-stack, .lg-hero__intro, .sv-hero__ctas, .pr-ctas, .wk-hero__meta, .sv-hero__count, .pr-chips, .lg-hero__meta, .wk-stats, .wk-hero__device, .sv-demo) {
    animation: wkRise 1s var(--ease) both; animation-delay: calc(0.1s + var(--hi, 0) * 0.11s);
  }
  :is(.wk-hero__device, .sv-demo) { animation-name: wkRiseFar !important; animation-duration: 1.4s !important; }
  /* the gold word keeps a slow, quiet shimmer once it has landed */
  :is(.wk-hw, .wk-cta__title) .wk-gold-text { animation: wkShimmer 8s ease-in-out 2.2s infinite alternate; } /* heroes with their own gold moment (Contact, About) keep it */
}
/* Phones (2026-11-23): a lighter entrance. Shorter and closer, no shimmer
   loop. The lede is the phone LCP element on most pages, so it only moves
   and never starts invisible; the title words rise from half-way inside
   their mask, so they are painted from the first frame too. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .wk-hw > span { animation: wkWordLite 0.8s var(--ease) both; animation-delay: calc(0.05s + var(--i) * 0.06s); }
  :is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) :is(.wk-crumbs, .bx-logo, .wk-eyebrow, .wk-stack, .lg-hero__intro, .sv-hero__ctas, .pr-ctas, .wk-hero__meta, .sv-hero__count, .pr-chips, .lg-hero__meta, .wk-stats, .wk-hero__device, .sv-demo) {
    animation: wkRiseLite 0.7s var(--ease) both; animation-delay: calc(0.05s + var(--hi, 0) * 0.07s);
  }
  :is(.wk-hero--index, .wk-hero--case, .sv-hero, .pr-hero, .bx-hero, .lg-hero) :is(.wk-hero__lede, .lg-hero__sub) { animation: wkNudge 0.7s var(--ease) 0.15s both; }
}
@keyframes wkWordLite { from { transform: translateY(45%); } to { transform: none; } }
@keyframes wkRiseLite { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes wkNudge { from { transform: translate3d(0, 8px, 0); } to { transform: none; } }
@keyframes wkWord { from { transform: translateY(108%); } to { transform: none; } }
@keyframes wkRise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes wkRiseFar { from { opacity: 0; transform: translate3d(0, 56px, 0) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes wkShimmer { from { background-position: 20% 0; } to { background-position: 80% 0; } }

/* Section headings: words rise into place when they scroll in (js/work.js
   splits only headings that are still below the viewport). */
.wk-sw { display: inline-block; vertical-align: bottom; padding: 0.04em 0.06em 0.12em; margin: -0.04em -0.06em -0.12em; }
.wk-sw > span { display: inline-block; }
.wk-motion .wk-split--pending .wk-sw { overflow: hidden; }
.wk-motion .wk-split--pending .wk-sw > span { transform: translateY(108%); }
.wk-motion .wk-split--pending.wk-split--in .wk-sw > span {
  transform: none; transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 60ms);
}

/* Staggered entrances: js/work.js gives each element in a batch its delay. */
.wk-motion .wk-pending.wk-in { transition-delay: var(--wk-d, 0ms); }

/* Images unmask instead of fading. */
.wk-motion .wk-zoom.wk-pending { clip-path: inset(10% 6% 10% 6% round 18px); }
.wk-motion .wk-zoom.wk-pending.wk-in { clip-path: inset(0 0 0 0 round 18px); transition: clip-path 1.3s var(--ease); transition-delay: var(--wk-d, 0ms); }

/* Cards answer the pointer: a soft light follows it (js/work.js adds
   .wk-spot on desktop and keeps --mx/--my current). */
.wk-spot { position: relative; isolation: isolate; }
.wk-spot::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 143, 245, 0.14), rgba(226, 173, 59, 0.07) 34%, rgba(255, 255, 255, 0) 62%);
  transition: opacity 0.5s var(--ease);
}
.wk-spot--dark::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), rgba(243, 216, 145, 0.08) 34%, rgba(255, 255, 255, 0) 62%); }
.wk-spot:hover::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .wk-motion :is(.wk-feature, .wk-facet, .wk-mini, .wk-challenge, .wk-decision-why, .wk-note) { transition: box-shadow 0.45s var(--ease); }
  .wk-motion :is(.wk-feature, .wk-facet, .wk-mini):hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); }
}

/* Depth: alternate sections carry layered light instead of a flat tint. */
.co-section--soft {
  position: relative; isolation: isolate;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(91, 143, 245, 0.1), rgba(91, 143, 245, 0) 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(226, 173, 59, 0.08), rgba(226, 173, 59, 0) 70%),
    linear-gradient(180deg, #edf2fa 0%, #f3f6fb 55%, var(--bg) 100%);
}
.co-section--soft::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(11, 22, 48, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 22, 48, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 70% at 85% 10%, #000, transparent 70%); mask-image: radial-gradient(60% 70% at 85% 10%, #000, transparent 70%);
}
.co-section--soft + .co-section:not(.co-section--soft), .co-section:not(.co-section--soft) + .co-section--soft { box-shadow: inset 0 1px 0 rgba(11, 22, 48, 0.06); }

/* Scroll-linked layers (js/work.js writes the translate/scale values). */
.wk-motion :is(.wk-glow, .wk-gridlines, .wk-hero__device, .wk-cta__arc) { will-change: translate; }

/* Text links: one underline that firms up and deepens on hover. */
.wk :is(p, li, dd, label, .wk-cta__mail) a:not([class]), .wk :is(.lg-link, .lg-contact__link) {
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color 0.25s, text-decoration-color 0.25s, text-decoration-thickness 0.25s;
}
.wk :is(p, li, dd, label, .wk-cta__mail) a:not([class]):hover, .wk :is(.lg-link, .lg-contact__link):hover {
  color: var(--royal-deep); text-decoration-color: currentColor; text-decoration-thickness: 2px;
}

/* Work images unmask as their card arrives (portfolio cards, service project tiles). */
.wk-motion .wk-card.wk-pending .wk-card__stage, .wk-motion .sv-proj.wk-pending .sv-proj__img { clip-path: inset(9% 7% 9% 7% round 20px); }
.wk-motion .wk-card.wk-pending.wk-in .wk-card__stage, .wk-motion .sv-proj.wk-pending.wk-in .sv-proj__img {
  clip-path: inset(0 0 0 0 round 20px); transition: clip-path 1.3s var(--ease); transition-delay: calc(var(--wk-d, 0ms) + 80ms);
}

/* ==========================================================================
   PHONES (2026-11-23): readable and thumb-sized. Body copy is at least 16px,
   anything tappable is at least 44px tall. Last in the file, so these win
   over the component sizes above; desktop is untouched.
   ========================================================================== */
@media (max-width: 767px) {
  .wk-card__text, .wk-mini p, .wk-honest p, .wk-note p { font-size: 16px; }
  .wk-feature li { font-size: 16px !important; }
  .wk-hero__note, .wk-figure figcaption { font-size: 15px; }
  .wk-crumbs a { min-height: 44px; }
  .wk-card__live { min-height: 44px; }
}
