/* Ink countdown · Luxe: INV-14 Ink & Gold · Luxe. On the one bright sheet: the flower divider (a pen line drawn by
   the scroll, once, its foil hairlines with it), the label as the kicker, the engine's days, hours and minutes (it
   ticks in runtime.js) in Young Serif lining numerals between 1 px ink hairlines at 60 % of the numeral height; seconds
   hidden; after the day the done line. The hairlines draw from their centres, then the numerals rise and roll in
   like a watch wheel (and turn over at each tick); a fine pen flourish draws under the row with the scroll. Laptops: a wider
   row with larger numerals. Before-states only under html.kjy-fx:not(.kjy-lite). */
.cd014 { --cd014-u: var(--k-ig-u, 1px); --cd014-h: 1; --cd014-dh: 1; --cd014-ds: 1; --cd014-num: clamp(40px, 13cqw, 60px);
  /* the countdown sits between two dividers, so it takes 124 px x k to each neighbour */
  padding: calc(var(--cd014-u) * 124 - var(--k-ig-gap, 72px) / 2) 0; color: var(--k-ink, #38342C); text-align: center; }
.cd014 .cd014__div::before, .cd014 .cd014__div::after { transform: scaleX(var(--cd014-dh)); }
.cd014 .cd014__div > i { opacity: var(--cd014-ds); }
.cd014 .kjy-countdown__label { margin: 0 auto calc(var(--cd014-u) * 18); max-inline-size: 26em; text-wrap: balance;
  font: 500 11px/1.5 var(--k-font-caps, "Montserrat", system-ui, sans-serif); letter-spacing: .30em; padding-left: .30em; text-transform: uppercase; color: var(--k-ink-soft, #5C564C); }
.cd014 .kjy-countdown__units { display: flex; justify-content: center; }
.cd014 .kjy-unit { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 clamp(16px, 6cqw, 36px); }
.cd014 .kjy-unit + .kjy-unit::before { content: ""; position: absolute; left: 0; top: calc(var(--cd014-num) * .2); width: 1px;
  height: calc(var(--cd014-num) * .6); background: var(--k-ink, #38342C); transform: scaleY(var(--cd014-h)); transform-origin: 50% 50%; }
.cd014 .kjy-unit:has([data-unit="s"]) { display: none; }
.cd014 .kjy-unit__n { font: 400 var(--cd014-num)/1 var(--k-font-display, "Young Serif", Georgia, serif); font-variant-numeric: lining-nums tabular-nums; color: var(--k-ink, #38342C); }
.cd014 .kjy-unit__l { margin-top: calc(var(--cd014-u) * 10); font: 500 10.5px/1 var(--k-font-caps, "Montserrat", system-ui, sans-serif); letter-spacing: .24em; padding-left: .24em;
  text-transform: uppercase; color: var(--k-ink-soft, #5C564C); }
.cd014 .kjy-countdown__done { margin: 0; font: 400 calc(var(--cd014-u) * 44)/1.1 var(--k-font-script, "Allison", cursive); color: var(--k-ink, #38342C); }

/* the flower divider (the stencil; the pen draws over it) */
.cd014 .cd014__div { position: relative; display: block; margin: 0 auto calc(var(--k-ig-u, 1px) * 36); width: calc(var(--k-ig-u, 1px) * 210); aspect-ratio: 6.5449; }
.cd014 .cd014__div > i { position: absolute; inset: 0; -webkit-mask: linear-gradient(#0000, #0000) center / contain no-repeat; mask: linear-gradient(#0000, #0000) center / contain no-repeat; background: var(--k-ig-line, #1A1816); }
html:not(.js) .cd014 .cd014__div > i, html.kjy-opening .cd014 .cd014__div > i { -webkit-mask-image: url("/skins/ink_gold/assets/art/divider-lines.webp"); mask-image: url("/skins/ink_gold/assets/art/divider-lines.webp"); }
.cd014 .cd014__div > i + i { background: var(--k-ig-foil, linear-gradient(118deg, #8E6C42 0%, #B8935F 22%, #E9CA93 40%, #B8935F 58%, #E9CA93 76%, #8E6C42 100%)); }
html:not(.js) .cd014 .cd014__div > i + i, html.kjy-opening .cd014 .cd014__div > i + i { -webkit-mask-image: url("/skins/ink_gold/assets/art/divider-fills.svg"); mask-image: url("/skins/ink_gold/assets/art/divider-fills.svg"); }
.cd014 .cd014__div::before, .cd014 .cd014__div::after { content: ""; position: absolute; top: calc(50% - .5px); width: calc(var(--k-ig-u, 1px) * 64); height: 1px; }
.cd014 .cd014__div::before { right: calc(100% + var(--k-ig-u, 1px) * 12); background: linear-gradient(90deg, transparent, var(--k-ig-metal, #B8935F)); transform-origin: 100% 50%; }
.cd014 .cd014__div::after { left: calc(100% + var(--k-ig-u, 1px) * 12); background: linear-gradient(270deg, transparent, var(--k-ig-metal, #B8935F)); transform-origin: 0 50%; }
@media (min-aspect-ratio: 1/1) {
  .cd014 .cd014__div { width: calc(var(--k-ig-u, 1px) * 240); }
  .cd014 .cd014__div::before, .cd014 .cd014__div::after { width: calc(var(--k-ig-u, 1px) * 170); }
}

/* the print entrance (section.js) */
html.kjy-fx:not(.kjy-lite) .cd014 { --cd014-h: 0; --cd014-dh: 0; --cd014-ds: 0; }
html.kjy-fx:not(.kjy-lite) .cd014 .kjy-countdown__label,
html.kjy-fx:not(.kjy-lite) .cd014 .kjy-unit,
html.kjy-fx:not(.kjy-lite) .cd014 .kjy-countdown__done { opacity: 0; transform: translateY(6px); }
/* the pen lines (section.js) sit over the stencils they replace; the stencils come back if no pen arrives in 3 s */
.cd014 .cd014__pen { position: absolute; inset: 0; width: 100%; height: 100%; }
html.js:not(.motion-reduce) .cd014 [data-cd014-pen].is-pen-wait:not(.is-pen) > i { opacity: 0; animation: cd014-fb .4s ease 3s both; }
html.js:not(.motion-reduce) .cd014 [data-cd014-pen].is-pen > i { display: none; }
@keyframes cd014-fb { from { opacity: 0; } to { opacity: 1; } }
/* laptops: a wider row (at most 720 px), numerals 30 % larger, a wider divider */
@media (min-aspect-ratio: 5/4) and (min-width: 1100px) {
  html .cd014 { width: min(var(--k-igl-frame, 90vw), 720px); --cd014-num: 78px; }
  .cd014 .kjy-unit { padding: 0 48px; }
  .cd014 .kjy-unit__l { font-size: 12px; }
  .cd014 .kjy-countdown__label { font-size: 12px; }
  .cd014 .cd014__div { width: calc(var(--k-ig-u, 1px) * 300); }
  .cd014 .cd014__div::before, .cd014 .cd014__div::after { width: calc(var(--k-ig-u, 1px) * 220); }
}
/* the watch wheel (section.js wraps each number in a window): on arrival each number rolls through its last two values,
   later ticks turn it over; the window clips only while a number rolls, the clones are aria-hidden copies */
.cd014 { --cd014-t: 220ms; --cd014-e: cubic-bezier(.45, 0, .25, 1); }
.cd014.is-done { --cd014-t: 480ms; --cd014-e: var(--k-ease, cubic-bezier(.22, 1, .36, 1)); }
.cd014 .cd014-roll { position: relative; display: flex; justify-content: center; line-height: 1; }
.cd014 .cd014-roll.is-clip { clip-path: inset(0 -.6em); }
.cd014 .cd014-roll.is-wait > [data-unit] { color: transparent; }
.cd014 .cd014-was { position: absolute; inset: 0; text-align: center; white-space: nowrap; pointer-events: none; }
.cd014 .cd014-roll .is-up { animation: cd014-in var(--cd014-t) var(--cd014-e) both; }
.cd014 .cd014-roll .is-out { animation: cd014-out var(--cd014-t) var(--cd014-e) both; }
@keyframes cd014-in { from { transform: translateY(1em); } to { transform: translateY(0); } }
@keyframes cd014-out { from { transform: translateY(0); } to { transform: translateY(-1em); } }
/* the flourish under the row: the divider drawing at the small line weight and less detail */
.cd014 .cd014__fl { position: relative; display: block; margin: calc(var(--cd014-u) * 22) auto 0; width: calc(var(--cd014-u) * 160); aspect-ratio: 6.5449; }
.cd014 .cd014__fl > i { position: absolute; inset: 0; -webkit-mask: linear-gradient(#0000, #0000) center / contain no-repeat; mask: linear-gradient(#0000, #0000) center / contain no-repeat; background: var(--k-ig-line, #1A1816); }
html:not(.js) .cd014 .cd014__fl > i, html.kjy-opening .cd014 .cd014__fl > i { -webkit-mask-image: url("/skins/ink_gold/assets/art/divider-lines.webp"); mask-image: url("/skins/ink_gold/assets/art/divider-lines.webp"); }
.cd014 .cd014__fl > i + i { background: var(--k-ig-foil, linear-gradient(118deg, #8E6C42 0%, #B8935F 22%, #E9CA93 40%, #B8935F 58%, #E9CA93 76%, #8E6C42 100%)); }
html:not(.js) .cd014 .cd014__fl > i + i, html.kjy-opening .cd014 .cd014__fl > i + i { -webkit-mask-image: url("/skins/ink_gold/assets/art/divider-fills.svg"); mask-image: url("/skins/ink_gold/assets/art/divider-fills.svg"); }
/* more air before and after the divider */
.cd014 .cd014__div { margin-top: calc(var(--k-ig-gap, 72px) / 2 * (var(--k-igl-air, 1.6) - 1)); margin-bottom: calc(var(--k-ig-u, 1px) * 36 * var(--k-igl-air, 1.6)); }
@media (min-aspect-ratio: 5/4) and (min-width: 1100px) {
  .cd014 .cd014__fl { width: calc(var(--cd014-u) * 220); }
}
/* a fine gold line under the numbers fills from the centre each minute, in time with the clock, while the countdown is on
   screen; still: the whole line, softer */
.cd014 .cd014__min { display: block; width: min(86%, calc(var(--cd014-u) * 300)); height: 1px; margin: calc(var(--cd014-u) * 18) auto 0; opacity: .55;
  background: linear-gradient(90deg, transparent, var(--k-ig-metal, #B8935F) 18%, var(--k-ig-foil-hi, #E9CA93) 50%, var(--k-ig-metal, #B8935F) 82%, transparent); }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .cd014 .cd014__min { opacity: 1; transform: scaleX(0); }
html.kjy-fx:not(.kjy-lite):not(.motion-reduce) .cd014.is-tick .cd014__min { animation: cd014-min 60s linear infinite; }
.cd014:has(.kjy-countdown__done:not([hidden])) .cd014__min { display: none; }
@keyframes cd014-min { from { transform: scaleX(0); } to { transform: scaleX(1); } }
