/* ==========================================================================
   Pikett · division demo "div-decks" (divisions/decks.html hero stage)
   A 3D stack of DOM slides for "Darn", a sample company made for this demo.
   1. Shell: toggle, counter, stack, ticks, caption (container queries on the stage)
   2. Storyline view
   3. Slide base: themes, type, motion primitives (live / static / reset)
   4. The nine slides
   5. States: intro, paused, reduced motion
   Geometry (slide size, stack position) is set by js/scenes/div-decks.js as
   --dk-w --dk-h --dk-l --dk-t --dk-bar --dk-story-t --dk-story-b --dk-hint.
   Every size inside a slide is in cqw of the slide, so a slide is laid out
   natively at any size (crisp type, identical line breaks).
   ========================================================================== */

/* 1. Shell ---------------------------------------------------------------- */
.dhero__stage > .scene[data-scene="div-decks"] { container: dkstage / size; }

.dk {
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --mint: #23D5A0; --orange: #FF5A1F; --ink: #0A0A0C; --paper: #F3F2EE;
  position: absolute; inset: 0; z-index: 1;
  font-family: var(--sans); color: var(--fg); text-align: left;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.dk *, .dk *::before, .dk *::after { box-sizing: border-box; }
.dk p, .dk ol { margin: 0; padding: 0; }

.dk__top {
  position: absolute; z-index: 6; left: 20px; right: 20px; top: 20px; height: 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: opacity .7s var(--ease) .25s;
}
.dk__seg {
  position: relative; display: inline-grid; grid-auto-flow: column; height: 34px; padding: 3px; border-radius: 999px;
  background: rgba(243, 242, 238, .06); box-shadow: inset 0 0 0 1px rgba(243, 242, 238, .1);
}
.dk__seg-th { position: absolute; left: 0; top: 3px; bottom: 3px; width: 50%; border-radius: 999px; background: var(--paper); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .7); will-change: transform, width; }
.dk__seg button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px 0 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; font-stretch: 110%; letter-spacing: -.005em; color: var(--fg-2); white-space: nowrap;
  transition: color .35s var(--ease);
}
.dk__seg button::before { /* tiny glyphs: a stack, a list */
  content: ""; flex: none; width: 10px; height: 8px; border-radius: 1.5px;
  box-shadow: inset 0 0 0 1.4px currentColor, 2px -2px 0 -.2px currentColor;
}
.dk__seg button[data-view="story"]::before {
  height: 7px; border-radius: 0; box-shadow: none;
  background: linear-gradient(currentColor 0 0) 0 0 / 100% 1.4px no-repeat, linear-gradient(currentColor 0 0) 0 50% / 70% 1.4px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 85% 1.4px no-repeat;
}
.dk__seg button.is-on { color: var(--ink); }
.dk__seg button:not(.is-on):hover { color: var(--fg); }
.dk__seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dk__count { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk__count b { font-weight: 400; color: var(--fg); }

/* the stack: only the slides take the pointer, so empty stage stays inert */
.dk__deck { position: absolute; inset: 0; z-index: 2; perspective: 1700px; outline: none; pointer-events: none; }
.dk__deck::before { /* the table: a soft contact shadow under the stack */
  content: ""; position: absolute; left: calc(var(--dk-l) + var(--dk-w) * .06); width: calc(var(--dk-w) * .88);
  top: calc(var(--dk-t) + var(--dk-h) * .9); height: calc(var(--dk-h) * .22);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), transparent); filter: blur(6px);
  transition: opacity .5s var(--ease);
}
.dk.is-story .dk__deck::before { opacity: 0; }
.dk__slide { pointer-events: auto; cursor: grab; touch-action: pan-y; }
.dk.is-dragging .dk__slide, .dk.is-dragging { cursor: grabbing; }
.dk__deck:focus-visible .dk__slide.is-top { outline: 2px solid var(--accent); outline-offset: 6px; }

.dk__bar {
  position: absolute; z-index: 6; left: var(--dk-l); width: var(--dk-w); top: var(--dk-bar); height: 36px;
  display: flex; align-items: center; gap: 8px;
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s 0s;
}
.dk.is-story .dk__bar { opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .3s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.dk__ticks { flex: 1 1 auto; display: flex; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.dk__tick { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: center; border-radius: 4px; }
.dk__tick i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(243, 242, 238, .16); transition: background-color .35s var(--ease), transform .5s var(--spring), box-shadow .35s var(--ease); }
.dk__tick:hover i { background: rgba(243, 242, 238, .42); }
.dk__tick.is-past i { background: color-mix(in srgb, var(--c, #23D5A0) 42%, transparent); }
.dk__tick.is-on i { background: var(--c, #23D5A0); transform: scaleY(1.8); box-shadow: 0 0 12px color-mix(in srgb, var(--c, #23D5A0) 70%, transparent); }
.dk__tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dk__nav {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(243, 242, 238, .2);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .5s var(--spring);
}
.dk__nav:first-of-type { margin-left: 6px; }
.dk__nav svg { width: 14px; height: 14px; }
.dk__nav--prev svg { transform: scaleX(-1); }
.dk__nav:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }
.dk__nav:active { transform: scale(.9); }
.dk__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.dk__cap {
  position: absolute; z-index: 6; right: 20px; bottom: 16px;
  font-family: var(--mono); font-size: 10.5px; line-height: 18px; letter-spacing: .02em; color: var(--fg-3); white-space: nowrap;
  transition: opacity .7s var(--ease) .4s;
}

@container dkstage (max-width: 559px) {
  .dk__top { left: 14px; right: 14px; top: 14px; }
  .dk__seg button { padding: 0 12px 0 11px; font-size: 12px; }
  .dk__cap { right: auto; left: 18px; bottom: calc(var(--dk-hint, 34px) + 2px); }
  .dk__ticks { gap: 3px; }
  .dk__nav { width: 34px; height: 34px; }
}

/* 2. Storyline ------------------------------------------------------------- */
.dk__story {
  position: absolute; z-index: 4; left: 20px; right: 20px; top: var(--dk-story-t); bottom: var(--dk-story-b);
  list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(9, minmax(0, 1fr)); gap: 4px;
  visibility: hidden; pointer-events: none; counter-reset: none;
}
.dk.is-story .dk__story { visibility: visible; pointer-events: auto; }
.dk__story li { min-height: 0; }
.dk__row {
  position: relative; width: 100%; height: 100%;
  display: grid; grid-template-columns: 22px auto minmax(0, 1fr); align-items: center; column-gap: 14px;
  padding: 3px 12px 3px 8px; border-radius: 10px; text-align: left; color: var(--fg-2);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.dk__row::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; border-radius: 2px; background: var(--c, #23D5A0); transform: scaleY(0); transition: transform .45s var(--ease); }
.dk__row:hover { background: rgba(243, 242, 238, .045); color: var(--fg); }
.dk__row.is-cur { background: rgba(243, 242, 238, .07); color: var(--fg); }
.dk__row.is-cur::before { transform: none; }
.dk__row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dk__no { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--fg-3); }
.dk__row.is-cur .dk__no { color: var(--c, #23D5A0); }
.dk__thumb { display: block; height: calc(100% - 2px); aspect-ratio: var(--dk-ar, 1.7778); border-radius: 4px; }
.dk__line { font-size: clamp(12px, 2.05cqw, 17px); line-height: 1.28; font-weight: 500; font-stretch: 102%; letter-spacing: -.008em; text-wrap: pretty; }
/* the sentences arrive after their slides have shrunk into place */
.dk__no, .dk__line { opacity: 0; transform: translate3d(16px, 0, 0); transition: opacity .25s var(--ease), transform .4s var(--ease); }
.dk.is-story .dk__no, .dk.is-story .dk__line { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(.16s + var(--i) * .04s); }
.dk.is-story .dk__slide { pointer-events: none; cursor: default; }
@container dkstage (max-width: 559px) {
  .dk__story { left: 10px; right: 10px; gap: 3px; }
  .dk__row { grid-template-columns: 18px auto minmax(0, 1fr); column-gap: 10px; padding: 2px 8px 2px 6px; border-radius: 8px; }
  .dk__no { font-size: 10px; }
  .dk__line { font-size: 12px; line-height: 1.25; }
}

/* 3. Slide base ------------------------------------------------------------ */
.dk-s {
  --sbg: var(--paper); --sfg: var(--ink); --sfg2: rgba(10, 10, 12, .6); --sline: rgba(10, 10, 12, .14); --sacc: var(--orange);
  position: absolute; left: var(--dk-l); top: var(--dk-t); width: var(--dk-w); height: var(--dk-h);
  container-type: inline-size;
  overflow: hidden; isolation: isolate;
  border-radius: calc(var(--dk-w) * .012);
  background: var(--sbg); color: var(--sfg);
  transform-origin: 50% 50%; backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(243, 242, 238, .07), 0 calc(var(--dk-h) * .05) calc(var(--dk-h) * .14) calc(var(--dk-h) * -.05) rgba(0, 0, 0, .8);
  font-family: var(--sans); font-size: 2cqw; line-height: 1.3; font-stretch: 100%; font-weight: 400; letter-spacing: 0; text-align: left;
}
.dk-s::before { /* sheen: light catches the card while it turns */
  content: ""; position: absolute; inset: 0; z-index: 19; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .26) 47%, rgba(255, 255, 255, .06) 55%, transparent 66%) var(--gx, 50%) 0 / 260% 100% no-repeat;
  opacity: var(--gl, 0); mix-blend-mode: screen;
}
.dk-s::after { /* depth: cards further back are darker */
  content: ""; position: absolute; inset: 0; z-index: 20; border-radius: inherit; pointer-events: none;
  background: #050507; opacity: var(--shade, 0);
}
.dk-s--paper { --sbg: var(--paper); --sfg: var(--ink); --sfg2: rgba(10, 10, 12, .58); --sline: rgba(10, 10, 12, .13); --sacc: var(--orange); }
.dk-s--dark { --sbg: #17171C; --sfg: var(--paper); --sfg2: rgba(243, 242, 238, .58); --sline: rgba(243, 242, 238, .12); --sacc: var(--mint); }
.dk-s--mint { --sbg: var(--mint); --sfg: var(--ink); --sfg2: rgba(10, 10, 12, .62); --sline: rgba(10, 10, 12, .16); --sacc: var(--ink); }
.dk-s--orange { --sbg: var(--orange); --sfg: var(--ink); --sfg2: rgba(10, 10, 12, .66); --sline: rgba(10, 10, 12, .2); --sacc: var(--ink); }
.dk-s--dark { box-shadow: 0 0 0 1px rgba(243, 242, 238, .1), 0 calc(var(--dk-h) * .05) calc(var(--dk-h) * .14) calc(var(--dk-h) * -.05) rgba(0, 0, 0, .8); }
.dk-s__in { position: absolute; inset: 0; }

.dk-kick {
  position: absolute; left: 5.2cqw; top: 4.4cqw; display: flex; align-items: center; gap: .9em;
  font-family: var(--mono); font-size: max(1.45cqw, 5.5px); line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--sfg2);
}
.dk-kick::before { content: ""; width: .75em; height: .75em; border-radius: 50%; background: var(--sacc); }
.dk-h {
  position: absolute; left: 5.2cqw; top: 11.2cqw;
  font-size: 6cqw; font-weight: 780; font-stretch: 112%; letter-spacing: -.035em; line-height: .95; color: var(--sfg);
}
.dk-l { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.dk-l > span { display: block; white-space: nowrap; transform: translate3d(0, 110%, 0); transition: transform 1s var(--ease); transition-delay: calc(.12s + var(--li, 0) * .08s); }
.dk-sub { position: absolute; font-size: max(1.75cqw, 6px); line-height: 1.38; font-weight: 450; color: var(--sfg2); text-wrap: balance; }
.dk-in { opacity: 0; transform: translate3d(0, 1.2cqw, 0); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, .3) * 1s); }
.dk-num { font-variant-numeric: tabular-nums; }
.dk-foot {
  position: absolute; left: 5.2cqw; right: 5.2cqw; bottom: 3.3cqw; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: max(1.2cqw, 4.5px); line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--sfg2);
}
@container (max-width: 430px) {
  .dk-foot { display: none; }
}

/* live: set as it lands · static: final state, no motion · reset: back to the start at once */
.dk-s:is(.is-live, .is-static) .dk-l > span,
.dk-s:is(.is-live, .is-static) .dk-in { transform: none; opacity: 1; }
.dk-s.is-static *, .dk-s.is-static *::before, .dk-s.is-static *::after,
.dk-s.is-reset *, .dk-s.is-reset *::before, .dk-s.is-reset *::after { transition: none !important; }
.dk-s.is-reset * { animation: none !important; }

/* 4. The slides -------------------------------------------------------------- */

/* 01 cover */
.dk-cover__top { position: absolute; left: 5.2cqw; right: 5.2cqw; top: 4.2cqw; display: flex; align-items: center; justify-content: space-between; }
.dk-logo { display: inline-flex; align-items: center; gap: .85cqw; font-size: 3.1cqw; line-height: 1; }
.dk-logo svg { width: 3.3cqw; height: 3.3cqw; fill: currentColor; }
.dk-logo b { font-weight: 800; font-stretch: 125%; letter-spacing: -.045em; }
.dk-tag {
  font-family: var(--mono); font-size: max(1.15cqw, 5px); line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  padding: .7cqw 1.2cqw; border-radius: 99px; box-shadow: inset 0 0 0 max(1px, .12cqw) currentColor;
}
.dk-cover__h { top: auto; bottom: 8.6cqw; font-size: 6.6cqw; }
.dk-cover__art {
  position: absolute; right: -15cqw; top: 1.5cqw; width: 60cqw; height: 60cqw; overflow: visible; z-index: -1;
  opacity: 0; transform: rotate(-30deg) scale(.9); transform-origin: 67% 50%;
  transition: opacity .6s var(--ease) .15s, transform 1.4s var(--ease) .15s;
}
.dk-cover__btn { fill: #1BBE8E; }
.dk-cover__rim { fill: none; stroke: rgba(10, 10, 12, .2); stroke-width: 2.5; }
.dk-cover__hole { fill: var(--ink); }
.dk-cover__thread { fill: none; stroke: var(--ink); stroke-width: 4.2; stroke-linecap: round; stroke-dasharray: 13 9; }
.dk-cover__draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-io) .45s; }
.dk-s:is(.is-live, .is-static) .dk-cover__art { opacity: 1; transform: none; }
.dk-s:is(.is-live, .is-static) .dk-cover__draw { stroke-dashoffset: 0; }

/* 02 problem */
.dk-prob__h { font-size: 6.1cqw; }
.dk-prob__sub { left: 5.2cqw; top: 35.6cqw; max-width: 31cqw; }
.dk-prob__btn { position: absolute; right: 4cqw; top: 6.5cqw; width: 40cqw; height: 40cqw; overflow: visible; }
.dk-prob__spin {
  transform-box: fill-box; transform-origin: 50% 50%;
  opacity: 0; transform: rotate(-160deg) scale(.55);
  transition: transform 1.25s cubic-bezier(.3, 1.35, .55, 1) .2s, opacity .35s var(--ease) .2s;
}
.dk-prob__body { fill: var(--orange); }
.dk-prob__rim { fill: none; stroke: rgba(10, 10, 12, .18); stroke-width: 3; }
.dk-prob__hole { fill: var(--paper); }
.dk-prob__thread { fill: none; stroke: var(--ink); stroke-width: 4.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) .95s; }
.dk-s:is(.is-live, .is-static) .dk-prob__spin { opacity: 1; transform: none; }
.dk-s:is(.is-live, .is-static) .dk-prob__thread { stroke-dashoffset: 0; }

/* 03 why it happens */
.dk-why__h { font-size: 5.3cqw; }
.dk-bars { position: absolute; left: 5.2cqw; right: 5.2cqw; top: 28.6cqw; display: grid; gap: 2.7cqw; }
.dk-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 1cqw; align-items: end; }
.dk-bar__l { grid-area: 1 / 1; font-family: var(--mono); font-size: max(1.25cqw, 5px); line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--sfg2); }
.dk-bar__v { grid-area: 1 / 2; font-size: 2.3cqw; line-height: 1; font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; }
.dk-bar__t { grid-area: 2 / 1 / 3 / 3; height: 3.4cqw; border-radius: 99px; background: var(--sline); overflow: hidden; }
.dk-bar__t i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--mint); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease); transition-delay: calc(var(--d) * 1s); }
.dk-bar--hot .dk-bar__t i { background: var(--orange); }
.dk-bar .dk-bar__v { opacity: 0; transition: opacity .6s var(--ease); transition-delay: calc(var(--d) * 1s + .5s); }
.dk-s:is(.is-live, .is-static) .dk-bar__t i { transform: none; }
.dk-s:is(.is-live, .is-static) .dk-bar__v { opacity: 1; }

/* 04 how it works */
.dk-how__h { font-size: 6cqw; }
.dk-steps { position: absolute; left: 5.2cqw; right: 5.2cqw; top: 30.5cqw; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.2cqw; }
.dk-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; align-content: start; column-gap: 1.2cqw; row-gap: 1.5cqw; padding-top: 2cqw; }
.dk-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: max(1px, .14cqw); background: var(--sfg); opacity: .85; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease); transition-delay: calc(var(--d) * 1s); }
.dk-ico { width: 4.4cqw; height: 4.4cqw; fill: none; stroke: var(--sfg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dk-ico > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-io); transition-delay: calc(var(--d) * 1s + .2s); }
.dk-steps b { justify-self: end; font-family: var(--mono); font-weight: 400; font-size: max(1.25cqw, 5px); letter-spacing: .06em; color: var(--orange); }
.dk-steps span { grid-column: 1 / -1; font-size: 2.15cqw; line-height: 1.2; font-weight: 600; font-stretch: 108%; letter-spacing: -.012em; opacity: 0; transform: translate3d(0, 1cqw, 0); transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d) * 1s + .25s); }
.dk-s:is(.is-live, .is-static) .dk-steps li::before { transform: none; }
.dk-s:is(.is-live, .is-static) .dk-ico > * { stroke-dashoffset: 0; }
.dk-s:is(.is-live, .is-static) .dk-steps span { opacity: 1; transform: none; }

/* 05 traction */
.dk-trac__fig { position: absolute; left: 5.2cqw; top: 11.4cqw; display: grid; gap: 1cqw; }
.dk-trac__fig .dk-num { font-size: 11cqw; line-height: .84; font-weight: 800; font-stretch: 118%; letter-spacing: -.05em; color: var(--mint); }
.dk-trac__fig span { font-size: 2.2cqw; font-weight: 600; font-stretch: 108%; letter-spacing: -.01em; }
.dk-trac__sub { left: 5.2cqw; top: 31cqw; max-width: 24cqw; }
.dk-chart { position: absolute; right: 5.2cqw; top: 9.6cqw; width: 54cqw; height: auto; aspect-ratio: 600 / 360; overflow: visible; }
.dk-chart__grid line { stroke: var(--sline); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.dk-chart__area { opacity: 0; transition: opacity 1s var(--ease) 1.25s; }
.dk-chart__line { fill: none; stroke: var(--mint); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s var(--ease-io) .35s; }
.dk-chart__dot { fill: var(--mint); stroke: #17171C; stroke-width: 3.5; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); transition: transform .6s var(--spring) 1.95s; }
.dk-chart__ping { fill: none; stroke: var(--mint); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.dk-chart__lab { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; fill: var(--sfg2); }
.dk-s:is(.is-live, .is-static) .dk-chart__area { opacity: 1; }
.dk-s:is(.is-live, .is-static) .dk-chart__line { stroke-dashoffset: 0; }
.dk-s:is(.is-live, .is-static) .dk-chart__dot { transform: none; }
.dk-s.is-live .dk-chart__ping { animation: dk-ping 2.2s var(--ease) 2.4s infinite; }
@keyframes dk-ping { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.4); } }
@container (max-width: 430px) { .dk-chart__lab { display: none; } }

/* 06 retention */
.dk-ret__h { font-size: 7.4cqw; }
.dk-ret__sub { left: 5.2cqw; top: 31.5cqw; max-width: 29cqw; font-size: max(2.05cqw, 6.5px); font-weight: 560; color: var(--sfg); }
.dk-ring { position: absolute; right: 7.5cqw; top: 7.8cqw; width: 37cqw; height: 37cqw; display: grid; place-items: center; }
.dk-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.dk-ring__track { fill: none; stroke: rgba(10, 10, 12, .12); stroke-width: 20; }
.dk-ring__arc { fill: none; stroke: var(--ink); stroke-width: 20; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) .4s; }
.dk-ring .dk-num { position: relative; font-size: 8.4cqw; line-height: 1; font-weight: 800; font-stretch: 118%; letter-spacing: -.05em; }
.dk-s:is(.is-live, .is-static) .dk-ring__arc { stroke-dashoffset: 36; }

/* 07 business model */
.dk-model__h { font-size: 5.6cqw; }
.dk-split { position: absolute; left: 5.2cqw; right: 5.2cqw; top: 30.5cqw; display: flex; gap: .6cqw; }
.dk-split__s { flex: var(--v) 1 0; min-width: 0; display: grid; grid-template-rows: auto auto auto; row-gap: 1.1cqw; }
.dk-split__s span { font-family: var(--mono); font-size: max(1.2cqw, 5px); line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--sfg2); white-space: nowrap; }
.dk-split__s i { display: block; height: 5.6cqw; border-radius: .5cqw; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease); transition-delay: calc(var(--d) * 1s); }
.dk-split__s--b i { background: var(--orange); }
.dk-split__s--c i { background: var(--mint); }
.dk-split__s .dk-num { font-size: 3.5cqw; line-height: 1; font-weight: 800; font-stretch: 115%; letter-spacing: -.035em; }
.dk-note { position: absolute; left: 5.2cqw; top: 47.2cqw; font-family: var(--mono); font-size: max(1.1cqw, 5px); letter-spacing: .06em; text-transform: uppercase; color: var(--sfg2); }
.dk-s:is(.is-live, .is-static) .dk-split__s i { transform: none; }
@container (max-width: 430px) { .dk-note { display: none; } }

/* 08 next */
.dk-next__h { font-size: 5.4cqw; }
.dk-dots { position: absolute; left: 5.2cqw; right: 5.2cqw; top: 31cqw; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 1.35cqw; }
.dk-dots i {
  display: block; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 0 0 0 max(1px, .26cqw) rgba(243, 242, 238, .32);
  transform: scale(0); transition: transform .65s var(--spring); transition-delay: calc(.5s + var(--i) * .05s);
}
.dk-dots i.is-on { background: var(--mint); box-shadow: 0 0 2.4cqw rgba(35, 213, 160, .42); transition-delay: calc(.35s + var(--i) * .09s); }
.dk-legend { position: absolute; left: 5.2cqw; top: 40.6cqw; display: flex; gap: 3.4cqw; font-family: var(--mono); font-size: max(1.2cqw, 5px); line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--sfg2); }
.dk-legend span { display: inline-flex; align-items: center; gap: .8cqw; }
.dk-legend i { width: 1.15cqw; height: 1.15cqw; border-radius: 50%; box-shadow: inset 0 0 0 max(1px, .16cqw) rgba(243, 242, 238, .5); }
.dk-legend i.is-on { background: var(--mint); box-shadow: none; }
.dk-s:is(.is-live, .is-static) .dk-dots i { transform: none; }

/* 09 the ask */
.dk-ask__h { font-size: 6.2cqw; }
.dk-ask__sub { left: 5.2cqw; top: 35.4cqw; max-width: 30cqw; color: var(--sfg); font-weight: 550; }
.dk-use { position: absolute; right: 5.2cqw; top: 11.4cqw; width: 37cqw; display: grid; gap: 2.2cqw; }
.dk-use__h { padding-bottom: 1.3cqw; border-bottom: max(1px, .12cqw) solid var(--sline); font-family: var(--mono); font-size: max(1.2cqw, 5px); line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--sfg2); }
.dk-use__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: .9cqw; align-items: end; }
.dk-use__r span { grid-area: 1 / 1; font-size: 1.85cqw; line-height: 1.1; font-weight: 600; font-stretch: 108%; letter-spacing: -.01em; }
.dk-use__r .dk-num { grid-area: 1 / 2; font-size: 3.1cqw; line-height: .9; font-weight: 800; font-stretch: 115%; letter-spacing: -.035em; }
.dk-use__r i { grid-area: 2 / 1 / 3 / 3; position: relative; height: 1.5cqw; border-radius: 99px; background: rgba(10, 10, 12, .16); overflow: hidden; }
.dk-use__r i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1.9%); border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease); transition-delay: calc(var(--d) * 1s); }
.dk-s:is(.is-live, .is-static) .dk-use__r i::after { transform: none; }

/* 4b. Phones: the deck set portrait --------------------------------------------
   One column, top to bottom: kicker, headline, the point, the visual, the footer.
   Every size is in cqw of a ~330 px slide, so nothing drops under 10 px. */
.dk.is-portrait .dk-s__in { display: flex; flex-direction: column; padding: 7.5cqw 7cqw 6cqw; }
.dk.is-portrait .dk-s__in > :not(.dk-cover__art) { position: relative; inset: auto; max-width: none; flex: none; }
.dk.is-portrait .dk-kick { font-size: 3.3cqw; gap: 2.4cqw; }
.dk.is-portrait .dk-s .dk-h { margin-top: 5cqw; font-size: 9.4cqw; line-height: .96; }
.dk.is-portrait .dk-l > span { white-space: normal; text-wrap: balance; }
.dk.is-portrait .dk-sub { margin-top: 4cqw; font-size: 4.3cqw; line-height: 1.36; }
.dk.is-portrait .dk-foot { display: flex; margin-top: auto; padding-top: 4cqw; font-size: 2.9cqw; }
.dk.is-portrait .dk-s__in > :nth-last-child(2) { margin-bottom: 1cqw; }

/* 01 cover */
.dk.is-portrait .dk-cover__top { display: flex; }
.dk.is-portrait .dk-logo { font-size: 7.4cqw; gap: 2cqw; }
.dk.is-portrait .dk-logo svg { width: 7.8cqw; height: 7.8cqw; }
.dk.is-portrait .dk-tag { font-size: 2.8cqw; padding: 1.6cqw 2.8cqw; }
.dk.is-portrait .dk-s .dk-cover__h { margin-top: auto; font-size: 11.6cqw; }
.dk.is-portrait .dk-cover__art { right: -22cqw; top: -6cqw; width: 100cqw; height: 100cqw; }
.dk.is-portrait .dk-cover__thread { display: none; }
/* 02 problem */
.dk.is-portrait .dk-prob__btn { width: 52cqw; height: 52cqw; margin: auto 0 0 auto; }
/* 03 why */
.dk.is-portrait .dk-bars { margin-top: auto; gap: 6cqw; }
.dk.is-portrait .dk-bar { row-gap: 2.4cqw; }
.dk.is-portrait .dk-bar__l { font-size: 2.9cqw; line-height: 1.25; }
.dk.is-portrait .dk-bar__v { font-size: 5.2cqw; }
.dk.is-portrait .dk-bar__t { height: 6.4cqw; }
/* 04 how */
.dk.is-portrait .dk-steps { margin-top: auto; grid-template-columns: minmax(0, 1fr); gap: 3.5cqw; }
.dk.is-portrait .dk-steps li { grid-template-columns: 9cqw minmax(0, 1fr) auto; align-items: center; column-gap: 3.6cqw; row-gap: 0; padding-top: 3.5cqw; }
.dk.is-portrait .dk-ico { width: 8.6cqw; height: 8.6cqw; grid-row: 1; grid-column: 1; }
.dk.is-portrait .dk-steps span { grid-row: 1; grid-column: 2; font-size: 4.7cqw; }
.dk.is-portrait .dk-steps b { grid-row: 1; grid-column: 3; font-size: 3cqw; }
/* 05 traction */
.dk.is-portrait .dk-trac__fig { margin-top: 5cqw; gap: 2.4cqw; }
.dk.is-portrait .dk-trac__fig .dk-num { font-size: 22cqw; }
.dk.is-portrait .dk-trac__fig span { font-size: 4.6cqw; }
.dk.is-portrait .dk-trac__sub { margin-top: 3cqw; }
.dk.is-portrait .dk-chart { width: 100%; margin-top: auto; }
/* 06 retention */
.dk.is-portrait .dk-s .dk-ret__h { font-size: 11cqw; }
.dk.is-portrait .dk-ret__sub { font-size: 4.5cqw; }
.dk.is-portrait .dk-ring { width: 50cqw; height: 50cqw; margin: auto 0 0 auto; }
.dk.is-portrait .dk-ring .dk-num { font-size: 12cqw; }
/* 07 business model */
.dk.is-portrait .dk-split { margin-top: auto; gap: 1.4cqw; }
.dk.is-portrait .dk-split__s { row-gap: 2.4cqw; }
.dk.is-portrait .dk-split__s span { font-size: 2.7cqw; letter-spacing: .04em; }
.dk.is-portrait .dk-split__s i { height: 13cqw; border-radius: 1.4cqw; }
.dk.is-portrait .dk-split__s .dk-num { font-size: 6.6cqw; }
.dk.is-portrait .dk-note { display: block; margin-top: 3.4cqw; font-size: 2.8cqw; }
/* 08 next */
.dk.is-portrait .dk-dots { margin-top: auto; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3.4cqw 4.6cqw; width: 78%; }
.dk.is-portrait .dk-dots i { box-shadow: inset 0 0 0 max(1px, .55cqw) rgba(243, 242, 238, .32); }
.dk.is-portrait .dk-dots i.is-on { box-shadow: 0 0 5cqw rgba(35, 213, 160, .42); }
.dk.is-portrait .dk-legend { margin-top: 5cqw; gap: 6cqw; font-size: 3cqw; }
.dk.is-portrait .dk-legend span { gap: 2cqw; }
.dk.is-portrait .dk-legend i { width: 2.6cqw; height: 2.6cqw; }
/* 09 the ask */
.dk.is-portrait .dk-use { width: 100%; margin-top: auto; gap: 3.6cqw; }
.dk.is-portrait .dk-use__h { font-size: 2.9cqw; padding-bottom: 2.4cqw; }
.dk.is-portrait .dk-use__r { row-gap: 1.8cqw; }
.dk.is-portrait .dk-use__r span { font-size: 4.2cqw; }
.dk.is-portrait .dk-use__r .dk-num { font-size: 6.4cqw; }
.dk.is-portrait .dk-use__r i { height: 2.6cqw; }

/* 5. States ------------------------------------------------------------------ */
.dk.is-pre .dk__slide, .dk.is-pre .dk__top, .dk.is-pre .dk__bar, .dk.is-pre .dk__cap { opacity: 0; }
.dk.is-pre .dk__deck::before { opacity: 0; }

/* off screen or hidden tab: nothing animates */
.dk.is-paused *, .dk.is-paused *::before, .dk.is-paused *::after,
.dk.is-hidden-tab *, .dk.is-hidden-tab *::before, .dk.is-hidden-tab *::after { animation-play-state: paused !important; }

/* reduced motion: cuts, and content that is simply there */
.dk.is-reduced *, .dk.is-reduced *::before, .dk.is-reduced *::after { transition: none !important; animation: none !important; }
