/* ============================================================
   deck.css — case studies rebuilt from Ankita's slide decks.
   Staging only (explore-cases.html). Namespaced dk- so nothing
   here can reach the home page or the older case templates.

     .dk-hero    custom intro: title, facts, floating product shots, stats
     .dk-body    two columns: sticky section menu | the slide stream
     .dk-card    one slide, as liquid glass
     .dk-pager   floating "‹ 07 / 25 ›" control to page through slides

   Colour stays on the site tokens: the decks' orange becomes --acc,
   their peach boxes become accent-tinted glass, their navy boxes ink glass.
   ============================================================ */

.case.case--deck { --dk-r: 28px; --dk-gap: clamp(20px, 2.4vw, 32px); padding: 0 0 var(--section-y); }
.case--deck .case-paging { width: min(calc(100% - 2 * var(--gutter)), calc(var(--maxw) - 2 * var(--gutter))); max-width: none; margin-top: clamp(1rem, 3vw, 2rem); }
@media (max-width: 767px) {
  /* stacked: back link on the left, next link on the right (row-reverse flips flex-end, so use align-self) */
  .case--deck .case-paging { gap: 1.75rem; }
  .case--deck .case-paging__link--next { align-self: flex-end; justify-content: flex-start; text-align: right; }
}

/* ---------------------------------------------------------- hero */
/* Deliberately spare: title, who it was for and what I did, the numbers,
   then one large look at the product. Everything else lives in the slides. */
.dk-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) var(--gutter) 0;
}
.dk-eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc);
}
.dk-eyebrow::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.dk-hero .case-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.03em; color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin: 0; outline: none;
}
.dk-meta { margin: .6rem 0 0; font-size: .9375rem; font-weight: 500; letter-spacing: .01em; color: var(--ink-2); opacity: .85; }
.dk-hero__lede { margin: 1.25rem 0 0; max-width: 60ch; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.dk-hero__stats { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.dk-statgroup .dk-label { margin-bottom: .8rem; }
/* the headline numbers sit on near-white so they lift off the page */
.dk-hero__stats .dk-stat { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, 1); box-shadow: inset 0 1px 0 #fff, 0 10px 28px -16px rgba(41, 42, 77, .28); }
.dk-statgroup--2 .dk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dk-statgroup--3 .dk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* the large look at the product: grows into place as it arrives */
.dk-feature { max-width: calc(980px + 2 * var(--gutter)); margin: clamp(2rem, 4vw, 3rem) auto clamp(4rem, 8vw, 7rem); padding: 0 var(--gutter); }
.dk-feature__in {
  border-radius: 30px; padding: clamp(8px, 1vw, 14px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .45));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 #fff, 0 50px 100px -40px rgba(41, 42, 77, .4);
  transform: scale(var(--k, 1)); transform-origin: 50% 0;
}
.dk-feature img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* ------------------------------------------------- two columns */
.dk-body {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
}

/* ---- section menu ---- */
.dk-menu { position: sticky; top: calc(var(--nav-h) + 28px); }
.dk-menu__hd { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .9rem; }
.dk-menu ol { list-style: none; margin: 0; padding: 0; position: relative; }
.dk-menu li { position: relative; }
.dk-menu a {
  display: flex; align-items: baseline; gap: .6rem; padding: .42rem 0;
  font-size: .9375rem; line-height: 1.3; color: var(--ink-2); text-decoration: none;
  transition: color .3s var(--ease);
}
.dk-menu a:hover { color: var(--ink); }
.dk-menu a .n { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); opacity: .6; min-width: 1.4em; font-variant-numeric: tabular-nums; }
.dk-menu a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.dk-menu a[aria-current="true"] .n { color: var(--acc); opacity: 1; }

/* one tick per slide under the open section, so you can see where you are inside it */
.dk-ticks { display: flex; gap: 4px; padding: 0 0 .5rem 2rem; }
.dk-ticks i { width: 14px; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s var(--ease), width .3s var(--ease); }
.dk-ticks i.on { background: var(--acc); width: 22px; }
.dk-menu__sel { display: none; }

/* ---- the stream ---- */
.dk-stream { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: 6rem; }
.dk-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.dk-sec__label {
  display: flex; align-items: center; gap: 1rem; margin: clamp(1rem, 3vw, 2.5rem) 0 -.5rem;
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em; color: var(--ink);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}
.dk-sec__label span { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .1em; color: var(--acc); }
.dk-sec__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dk-sec:first-child .dk-sec__label { margin-top: 0; }

/* ---------------------------------------------------- the card */
.dk-card {
  --f: 1;
  position: relative; isolation: isolate;
  scroll-margin-top: calc(var(--nav-h) + 24px);
  min-height: clamp(380px, 54vh, 580px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2vw, 28px);
  padding: clamp(24px, 3.4vw, 52px);
  border-radius: var(--dk-r);
  background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .66) 60%, rgba(255, 255, 255, .72));
  /* no backdrop blur: the veil behind is already soft, and re-blurring it every frame was costly */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    0 1px 2px rgba(41, 42, 77, .04),
    0 34px 70px -28px rgba(41, 42, 77, .22);
  transform: scale(calc(.965 + .035 * var(--f)));
  opacity: calc(.62 + .38 * var(--f));
  transform-origin: 50% 50%;
}
/* reflection edge: a rim of light, brightest top-left and bottom-right */
.dk-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .15) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .25) 80%, rgba(255, 255, 255, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.dk-card > * { position: relative; z-index: 3; }

.dk-card__hd { display: grid; gap: .5rem; }
/* style.css gives every h1–h4 Montserrat; on these pages only slide headings keep it */
.case--deck h4 { font-family: var(--font-body); letter-spacing: 0; }
.dk-card__t { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; margin: 0; text-wrap: balance; }
.dk-card__lede { margin: 0; max-width: 62ch; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.dk-card__foot { margin: 0; font-size: .975rem; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.dk-card__foot b { color: var(--ink); }

/* ink card: the decks' navy slides */
.dk-card--ink {
  background: linear-gradient(160deg, rgba(41, 42, 77, .92), rgba(41, 42, 77, .84) 60%, rgba(52, 54, 104, .88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 40px 80px -30px rgba(41, 42, 77, .5);
  color: #fff;
}
.dk-card--ink::before { background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .3)); }
.dk-card--ink .dk-card__t, .dk-card--ink .dk-card__foot b { color: #fff; }
.dk-card--ink .dk-card__lede, .dk-card--ink .dk-card__foot { color: rgba(255, 255, 255, .78); }
.dk-card--ink .dk-eyebrow { color: #B9BAF2; }


/* ------------------------------------------------ slide pieces */
.dk-panel {
  position: relative; border-radius: 16px; padding: clamp(14px, 1.5vw, 20px);
  background: color-mix(in srgb, var(--acc) 7%, #fff); border: 1px solid color-mix(in srgb, var(--acc) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 26px -18px rgba(41, 42, 77, .25);
}
.dk-panel--acc { background: color-mix(in srgb, var(--acc) 15%, #fff); border-color: color-mix(in srgb, var(--acc) 26%, transparent); }
.dk-panel--ink { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .82); box-shadow: 0 20px 40px -24px rgba(41, 42, 77, .7); }
.dk-panel--ink .dk-label, .dk-panel--ink h4 { color: #fff; }
.dk-card--ink .dk-panel { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.dk-label { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin: 0 0 .7rem; }
.dk-panel h4, .dk-step h4 { margin: 0 0 .35rem; font-family: var(--font-body); font-weight: 800; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.dk-card--ink .dk-panel h4 { color: #fff; }
.dk-panel p, .dk-step p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.dk-card--ink .dk-panel p { color: rgba(255, 255, 255, .75); }
.dk-panel--ink p { color: rgba(255, 255, 255, .78); }
.dk-panel.dk-panel--ink h4, .dk-panel.dk-panel--ink .dk-label { color: #fff; }
.dk-panel.dk-panel--ink p, .dk-panel.dk-panel--ink .dk-list li { color: rgba(255, 255, 255, .8); }

.dk-grid { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.dk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dk-grid--side { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.dk-grid--side > .dk-panel--ink { align-self: center; }

/* numbered steps */
.dk-step { position: relative; }
.dk-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--acc); color: #fff; font-size: .8125rem; font-weight: 800; margin-bottom: .85rem;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--acc) 80%, transparent);
}
.dk-big { display: block; font-family: var(--font-body); font-weight: 800; letter-spacing: -.02em; color: var(--acc); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; margin-bottom: .6rem; }

/* lists */
.dk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.dk-list li { position: relative; padding-left: 1.1rem; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.dk-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.dk-list li b { color: var(--ink); }
.dk-panel--ink .dk-list li, .dk-card--ink .dk-list li { color: rgba(255, 255, 255, .8); }
.dk-panel--ink .dk-list li b { color: #fff; }

/* chips */
.dk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-chip { display: inline-block; padding: .38em .75em; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.dk-tag { display: inline-block; padding: .3em .6em; border-radius: 999px; font-size: .625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, #fff); vertical-align: .15em; }
/* "New feature": plain purple text, not a pill */
.dk-tag--new { color: var(--acc); background: none; padding: 0; margin-left: .35em; font-size: .6875rem; }
.dk-flow li .dk-tag--new.dk-flow__top { margin-left: 0; }

/* stats */
.dk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.dk-stat { border-radius: 16px; padding: clamp(14px, 1.6vw, 20px); background: color-mix(in srgb, var(--acc) 7%, #fff); border: 1px solid color-mix(in srgb, var(--acc) 16%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
.dk-stat b { display: block; font-family: var(--font-body); font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.dk-stat span { display: block; margin-top: .55rem; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.dk-stat small { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: .7rem; }
.dk-card--ink .dk-stat { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.dk-card--ink .dk-stat b { color: #fff; font-size: clamp(2rem, 3.2vw, 2.75rem); }
.dk-card--ink .dk-stat span { color: rgba(255, 255, 255, .75); }
.dk-card--ink .dk-stat small { color: #B9BAF2; }

/* flows: steps joined by a line */
.dk-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; counter-reset: dkflow; }
.dk-flow--wrap { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dk-flow li {
  position: relative; border-radius: 14px; padding: 12px 12px 14px;
  background: color-mix(in srgb, var(--acc) 7%, #fff); border: 1px solid color-mix(in srgb, var(--acc) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  font-size: .9rem; line-height: 1.35; color: var(--ink-2);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.dk-flow li b { display: block; color: var(--ink); font-size: .975rem; margin-bottom: .2rem; transition: color .5s var(--ease); }
.dk-flow li::before { counter-increment: dkflow; content: counter(dkflow); display: block; font-size: .75rem; font-weight: 800; color: var(--acc); margin-bottom: .5rem; transition: color .5s var(--ease); }
.dk-flow li .dk-tag { margin-top: .55rem; }
.dk-flow li .dk-flow__top { display: table; margin: 0 0 .55rem; }
.dk-flow li.is-end { background: color-mix(in srgb, var(--acc) 16%, #fff); border-color: color-mix(in srgb, var(--acc) 30%, transparent); }
/* "my focus": steps light up once the slide has settled */
.dk-flow li.is-focus { background: var(--acc); border-color: var(--acc); color: rgba(255, 255, 255, .85); }
.dk-flow li.is-focus b, .dk-flow li.is-focus::before { color: #fff; }
.dk-focusnote { display: flex; align-items: center; gap: .6rem; font-size: .875rem; font-weight: 700; color: var(--acc); }
.dk-focusnote::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: currentColor; }

/* team chart */
.dk-org { display: grid; justify-items: center; gap: 14px; }
.dk-org__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; }
.dk-org__row + .dk-org__row::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 14px; background: color-mix(in srgb, var(--acc) 45%, transparent); }
.dk-person { padding: .6em .85em; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px -3px rgba(41, 42, 77, .25); border: 1px solid color-mix(in srgb, var(--acc) 25%, transparent); font-size: .875rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.25; }
.dk-person small { display: block; font-weight: 500; font-size: .75rem; color: var(--ink-2); }
.dk-person--me { background: var(--acc); border-color: var(--acc); color: #fff; }
.dk-person--me small { color: rgba(255, 255, 255, .8); }

/* big statement slides */
.dk-statement { font-family: var(--font-body); font-weight: 600; letter-spacing: -.005em; line-height: 1.45; font-size: clamp(1.15rem, 1.6vw, 1.4rem); margin: 0; max-width: 42ch; text-wrap: balance; color: var(--ink); }
.dk-card--ink .dk-statement { color: #fff; }
.dk-card--intro .dk-statement { max-width: 52ch; }

/* equation: modules + custom screens -> one app -> people */
.dk-eq { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto minmax(0, .8fr) auto minmax(0, .9fr); gap: 12px; align-items: center; }
.dk-eq__op { font-family: var(--font-body); font-weight: 800; font-size: 1.5rem; color: var(--acc); text-align: center; }
.dk-app { display: grid; justify-items: center; gap: .6rem; text-align: center; font-size: .875rem; font-weight: 700; color: var(--ink); }
.dk-app i { width: 64px; height: 112px; border-radius: 14px; border: 2px solid var(--ink); position: relative; background: linear-gradient(rgba(93, 94, 184, .14), rgba(93, 94, 184, .04)); }
.dk-app i::before { content: ""; position: absolute; left: 50%; top: 6px; width: 18px; height: 3px; border-radius: 3px; background: var(--ink); transform: translateX(-50%); }

/* comparison: what I looked at / liked / didn't */
.dk-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 18px); }

/* images */
.dk-media { display: grid; gap: clamp(12px, 1.6vw, 20px); align-items: center; }
.dk-media--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dk-media--sketch { grid-template-columns: minmax(0, 1fr) minmax(0, 1.94fr); }
.dk-frame {
  margin: 0; border-radius: 16px; overflow: hidden; background: #fff; padding: 6px;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 24px 50px -28px rgba(41, 42, 77, .4);
}
.dk-frame img { display: block; width: 100%; height: auto; border-radius: 11px; }
.dk-frame figcaption { padding: .7rem .35rem .25rem; font-size: .8125rem; color: var(--ink-2); }

/* customer work: a browser beside a phone whose long screen scrolls itself */
.dk-showcase {
  --ph: clamp(200px, 17vw, 250px);              /* phone width; the phone sets the row height */
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 36px); align-items: center;
}
.dk-showcase--many { --ph: clamp(150px, 12vw, 190px); }
/* long screenshots drift slowly from top to bottom and back, like a screen recording */
.dk-browser { position: relative; height: calc(var(--ph) / .48); padding: 6px; }
.dk-browser picture, .dk-phone picture { display: block; }
.dk-browser img { display: block; width: 100%; height: auto; border-radius: 11px; }
.dk-phone { width: var(--ph); aspect-ratio: .48; margin: 0; border-radius: 28px; padding: 7px; background: #15162B; box-shadow: 0 30px 60px -26px rgba(41, 42, 77, .6), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.dk-phone__screen { height: 100%; border-radius: 21px; overflow: hidden; background: #fff; }
.dk-phone img { display: block; width: 100%; height: auto; }
.dk-scroll { overflow: hidden; }
.dk-scroll img { transform: translateY(0); }
.dk-card.is-in .dk-scroll img { animation: dkScroll var(--dur, 16s) ease-in-out 1s infinite alternate; }
.dk-scroll:hover img { animation-play-state: paused; }
@keyframes dkScroll { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(var(--travel, 0px)); } }
.dk-fan { display: flex; align-items: center; }
.dk-fan .dk-phone { position: relative; }
.dk-fan .dk-phone + .dk-phone { margin-left: calc(var(--ph) * -.18); }
.dk-fan .dk-phone:nth-child(1) { transform: rotate(-4deg) translateY(12px); z-index: 1; }
.dk-fan .dk-phone:nth-child(2) { transform: translateY(-12px); z-index: 3; }
.dk-fan .dk-phone:nth-child(3) { transform: rotate(4deg) translateY(12px); z-index: 2; }

/* --------------------------------------- walkthrough (build-ups) */
.dk-walk { display: grid; grid-template-columns: minmax(240px, 3.3fr) minmax(0, 8.7fr); gap: clamp(18px, 2.6vw, 36px); align-items: center; }
.dk-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dk-point {
  display: grid; grid-template-columns: 30px 1fr; gap: 0 .85rem; width: 100%; text-align: left;
  padding: .7rem .85rem; border-radius: 16px; border: 1px solid transparent; background: transparent; cursor: pointer;
  font: inherit; color: inherit; transition: background .4s var(--ease), border-color .4s var(--ease), opacity .4s var(--ease);
  opacity: .62;
}
.dk-point:hover { opacity: .9; }
.dk-point .dk-num { margin: 0; grid-row: span 2; background: color-mix(in srgb, var(--acc) 16%, #fff); color: var(--acc); box-shadow: none; transition: background .4s var(--ease), color .4s var(--ease); }
/* everything after the number sits in the text column, however many paragraphs */
.dk-point > h4, .dk-point > p { grid-column: 2; }
.dk-point h4 { margin: .2rem 0 .25rem; font-weight: 800; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.dk-point p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); display: none; }
/* steps swap instantly (no height animation, so a pinned card never wobbles); the new text fades in */
.dk-point[aria-pressed="true"] p { display: block; animation: dkFade .35s var(--ease) both; }
@keyframes dkFade { from { opacity: 0; } }
.dk-point[aria-pressed="true"] p + p { margin-top: .5em; }
/* walkthroughs with many steps: give the list more room so it fits on one screen */
.dk-walk--long { grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); }
.dk-walk--long .dk-point { padding: .55rem .8rem; }
.dk-walk--long .dk-point h4 { margin: .25rem 0 .15rem; }
/* measuring each step's height: no transitions, so the numbers are final */
.dk-card.is-measuring .dk-point p { animation: none !important; }
/* pinned walkthroughs on short windows */
.dk-scrolly.is-compact > .dk-card { padding: clamp(18px, 2.2vw, 30px) clamp(22px, 2.8vw, 40px); gap: 12px; }
.dk-scrolly.is-compact .dk-card__t { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.dk-scrolly.is-compact .dk-point { padding: .4rem .7rem; }
.dk-scrolly.is-compact .dk-point p { font-size: .85rem; line-height: 1.45; }
.dk-scrolly.is-compact .dk-walk--phones .dk-screen { max-width: 440px; }
/* the rest of the list, left for the interview */
.dk-points__more { padding: .5rem .85rem .2rem 3.3rem; font-size: .9rem; font-weight: 700; color: var(--acc); }
.dk-walk--phones .dk-screen__in { aspect-ratio: 1; }
.dk-walk--phones .dk-screen { max-width: 560px; justify-self: center; width: 100%; }
.dk-point[aria-pressed="true"] { opacity: 1; background: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 0 12px 26px -18px rgba(41, 42, 77, .35); }
.dk-point[aria-pressed="true"] .dk-num { background: var(--acc); color: #fff; }
/* while it is pinned, scrolling steps through the points; a short rail shows how far along you are */
.dk-scrolly { position: relative; }
.dk-scrolly.is-pinned > .dk-card { position: sticky; }
.dk-walk__rail { display: none; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 4px .85rem 0; }
.dk-scrolly.is-pinned .dk-walk__rail { display: block; }
.dk-walk__rail i { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .35s var(--ease); }

.dk-screen { position: relative; margin: 0; border-radius: 16px; padding: 6px; background: #fff; border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, 0 30px 60px -30px rgba(41, 42, 77, .45); }
.dk-screen__in { position: relative; border-radius: 11px; overflow: hidden; aspect-ratio: 1600 / 1078; background: #EEF0F6; }
.dk-screen__in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.dk-screen__in img.on { opacity: 1; }
/* the highlight: everything outside it dims, and it glides between spots */
.dk-hl {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 8px; pointer-events: none;
  border: 2px solid var(--acc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent), 0 0 0 200vmax rgba(28, 29, 58, .34);
  transition: left .65s var(--ease), top .65s var(--ease), width .65s var(--ease), height .65s var(--ease), opacity .4s var(--ease);
  opacity: 0;
}
.dk-hl.on { opacity: 1; }

/* a few desktop and phone screens on one slide; the full set is shown in person */
.dk-sampler { display: grid; gap: clamp(14px, 1.8vw, 24px); }
.dk-sampler__desk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); align-items: start; }
.dk-sampler__phones { display: flex; justify-content: center; gap: clamp(10px, 1.6vw, 22px); }
.dk-sampler__phones .dk-phone { width: clamp(110px, 11.5vw, 160px); }
.dk-sampler__phones .dk-phone__screen img { width: 100%; height: auto; }
/* one quiet outline for every screen on this slide, phones and desktop alike */
.dk-sampler .dk-phone { background: #fff; padding: 4px; border: 1px solid rgba(41, 42, 77, .18); box-shadow: 0 14px 30px -20px rgba(41, 42, 77, .35); }
.dk-sampler .dk-phone__screen { border-radius: 18px; }
.dk-sampler .dk-frame { padding: 4px; border: 1px solid rgba(41, 42, 77, .18); box-shadow: 0 14px 30px -20px rgba(41, 42, 77, .35); }

/* "Where it had to sit": hard limits | the module | what it had to work with */
.dk-sit { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(12px, 1.6vw, 22px); align-items: stretch; }
.dk-sit > .dk-grid { grid-template-rows: auto 1fr 1fr; }
.dk-sit__hub { display: flex; align-items: center; gap: 10px; align-self: center; margin-top: 1.6rem; }
.dk-sit__hub .dk-panel { padding: clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 34px); text-align: center; }
.dk-sit__arrow { color: var(--acc); font-weight: 800; font-size: 1.35rem; }
@media (max-width: 900px) {
  .dk-sit { grid-template-columns: 1fr; }
  .dk-sit__hub { justify-content: center; margin: 0; }
  .dk-sit__arrow:first-child { transform: rotate(90deg); } .dk-sit__arrow:last-child { transform: rotate(90deg); }
}

/* "Who typically used": icon tiles, everything centred */
.dk-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.dk-role { display: grid; justify-items: center; align-content: start; gap: .5rem; text-align: center; min-height: 170px; padding-top: 34px; }
.dk-role__ic { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 6px 16px -10px rgba(41, 42, 77, .35); }
.dk-role h4 { margin: .2rem 0 0; }
.dk-role p { margin: -.2rem 0 0; }
@media (max-width: 900px) { .dk-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dk-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dk-role { min-height: 140px; } }

/* end of a case study: request the full walkthrough */
.dk-cta { display: flex; justify-content: flex-end; margin: calc(-1 * clamp(14px, 2vw, 32px)) 0 0; }
.dk-cta__btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 999px;
  font-size: .9375rem; font-weight: 700; color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(41, 42, 77, .16);
  box-shadow: 0 8px 20px -14px rgba(41, 42, 77, .4); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.dk-cta__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dk-cta__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------ pager */
.dk-pager {
  position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px;
  border-radius: 999px; background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px -14px rgba(41, 42, 77, .35);
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.dk-pager.is-on { transform: none; opacity: 1; }
.dk-pager button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: #fff; transition: background .25s var(--ease), opacity .25s var(--ease);
}
.dk-pager button:hover { background: var(--acc); }
.dk-pager button:disabled { opacity: .25; cursor: default; background: var(--ink); }
.dk-pager svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dk-pager__count { display: grid; justify-items: center; padding: 2px 0; font-size: .75rem; line-height: 1.15; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.dk-pager__count span { font-weight: 600; color: var(--ink-2); font-size: .6875rem; }

/* -------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .dk-flow--wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dk-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-eq { grid-template-columns: 1fr; justify-items: stretch; }
  .dk-eq__op { transform: rotate(90deg); }
  .dk-fan .dk-phone:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .dk-hero { padding-top: calc(var(--nav-h) + 2rem); }
  .dk-hero__stats { grid-template-columns: 1fr !important; }   /* beats per-page inline column splits */
  .dk-statgroup .dk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dk-statgroup--3 .dk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-media--sketch { grid-template-columns: 1fr; }
  .dk-body { grid-template-columns: minmax(0, 1fr); }
  /* the menu folds into one sticky bar with a native picker */
  .dk-menu { top: calc(var(--nav-h) + 8px); z-index: 40; }
  .dk-menu__hd, .dk-menu ol { display: none; }
  .dk-menu__sel {
    display: block; width: 100%; appearance: none; -webkit-appearance: none;
    font: 700 .9375rem/1.2 var(--font-body); color: var(--ink);
    padding: .8rem 2.6rem .8rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292A4D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 12px 30px -16px rgba(41, 42, 77, .35);
  }
  .dk-card { min-height: 0; transform: none; opacity: 1; }
  .dk-grid--2, .dk-grid--3, .dk-grid--side, .dk-compare, .dk-walk, .dk-media--2 { grid-template-columns: 1fr; }
  .dk-flow { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-flow--wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-showcase { --ph: clamp(150px, 30vw, 210px); }
}
@media (max-width: 560px) {
  .dk-sampler__desk { grid-template-columns: 1fr; }
  .dk-sampler__phones { flex-wrap: wrap; }
  .dk-sampler__phones .dk-phone { width: calc(50% - 8px); }
  .dk-grid--4, .dk-flow, .dk-flow--wrap { grid-template-columns: 1fr; }
  .dk-showcase { grid-template-columns: 1fr; justify-items: center; --ph: 200px; }
  .dk-showcase--many { --ph: 140px; }
  .dk-showcase .dk-browser { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dk-card { transform: none !important; opacity: 1 !important; }
  .dk-card.is-in .dk-scroll img { animation: none; }
  .dk-feature__in { transform: none; }
  .dk-hl, .dk-flow li, .dk-pager { transition: none; }
}

/* cursor: on these pages the big labelled disc is too much for a column of
   tightly spaced links, so over the menu, pager and walkthrough points it
   shrinks to a small accent dot */
@media (hover: hover) and (pointer: fine) {
  .cur.link.subtle { width: 12px; height: 12px; background: var(--acc); border-color: var(--acc); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cur.link.subtle span { opacity: 0; transition: none; }
  .cur.link.subtle::before, .cur.link.subtle::after { inset: -3px; }
}
