/*
 * ITIL v1 base ("Aurora Night", docs/ux-discovery/home/visual-v2.md): resets inside main.itil-v1, type,
 * grid, the fold contract and fold surfaces, buttons, focus, utilities and the reveal system.
 * Loads after main.css and bootstrap.min.css.
 *
 * How the site-wide CSS is neutralised without touching it:
 * - Element resets use :where(main.itil-v1) X (specificity of X alone), so they beat main.css and
 *   bootstrap element rules by source order and lose to any v1 class.
 * - main.css forces some properties with !important (* font-family Poppins, a text-decoration none,
 *   h1-h6 line-height, h2 font-weight, p margin-bottom). Those are re-declared here with !important
 *   but read a custom property, so components change them WITHOUT !important:
 *     --v1-ff (font-family), --v1-td (text-decoration), --v1-lh (heading line-height),
 *     --v1-fw (h2 weight), --v1-mb (p margin-bottom).
 */

/* ---------- Reset (scoped) ---------- */
main.itil-v1 {
    --v1-ff: var(--font-body);
    display: block;
    padding-top: var(--hdr-h); /* the shared header is fixed; main.css sets 65px / 110px */
    background: var(--night);  /* shows in the rounded corners of the first join and behind the last fold */
    color: var(--ink);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-variant-numeric: normal;
    overflow-x: clip;
}
:where(main.itil-v1), :where(main.itil-v1) *, :where(main.itil-v1) *::before, :where(main.itil-v1) *::after {
    box-sizing: border-box;
    font-family: var(--v1-ff) !important;
}
:where(main.itil-v1) :is(h1, h2, h3, h4, h5, h6) {
    --v1-ff: var(--font-head);
    margin: 0;
    font-weight: 700;
    letter-spacing: var(--track-head);
    line-height: var(--v1-lh, var(--lh-head)) !important;
    text-wrap: balance;
    color: inherit;
}
:where(main.itil-v1) h2 { font-weight: var(--v1-fw, 800) !important; }
:where(main.itil-v1) :is(p, ul, ol, li, dl, dt, dd, label, a, span, address, figure, blockquote, caption, legend, small, strong, b, td, th, summary, output, fieldset) {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-weight: inherit;
    font-style: normal;
    width: auto;
}
:where(main.itil-v1) p { margin-bottom: var(--v1-mb, 0) !important; }
:where(main.itil-v1) :is(strong, b) { font-weight: 700; }
:where(main.itil-v1) :is(ul, ol) { list-style: none; }
:where(main.itil-v1) fieldset { border: 0; min-width: 0; }
:where(main.itil-v1) legend { float: none; width: auto; }
:where(main.itil-v1) a { color: inherit; text-decoration: var(--v1-td, none) !important; cursor: pointer; }
:where(main.itil-v1) img, :where(main.itil-v1) svg { display: block; max-width: 100%; height: auto; }
:where(main.itil-v1) :is(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
:where(main.itil-v1) button { background: none; border: 0; padding: 0; cursor: pointer; }
:where(main.itil-v1) table { border-collapse: separate; border-spacing: 0; width: 100%; caption-side: top; }
:where(main.itil-v1) caption { padding: 0; color: inherit; text-align: left; }
:where(main.itil-v1) th { text-align: left; font-weight: 700; }
:where(main.itil-v1) summary { cursor: pointer; }
:where(main.itil-v1) [hidden] { display: none !important; }
main.itil-v1 ::selection { background: rgba(124, 92, 255, .32); }

/* Tabular numerals for every date and price */
main.itil-v1 :is(.v1-num, time, output, td, .v1-price, .v1-date) { font-variant-numeric: tabular-nums; }

/* ---------- Focus (never removed): --link on light, --cyan on dark ---------- */
main.itil-v1 :focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); border-radius: 6px; }
main.itil-v1 :is(.v1-dark, .v1-panel--ink, .v1-panel--night, .v1-glass, .v1-tile, .v1-sticky) :focus-visible,
main.itil-v1 :is(.v1-glass, .v1-tile):focus-visible { outline: var(--focus-on-dark); }
main.itil-v1 :focus:not(:focus-visible) { outline: none; }

/* ---------- Type ---------- */
main.itil-v1 .v1-h1 { font-size: var(--fs-h1); --v1-lh: 1.02; font-weight: 800; letter-spacing: var(--track-h1); }
main.itil-v1 .v1-h2 { font-size: var(--fs-h2); --v1-lh: 1.06; --v1-fw: 800; }
main.itil-v1 .v1-h3 { font-size: var(--fs-h3); --v1-lh: 1.18; font-weight: 700; letter-spacing: -0.02em; }
main.itil-v1 .v1-h4 { font-size: 19px; --v1-lh: 1.3; font-weight: 700; letter-spacing: -0.015em; }
main.itil-v1 .v1-lead { font-size: var(--fs-lead); line-height: 1.5; }
main.itil-v1 .v1-small { font-size: var(--fs-small); }
main.itil-v1 .v1-mute { color: var(--mute); }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-mute { color: var(--on-dark-2); }
main.itil-v1 .v1-measure { max-width: var(--measure-answer); }
main.itil-v1 .v1-measure-long { max-width: var(--measure-long); }
main.itil-v1 .v1-head-font { --v1-ff: var(--font-head); }

/* Gradient accent words: <span class="v1-grad">ITIL® training</span>.
   On light only inside text of 32px or more (H1, H2, big numerals); any size on dark. */
main.itil-v1 .v1-grad { color: #5B3FE0; }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-grad { color: #A9B8FF; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    main.itil-v1 .v1-grad {
        background-image: var(--grad-ink);
        -webkit-background-clip: text;
                background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        -webkit-box-decoration-break: clone;
                box-decoration-break: clone;
        padding-bottom: .08em; /* keeps descenders inside the painted box */
    }
    main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-grad { background-image: var(--grad-on-dark); color: transparent; }
}
@media (forced-colors: active) { main.itil-v1 .v1-grad { background: none; -webkit-text-fill-color: currentColor; color: inherit; } }

/* Eyebrow: a small tinted (light) or glass (dark) pill with a 6px gradient dot. 16px, never smaller. */
main.itil-v1 .v1-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 34px;
    padding: 5px 16px 5px 14px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(124, 92, 255, .22);
    background: rgba(124, 92, 255, .09);
    color: var(--link);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: var(--track-eyebrow);
    text-transform: uppercase;
    line-height: 1.3;
}
main.itil-v1 .v1-eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(124, 92, 255, .16); }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-panel--night, .v1-panel--ink) .v1-eyebrow {
    border-color: var(--line-dark);
    background: var(--glass);
    color: var(--on-dark);
    box-shadow: var(--glass-hi);
    -webkit-backdrop-filter: var(--glass-blur);
            backdrop-filter: var(--glass-blur);
}
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-panel--night, .v1-panel--ink) .v1-eyebrow::before { box-shadow: 0 0 0 4px rgba(124, 92, 255, .3), 0 0 14px 2px rgba(240, 72, 155, .6); }
@media (max-width: 479.98px) { main.itil-v1 .v1-eyebrow { letter-spacing: 0.08em; } }

/* Links: always underlined (thin, soft); on hover a 2px underline grows from the left. */
main.itil-v1 .v1-link {
    --v1-td: none;
    --link-c: var(--link);
    color: var(--link-c);
    font-weight: 600;
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in srgb, currentColor 35%, transparent), color-mix(in srgb, currentColor 35%, transparent));
    background-repeat: no-repeat;
    background-position: 0 100%, 0 100%;
    background-size: 0% 2px, 100% 1px;
    padding-bottom: 2px;
    transition: background-size 320ms var(--ease-out), color var(--t-fast) ease;
}
main.itil-v1 .v1-link:hover, main.itil-v1 .v1-link:focus-visible { background-size: 100% 2px, 100% 1px; }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-link { --link-c: var(--link-on-dark); }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-link:hover { color: var(--on-dark); }
main.itil-v1 .v1-link--quiet { color: inherit; font-weight: 400; }
main.itil-v1 .v1-link--arrow { display: inline-flex; align-items: center; gap: 6px; }
main.itil-v1 .v1-link--arrow .v1-i { width: 18px; height: 18px; transition: transform 320ms var(--ease-out); }
main.itil-v1 .v1-link--arrow:hover .v1-i { transform: translateX(4px); }

/* Icons: inline SVG, 24px grid, 1.75px stroke */
main.itil-v1 .v1-i { width: 20px; height: 20px; flex: none; }
main.itil-v1 .v1-i--accent { color: var(--violet); }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-i--accent { color: var(--cyan); }
/* Icon badge: <span class="v1-ico">{!! $icon('shield') !!}</span> (44px rounded square, gradient wash) */
main.itil-v1 .v1-ico {
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(76, 141, 255, .16), rgba(240, 72, 155, .16));
    border: 1px solid rgba(124, 92, 255, .22);
    color: var(--link);
}
main.itil-v1 .v1-ico .v1-i { width: 22px; height: 22px; }
main.itil-v1 .v1-ico--lg { width: 56px; height: 56px; border-radius: 18px; }
main.itil-v1 .v1-ico--lg .v1-i { width: 26px; height: 26px; }
main.itil-v1 .v1-ico--grad { background: var(--tile-blue); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -10px rgba(109, 59, 230, .7); }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-ico:not(.v1-ico--grad) { background: var(--glass-2); border-color: var(--line-dark); color: var(--on-dark); box-shadow: var(--glass-hi); }

/* ---------- Grid ---------- */
main.itil-v1 .v1-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
main.itil-v1 .v1-container--wide { max-width: var(--container-wide); }
main.itil-v1 .v1-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
@media (min-width: 768px) {
    main.itil-v1 { --gutter: 32px; --r-fold: 40px; }
    main.itil-v1 .v1-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    main.itil-v1 .v1-col-4 { grid-column: span 4; }
    main.itil-v1 .v1-col-5 { grid-column: span 5; }
    main.itil-v1 .v1-col-6 { grid-column: span 6; }
    main.itil-v1 .v1-col-7 { grid-column: span 7; }
    main.itil-v1 .v1-col-8 { grid-column: span 8; }
    main.itil-v1 .v1-col-12 { grid-column: 1 / -1; }
}

/* ---------- Fold contract ----------
 * One screen per fold from 768px: the visible part of a fold = viewport minus the measured header.
 * Joins: every fold after the first has a rounded top (--r-fold) and slides --r-fold over the fold before
 * it, like a card. The fold before is that much taller and has that much more bottom padding, so its
 * content stays centred in the part you can see and the one-screen budget is unchanged
 * (content block <= 768 - 122 - 90 = 556px at 1366x768).
 */
main.itil-v1 .v1-fold {
    position: relative;
    display: flex;          /* main.css: section { display:flex; padding: 3rem 1.5rem } */
    flex-direction: column;
    justify-content: center;
    padding: var(--fold-pad-y) 0;
    scroll-margin-top: var(--hdr-h);
    isolation: isolate;     /* the aurora and washes stay inside their fold */
}
main.itil-v1 .v1-fold > .v1-container { position: relative; z-index: 1; }
main.itil-v1 .v1-fold__inner { display: flex; flex-direction: column; gap: var(--s-6); }
main.itil-v1 .v1-fold:not(:last-of-type) { padding-bottom: calc(var(--fold-pad-y) + var(--r-fold)); }
main.itil-v1 .v1-fold + .v1-fold { margin-top: calc(-1 * var(--r-fold)); border-radius: var(--r-fold) var(--r-fold) 0 0; }

/* Surfaces. Light: paper, surface (+ --wash), mist. Dark: night (= the old "ink"), usually with the aurora include. */
main.itil-v1 .v1-fold--paper {
    background: radial-gradient(900px 420px at 88% -8%, rgba(124, 92, 255, .10), transparent 62%), radial-gradient(700px 360px at 4% 108%, rgba(76, 141, 255, .08), transparent 60%), var(--paper);
    color: var(--ink);
}
main.itil-v1 .v1-fold--surface { background: var(--surface); color: var(--ink); }
main.itil-v1 .v1-fold--mist { background: radial-gradient(800px 400px at 12% -10%, rgba(255, 255, 255, .7), transparent 60%), var(--mist); color: var(--ink); }
/* Soft lilac radial wash (start fold): add to a light fold */
main.itil-v1 .v1-fold--wash {
    background:
        radial-gradient(760px 420px at 50% -12%, rgba(124, 92, 255, .16), transparent 64%),
        radial-gradient(520px 320px at 96% 62%, rgba(240, 72, 155, .08), transparent 62%),
        radial-gradient(520px 320px at 2% 70%, rgba(76, 141, 255, .10), transparent 62%),
        var(--surface);
}
main.itil-v1 :is(.v1-fold--night, .v1-fold--ink) {
    background: radial-gradient(1000px 520px at 50% -20%, rgba(124, 92, 255, .22), transparent 62%), var(--night);
    color: var(--on-dark);
}
/* The lip of a fold sliding over the one before it */
main.itil-v1 .v1-fold + :is(.v1-fold--paper, .v1-fold--surface, .v1-fold--mist) { box-shadow: 0 -24px 60px -28px rgba(10, 9, 38, .45), inset 0 1px 0 #fff; }
main.itil-v1 .v1-fold + :is(.v1-fold--night, .v1-fold--ink) { box-shadow: 0 -24px 60px -28px rgba(10, 9, 38, .55), inset 0 1px 0 rgba(255, 255, 255, .16); }

@media (min-width: 768px) {
    main.itil-v1 .v1-fold {
        --fold-pad-y: 45px;  /* the 90px budget */
        min-height: calc(100vh - var(--hdr-h));
        min-height: calc(100svh - var(--hdr-h));
    }
    main.itil-v1 .v1-fold:not(:last-of-type) {
        min-height: calc(100vh - var(--hdr-h) + var(--r-fold));
        min-height: calc(100svh - var(--hdr-h) + var(--r-fold));
    }
}
@media (max-width: 767.98px) {
    main.itil-v1 .v1-fold.v1-hero { padding-top: 28px; }
}

/* Dark context: .v1-dark on a dark fold; glass, tiles and night panels set the same text colours themselves. */
main.itil-v1 .v1-dark { color: var(--on-dark); }
main.itil-v1 .v1-dark .v1-lead { color: var(--on-dark-2); }
main.itil-v1 .v1-dark :is(h1, h2, h3, h4) { color: var(--on-dark); }

/* ---------- Buttons ---------- */
main.itil-v1 .v1-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 48px;
    padding: 11px 26px;
    border-radius: var(--r-btn);
    border: 1.5px solid transparent;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.005em;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    overflow: hidden;       /* clips the sheen */
    isolation: isolate;
    transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
    -webkit-tap-highlight-color: transparent;
    align-self: flex-start; /* never stretched by a flex column; .v1-btn--block fills the width */
}
main.itil-v1 .v1-btn > * { position: relative; z-index: 1; }
main.itil-v1 .v1-btn .v1-i { width: 20px; height: 20px; transition: transform 320ms var(--ease-out); }
main.itil-v1 .v1-btn:hover .v1-i:last-child { transform: translateX(4px); }
main.itil-v1 .v1-btn--lg { min-height: 56px; padding-inline: 32px; font-size: 18px; }
main.itil-v1 .v1-btn--block { display: flex; width: 100%; align-self: stretch; }

/* The ONE primary action per fold (and the sticky bar): hot-pink pill, soft glow, a sheen sweeps on hover. */
main.itil-v1 .v1-btn-act {
    min-height: 52px;
    background: var(--act);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--act-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
main.itil-v1 .v1-btn-act.v1-btn--lg { min-height: 56px; }
main.itil-v1 .v1-btn-act::before {
    content: "";
    position: absolute; z-index: 0;
    top: -20%; bottom: -20%; left: 0; width: 46%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .34) 50%, transparent 100%);
    transform: translateX(-130%) skewX(-18deg);
    pointer-events: none;
}
main.itil-v1 .v1-btn-act:hover { background: var(--act-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(224, 25, 95, .7), inset 0 1px 0 rgba(255, 255, 255, .28); }
main.itil-v1 .v1-btn-act:hover::before { transform: translateX(340%) skewX(-18deg); transition: transform 750ms var(--ease-out); }
main.itil-v1 .v1-btn-act:active { transform: translateY(0) scale(.985); box-shadow: 0 6px 16px -8px rgba(224, 25, 95, .6); }

/* Secondary: outlined ink pill on light, glass pill on dark. Never pink. */
main.itil-v1 .v1-btn-ghost { background: rgba(255, 255, 255, .6); color: var(--ink); border-color: rgba(14, 13, 51, .82); }
main.itil-v1 .v1-btn-ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(14, 13, 51, .6); }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink, .v1-sticky) .v1-btn-ghost {
    background: var(--glass-2);
    color: var(--on-dark);
    border-color: rgba(255, 255, 255, .3);
    box-shadow: var(--glass-hi);
    -webkit-backdrop-filter: var(--glass-blur);
            backdrop-filter: var(--glass-blur);
}
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink, .v1-sticky) .v1-btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 14px 34px -12px rgba(124, 92, 255, .7); }
main.itil-v1 .v1-btn-ink { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
main.itil-v1 .v1-btn-ink:hover { background: var(--night-3); border-color: var(--night-3); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(14, 13, 51, .6); }
main.itil-v1 .v1-btn-quiet { background: transparent; border-color: transparent; color: var(--link); padding-inline: 10px; min-height: 44px; overflow: visible; }
main.itil-v1 .v1-btn-quiet:hover { color: var(--ink); --v1-td: underline; }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-btn-quiet { color: var(--link-on-dark); }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-tile, .v1-panel--night, .v1-panel--ink) .v1-btn-quiet:hover { color: var(--on-dark); }
main.itil-v1 .v1-btn[disabled], main.itil-v1 .v1-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Utilities ---------- */
main.itil-v1 .v1-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
main.itil-v1 .v1-stack > * + * { margin-top: var(--v1-stack, var(--s-4)); }
main.itil-v1 .v1-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
main.itil-v1 .v1-rule { height: 1px; border: 0; background: var(--line); margin: 0; }
main.itil-v1 :is(.v1-dark, .v1-glass, .v1-panel--night, .v1-panel--ink) .v1-rule { background: var(--line-dark); }
main.itil-v1 .v1-rule--grad { height: 2px; background: var(--grad); border-radius: 2px; }
@media (max-width: 767.98px) { main.itil-v1 .v1-hide-sm { display: none !important; } }
@media (min-width: 768px) { main.itil-v1 .v1-show-sm { display: none !important; } }
@media (max-width: 479.98px) { main.itil-v1 .v1-hide-xs { display: none !important; } }

/* ---------- Reveal system (motion.js) ----------
 * The DEFAULT state of everything is fully visible. Motion exists only under html.v1-motion (set by the
 * inline script in home-v1/head.blade.php when reduced motion is off and navigator.webdriver is false).
 *
 * How it works: motion.js adds .is-in when an element enters the viewport; .is-in plays a keyframe
 * animation that STARTS hidden and ENDS at the normal state (fill-mode backwards). ~2.6s later .is-done
 * removes the animation. So an element that is never seen, or whose animation never runs, is simply visible.
 * Only during the first 2 seconds of the page (html.v1-motion without .v1-settled) are not-yet-revealed
 * items held at opacity 0, so the first screen does not flash before its load sequence.
 *
 *   data-reveal="up|left|right|scale|blur|fade|clip"   one element (H2s get "clip" automatically)
 *   data-stagger[="up|left|scale"]                     the direct children, 70ms apart (max 8 steps)
 *   data-split                                         words rise one by one (H1)
 *   style="--d: 300ms"                                 extra delay (hero load sequence)
 *   .v1-rv                                             old name for data-reveal="up"
 */
html.v1-motion:not(.v1-settled) main.itil-v1 :is([data-reveal]:not([data-reveal="clip"]), .v1-rv, [data-split]):not(.is-in),
html.v1-motion:not(.v1-settled) main.itil-v1 [data-stagger]:not(.is-in) > * { opacity: 0; }

html.v1-motion main.itil-v1 :is([data-reveal], .v1-rv).is-in:not(.is-done) {
    animation: v1-up var(--t-reveal) var(--ease-out) backwards;
    animation-delay: calc(var(--d, 0ms) + var(--rv-i, 0) * var(--stagger));
}
html.v1-motion main.itil-v1 [data-reveal="left"].is-in:not(.is-done) { animation-name: v1-left; }
html.v1-motion main.itil-v1 [data-reveal="right"].is-in:not(.is-done) { animation-name: v1-right; animation-duration: var(--t-hero); }
html.v1-motion main.itil-v1 [data-reveal="scale"].is-in:not(.is-done) { animation-name: v1-scale; }
html.v1-motion main.itil-v1 [data-reveal="blur"].is-in:not(.is-done) { animation-name: v1-blur; animation-duration: 600ms; }
html.v1-motion main.itil-v1 [data-reveal="fade"].is-in:not(.is-done) { animation-name: v1-fade; }
html.v1-motion main.itil-v1 [data-reveal="clip"].is-in:not(.is-done) { animation-name: v1-clip; animation-duration: var(--t-hero); }

html.v1-motion main.itil-v1 [data-stagger].is-in:not(.is-done) > * {
    animation: v1-up var(--t-reveal) var(--ease-out) backwards;
    animation-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--stagger));
}
html.v1-motion main.itil-v1 [data-stagger="left"].is-in:not(.is-done) > * { animation-name: v1-left; }
html.v1-motion main.itil-v1 [data-stagger="scale"].is-in:not(.is-done) > * { animation-name: v1-scale; }
main.itil-v1 [data-stagger] > :nth-child(2) { --i: 1; }
main.itil-v1 [data-stagger] > :nth-child(3) { --i: 2; }
main.itil-v1 [data-stagger] > :nth-child(4) { --i: 3; }
main.itil-v1 [data-stagger] > :nth-child(5) { --i: 4; }
main.itil-v1 [data-stagger] > :nth-child(6) { --i: 5; }
main.itil-v1 [data-stagger] > :nth-child(7) { --i: 6; }
main.itil-v1 [data-stagger] > :nth-child(n+8) { --i: 7; }

/* Word split (motion.js wraps each word: <span class="v1-w"><span class="v1-w__i">word</span></span>) */
main.itil-v1 .v1-w { display: inline-block; max-width: 100%; vertical-align: bottom; overflow: hidden; padding: .1em .06em .16em; margin: -.1em -.06em -.16em; }
main.itil-v1 .v1-w__i { display: inline-block; max-width: 100%; }
main.itil-v1 .is-done > .v1-w, main.itil-v1 [data-split]:not(.is-in) > .v1-w { overflow: visible; }
html.v1-motion main.itil-v1 [data-split].is-in:not(.is-done) .v1-w__i {
    animation: v1-word var(--t-hero) var(--ease-out) backwards;
    animation-delay: calc(var(--d, 0ms) + var(--w, 0) * var(--stagger));
}

@keyframes v1-up { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes v1-left { from { opacity: 0; transform: translate3d(-36px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes v1-right { from { opacity: 0; transform: translate3d(48px, 0, 0) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes v1-scale { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes v1-blur { from { opacity: 0; filter: blur(8px); transform: translate3d(0, 14px, 0); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes v1-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v1-clip { from { clip-path: inset(0 -1em 100% -1em); transform: translate3d(0, 100%, 0); } to { clip-path: inset(0 -1em -.2em -1em); transform: none; } }
@keyframes v1-word { from { transform: translate3d(0, 115%, 0); } to { transform: none; } }
@keyframes v1-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes v1-draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes v1-draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes v1-dash { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Picker value cross-fade: opacity + a 6px vertical slide (pick scripts toggle .is-swapping) */
main.itil-v1 .v1-xfade { transition: opacity var(--t-fast) ease, transform var(--t-fast) var(--ease-out); }
main.itil-v1 .v1-xfade.is-swapping { opacity: 0; transform: translateY(6px); }

/* Reduced motion: nothing moves, nothing loops. (html.v1-motion is never set in this case either.) */
@media (prefers-reduced-motion: reduce) {
    main.itil-v1 *, main.itil-v1 *::before, main.itil-v1 *::after {
        transition-duration: 0ms !important; transition-delay: 0ms !important;
        animation-duration: 0ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    main.itil-v1 * { animation: none !important; opacity: 1 !important; }
    main.itil-v1 :is(.v1-sticky, .v1-progress, .v1-aurora) { display: none !important; }
    main.itil-v1 .v1-fold { min-height: 0; margin-top: 0; border-radius: 0; }
}
