/* Cinematic kit styles (see kit.js). Colours come from the page: --kit-ink (the curtain) defaults to the text colour. */
.kit-wipe{position:fixed;inset:0;z-index:2147481000;pointer-events:none;background:var(--kit-ink);transform:scaleY(0);transform-origin:bottom}
.kit-wipe.closing{transform:scaleY(1);transition:transform .55s cubic-bezier(.76,0,.24,1)}
.kit-wipe.shut{transform:scaleY(1);transition:none}
.kit-wipe.open{transform:scaleY(0);transform-origin:top;transition:transform .7s cubic-bezier(.76,0,.24,1) .05s}

/* v3 (Nov 9): the mask reaches past the line box (descenders, italic overhang, tight line-heights), net zero on layout,
   and the word starts far enough down to stay hidden inside the bigger mask */
.kit-split .kit-w{display:inline-block;overflow:hidden;vertical-align:top;padding:.1em .1em .28em;margin:-.1em -.1em -.28em}
.kit-split .kit-wi{display:inline-block;transform:translateY(calc(100% + .4em));transition:transform 1s cubic-bezier(.22,.61,.36,1)}
.kit-split.kit-in .kit-wi{transform:none}
/* v3 (Nov 9): with cine.css (the older Cinematic demos) a split headline rises word by word instead of cine.css's whole-h1 rise */
main h1[data-split],main h1[data-split]>em{animation:none}

.kit-film{position:fixed;inset:0;z-index:2147481500;display:grid;place-items:center;background:#000;opacity:0;transition:opacity .45s}
.kit-film.on{opacity:1}
.kit-film video{width:100%;height:100%;object-fit:contain;background:#000}
.kit-film-x{position:absolute;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));min-height:44px;padding:0 18px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(0,0,0,.4);color:#fff;font:inherit;font-size:14px;letter-spacing:.08em;cursor:pointer}
.kit-film-x:focus-visible{outline:2px solid #fff;outline-offset:2px}
html.kit-lock,html.kit-lock body{overflow:hidden}

.kit-cursor{position:fixed;left:0;top:0;z-index:2147482500;width:40px;height:40px;margin:-20px 0 0 -20px;border:2.5px solid #111;border-radius:50%;pointer-events:none;opacity:0;
  box-shadow:0 0 0 2px #fff,inset 0 0 0 2px #fff;transition:opacity .3s,width .35s cubic-bezier(.22,.61,.36,1),height .35s cubic-bezier(.22,.61,.36,1),margin .35s cubic-bezier(.22,.61,.36,1)}
.kit-cursor.on{opacity:1}
.kit-cursor.big{width:68px;height:68px;margin:-34px 0 0 -34px}
/* the ring only follows the system pointer, which always stays visible (Nov 5: never hide the real pointer) */
[data-magnetic]{transition:transform .45s cubic-bezier(.22,.61,.36,1)}

@media (prefers-reduced-motion:reduce){.kit-wipe{display:none}.kit-split .kit-wi{transform:none!important}}

/* v3 (Nov 9): a small glass pill for the full-film button, for heroes that sit on a film (light text on glass) */
.kit-film-btn{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 18px 0 14px;border-radius:999px;font:inherit;font-size:14px;letter-spacing:.04em;white-space:nowrap;color:#fff;cursor:pointer;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.34);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.kit-film-btn::before{content:"";width:0;height:0;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent currentColor}
.kit-film-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* v5 (Nov 9, 3D demos): brand cursors. <html data-cursor="..."> swaps the plain ring for a shape drawn on the ring's
   inner <i>. Still mouse only, still beside the system pointer (never instead of it), off with reduced motion.
   .big = over a link or button, .drag = over a stage you can turn, .press = mouse down. */
html[data-cursor] .kit-cursor{border:0;box-shadow:none;width:0;height:0;margin:0;transition:opacity .3s}
html[data-cursor] .kit-cursor.big{width:0;height:0;margin:0}
html[data-cursor] .kit-cursor i{position:absolute;left:0;top:0;display:block;box-sizing:border-box;transition:width .35s cubic-bezier(.22,.61,.36,1),height .35s cubic-bezier(.22,.61,.36,1),margin .35s cubic-bezier(.22,.61,.36,1),transform .45s cubic-bezier(.22,.61,.36,1),background-color .3s,border-color .3s,border-radius .45s,opacity .3s}
/* Murmur: a smooth pebble that opens into a ripple ring */
html[data-cursor=pebble] .kit-cursor i{width:16px;height:14px;margin:-7px 0 0 -8px;border-radius:52% 48% 46% 54%/56% 50% 50% 44%;background:rgba(237,230,218,.92);border:1px solid rgba(13,14,16,.5);box-shadow:0 2px 8px rgba(0,0,0,.18)}
html[data-cursor=pebble] .kit-cursor.big i{width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:rgba(237,230,218,.12);border:1.5px solid rgba(237,230,218,.9);box-shadow:0 0 0 1px rgba(13,14,16,.35),0 0 0 9px rgba(237,230,218,.10)}
html[data-cursor=pebble] .kit-cursor.drag i{width:34px;height:30px;margin:-15px 0 0 -17px;background:rgba(237,230,218,.25);border:1.5px solid rgba(237,230,218,.85)}
html[data-cursor=pebble] .kit-cursor.press i{transform:scale(.82)}
/* Offtrail: a compass ring with four ticks in the colourway's accent; it swings a quarter turn over links */
html[data-cursor=compass] .kit-cursor i{width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;border:1.5px solid var(--accent,#d5f34b);
  background:radial-gradient(circle,var(--accent,#d5f34b) 0 1.6px,transparent 2.2px),linear-gradient(var(--accent,#d5f34b),var(--accent,#d5f34b)) 50% 0/1.5px 5px no-repeat,linear-gradient(var(--accent,#d5f34b),var(--accent,#d5f34b)) 50% 100%/1.5px 5px no-repeat,linear-gradient(var(--accent,#d5f34b),var(--accent,#d5f34b)) 0 50%/5px 1.5px no-repeat,linear-gradient(var(--accent,#d5f34b),var(--accent,#d5f34b)) 100% 50%/5px 1.5px no-repeat;
  box-shadow:0 0 0 1px rgba(9,10,8,.55),inset 0 0 0 1px rgba(9,10,8,.35)}
html[data-cursor=compass] .kit-cursor.big i{width:50px;height:50px;margin:-25px 0 0 -25px;transform:rotate(45deg)}
html[data-cursor=compass] .kit-cursor.drag i{width:44px;height:44px;margin:-22px 0 0 -22px;transform:rotate(90deg);border-style:dashed}
html[data-cursor=compass] .kit-cursor.press i{transform:rotate(45deg) scale(.86)}
/* Golden Batch: a warm gold drop of light that opens into a glowing ring */
html[data-cursor=gold] .kit-cursor i{width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#e2b56c;border:1px solid rgba(60,36,8,.6);box-shadow:0 0 14px 2px rgba(226,181,108,.45)}
html[data-cursor=gold] .kit-cursor.big i{width:48px;height:48px;margin:-24px 0 0 -24px;background:rgba(226,181,108,.12);border:1.5px solid #e2b56c;box-shadow:0 0 22px rgba(226,181,108,.35),inset 0 0 12px rgba(226,181,108,.25)}
html[data-cursor=gold] .kit-cursor.drag i{width:40px;height:40px;margin:-20px 0 0 -20px;background:rgba(226,181,108,.08);border:1.5px dashed #e2b56c}
html[data-cursor=gold] .kit-cursor.press i{transform:scale(.8)}
/* Sorrel (Fernhill): a walnut dot with a hint of grain; over a button it becomes a stitched fabric swatch */
html[data-cursor=swatch] .kit-cursor i{width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;border:1.5px solid #fbf8f3;
  background:repeating-linear-gradient(100deg,rgba(255,255,255,.0) 0 2px,rgba(255,255,255,.13) 2px 3px),#6e4a30;box-shadow:0 1px 6px rgba(29,27,24,.35)}
html[data-cursor=swatch] .kit-cursor.big i{width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:9px;transform:rotate(-8deg);border:1.5px dashed rgba(251,248,243,.95);
  background:repeating-linear-gradient(45deg,rgba(29,27,24,.07) 0 2px,transparent 2px 4px),repeating-linear-gradient(-45deg,rgba(29,27,24,.07) 0 2px,transparent 2px 4px),#b9a78f;box-shadow:0 0 0 1px rgba(29,27,24,.25),0 4px 12px rgba(29,27,24,.18)}
html[data-cursor=swatch] .kit-cursor.drag i{width:46px;height:46px;margin:-23px 0 0 -23px;background:transparent;border:1.5px solid rgba(29,27,24,.55);box-shadow:inset 0 0 0 1px rgba(251,248,243,.7)}
html[data-cursor=swatch] .kit-cursor.press i{transform:scale(.85)}
