/* Herofold motion kit: shared base for every landing page in /live. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}

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

/* Hidden until the kit reveals them. Without JS, or in static mode, everything shows. */
.kit-js:not(.is-static) [data-reveal],
.kit-js:not(.is-static) [data-reveal-children] > * {
  opacity: 0;
  transform: translateY(28px);
}
.kit-js:not(.is-static) [data-split] {
  visibility: hidden;
}
/* Line reveals clip each line. Give the clip room above and below the line box so no letter is ever cut
   (descenders g j p q y, ascenders, accents, Arabic marks), even with display line-heights under 1.0.
   The padding and the equal negative margin cancel, so the layout does not move. House rule 11. */
.split-line,
[data-split] [class*="line-mask"] {
  padding: 0.14em 0 0.32em;
  margin: -0.14em 0 -0.32em;
}
.split-line {
  overflow: hidden;
}

.is-static *,
.is-static *::before,
.is-static *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
}

@media (hover: hover) {
  [data-magnetic] {
    will-change: transform;
  }
}

[data-marquee] {
  overflow: hidden;
  white-space: nowrap;
}
[data-marquee] > .marquee-track {
  display: inline-flex;
  will-change: transform;
}

/* ---------- Buttons: pick ONE hover style per brand ----------
   <a class="k-btn" data-hover="roll|fill|wipe|spot">Label <span class="k-arrow">(two identical svgs)</span></a>
   Set --k-fill (the hover colour) and --k-fill-ink (text colour on hover) on the button. */
[data-hover] { position: relative; overflow: hidden; isolation: isolate; }
[data-hover]::before { content: ""; position: absolute; z-index: -1; pointer-events: none; background: var(--k-fill, currentColor); border-radius: inherit; }
[data-hover] { transition: color .45s cubic-bezier(.7, 0, .2, 1), border-color .45s cubic-bezier(.7, 0, .2, 1); }
[data-hover]:is(:hover, :focus-visible) { color: var(--k-fill-ink, inherit); }

/* roll: the label slides up and an identical copy rolls in from below */
.k-roll { display: inline-flex; flex-direction: column; height: 1.25em; line-height: 1.25em; overflow: hidden; vertical-align: top; }
.k-roll > span { display: block; transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
:is(:hover, :focus-visible) > .k-roll > span, :is(:hover, :focus-visible) > * > .k-roll > span { transform: translateY(-100%); }
[data-hover="roll"]::before { display: none; }

/* fill: colour rises from the bottom edge */
[data-hover="fill"]::before { inset: 0; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
[data-hover="fill"]:is(:hover, :focus-visible)::before { transform: scaleY(1); }

/* wipe: colour enters from the left and leaves to the right */
[data-hover="wipe"]::before { inset: 0; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
[data-hover="wipe"]:is(:hover, :focus-visible)::before { transform: scaleX(1); transform-origin: 0 50%; }

/* spot: a circle grows from the point where the pointer entered */
[data-hover="spot"]::before { left: var(--k-x, 50%); top: var(--k-y, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(0); transition: transform .65s cubic-bezier(.7, 0, .2, 1); }
[data-hover="spot"]:is(:hover, :focus-visible)::before { transform: translate(-50%, -50%) scale(1); }

/* arrow swap: the arrow exits right while a copy enters from the left */
.k-arrow { display: inline-grid; overflow: hidden; vertical-align: middle; }
.k-arrow > * { grid-area: 1 / 1; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.k-arrow > :last-child { transform: translateX(-130%); }
:is(:hover, :focus-visible) > .k-arrow > :first-child { transform: translateX(130%); }
:is(:hover, :focus-visible) > .k-arrow > :last-child { transform: translateX(0); }

/* links: underline draws in from the left and leaves to the right */
[data-underline] { text-decoration: none; background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; transition: background-size .5s cubic-bezier(.7, 0, .2, 1); }
[data-underline]:is(:hover, :focus-visible) { background-position: 0 100%; background-size: 100% 1px; }

/* ---------- Media ---------- */
/* data-reveal-img: the frame opens from the bottom and the image settles from a slight zoom */
.kit-js:not(.is-static) [data-reveal-img] { clip-path: inset(100% 0 0 0); }
[data-reveal-img] { overflow: hidden; }
[data-reveal-img] > :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Background video: <video data-video muted playsinline loop autoplay preload="metadata" poster="..."> */
video[data-video] { display: block; width: 100%; height: 100%; object-fit: cover; }
