/* COMBÉ — motion & interaction layer (A005672, r2, 06.10.2026)
 *
 * Shipped as an EXTERNAL file on purpose: the publish perf pass merges inline <script>/<style>
 * blocks, and a later accessibility externalisation once deleted a site's merged runtime with it.
 *
 * RENDER-SAFE by construction:
 *   · Everything that HIDES anything is scoped under html.cbm, a class only combe-motion.js adds —
 *     and that script refuses to run in the studio canvas (an iframe), under /preview/, or under
 *     browser automation. No JS, the editor, a static snapshot ⇒ the page as composed, fully visible.
 *   · The CSS-only effects (Ken Burns, hero entrance, moving stripes) start AND end visible.
 *   · prefers-reduced-motion and the accessibility toolbar's "stop animations" switch everything off.
 */

/* (A cross-document @view-transition was tried and REMOVED: after a click it froze rendering —
   no frames, requestAnimationFrame dead — in Chromium. Not worth a page that may not paint.) */

/* ---------- hero: slow Ken Burns on the photograph, staged entrance of the words ---------- */
.hero__bg { will-change: transform; }
.hero__bg img { animation: cbKen 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes cbKen { from { transform: scale(1.06); } to { transform: scale(1.16) translate3d(-1.2%, -1%, 0); } }

.hero__body > * { animation: cbRise .95s cubic-bezier(.22,.61,.36,1) backwards; }
.hero__body > :nth-child(2) { animation-delay: .1s; }
.hero__body > :nth-child(3) { animation-delay: .22s; }
.hero__body > :nth-child(4) { animation-delay: .34s; }
.hero__year { animation: cbRise 1.1s .15s cubic-bezier(.22,.61,.36,1) backwards; }
@keyframes cbRise { from { opacity: .18; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }

/* the one blue word: a slow light passing through it */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .accent {
    background: linear-gradient(100deg, var(--blue-lift) 0%, var(--blue-lift) 38%, #BFE7FF 50%, var(--blue-lift) 62%, var(--blue-lift) 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: cbShine 6.5s ease-in-out 1.2s infinite;
  }
}
@keyframes cbShine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }

/* the eyebrow tick draws itself */
.eyebrow::before { transform-origin: inline-start; }
html.cbm .cb-rv .eyebrow::before, html.cbm .eyebrow.cb-rv::before { transform: scaleX(0); transition: transform .9s .25s cubic-bezier(.22,.61,.36,1); }
html.cbm .cb-in .eyebrow::before, html.cbm .eyebrow.cb-in::before { transform: scaleX(1); }

/* cursor light on the hero (fine pointers only) */
html.cbm.cb-fine .hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 40%), rgba(45, 164, 232, .2), transparent 60%);
  opacity: 0; transition: opacity .6s;
}
html.cbm.cb-fine .hero:hover::before { opacity: 1; }

/* scroll cue */
.cb-cue {
  position: absolute; inset-block-end: 22px; left: 50%; z-index: 3; width: 28px; height: 44px; margin-left: -14px;
  border: 2px solid rgba(255, 255, 255, .55); border-radius: 16px; cursor: pointer; background: none; padding: 0;
  transition: border-color .3s, opacity .3s;
}
.cb-cue::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px;
  border-radius: 2px; background: var(--blue-lift); animation: cbCue 1.8s ease-in-out infinite;
}
.cb-cue:hover { border-color: var(--blue-lift); }
@keyframes cbCue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- reveal on scroll — ONLY under html.cbm, ONLY for things below the fold ---------- */
html.cbm .cb-rv {
  opacity: 0; transform: translate3d(0, 38px, 0);
  transition: opacity .85s cubic-bezier(.22,.61,.36,1) var(--cb-d, 0ms), transform 1s cubic-bezier(.22,.61,.36,1) var(--cb-d, 0ms);
}
html.cbm .cb-rv.cb-rv--side { transform: translate3d(48px, 0, 0); }
html:not([dir=rtl]).cbm .cb-rv.cb-rv--side { transform: translate3d(-48px, 0, 0); }
html.cbm .cb-rv.cb-rv--zoom { transform: scale(.94); }
html.cbm .cb-rv.cb-in { opacity: 1; transform: none; }
/* the framed photo un-masks like a blueprint being drawn */
html.cbm .split__media.cb-rv img { clip-path: inset(0 0 0 100%); transition: clip-path 1.25s cubic-bezier(.77,0,.18,1) .1s; }
html:not([dir=rtl]).cbm .split__media.cb-rv img { clip-path: inset(0 100% 0 0); }
html.cbm .split__media.cb-rv.cb-in img { clip-path: inset(0); }
/* once revealed, hand transform back to the hover/tilt rules */
html.cbm .cb-rv.cb-done { transition: var(--t); transition-delay: 0s; }

/* ---------- steps: the timeline lights up as you read it ---------- */
.step { transition: border-color .6s ease; }
.step::before { transition: color .4s, background .4s; }
html.cbm .steps .step:not(.step--on)::before { color: var(--on-dark-dim); }

/* ---------- counters: keep the box steady while digits change ---------- */
.cb-num { font-variant-numeric: tabular-nums; }

/* ---------- band: each credential answers the cursor ---------- */
.band__cell { transition: background .35s ease; position: relative; }
.band__cell::after {
  content: ""; position: absolute; inset-inline: 24px; inset-block-end: 16px; height: 2px;
  background: rgba(255, 255, 255, .7); transform: scaleX(0); transform-origin: inline-start; transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.band__cell:hover { background: rgba(255, 255, 255, .08); }
.band__cell:hover::after { transform: scaleX(1); }

/* ---------- tilt + glare on photo tiles and cards ---------- */
.cb-glare {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .17), transparent 46%);
  opacity: 0; transition: opacity .35s;
}
.card .cb-glare { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 164, 232, .16), transparent 50%); }
.sec--paper .card .cb-glare { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 124, 192, .09), transparent 50%); }
.cb-tilting .cb-glare { opacity: 1; }
.cb-tilting { transition: transform .14s ease-out, box-shadow var(--t), border-color var(--t) !important; will-change: transform; }
.tile:active, .pcard:active, a.card:active { transform: scale(.985) !important; transition-duration: .12s !important; }

/* ---------- buttons: magnetic pull + ink ripple ---------- */
.btn { will-change: transform; }
.cb-ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 2;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; background: rgba(255, 255, 255, .45);
  animation: cbRipple .65s cubic-bezier(.22,.61,.36,1) forwards;
}
.sec--paper .btn--ghost .cb-ripple, .card .cb-ripple { background: rgba(0, 124, 192, .3); }
@keyframes cbRipple { from { transform: scale(1); opacity: .9; } to { transform: scale(var(--cb-rs, 40)); opacity: 0; } }

/* ---------- client logos: an endless, pausable strip ---------- */
.cb-mq { overflow: hidden; direction: ltr; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cb-mq__track { display: flex; align-items: center; gap: clamp(36px, 5vw, 72px); width: max-content; direction: ltr; animation: cbMarquee var(--cb-mq-dur, 40s) linear infinite; padding-block: 8px; }
.cb-mq:hover .cb-mq__track, .cb-mq:focus-within .cb-mq__track, .cb-mq.cb-paused .cb-mq__track { animation-play-state: paused; }
.cb-mq__track img { flex: none; }
@keyframes cbMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cb-mq__ctl {
  display: block; margin: 18px auto 0; padding: 6px 14px; border: 1.5px solid rgba(22, 36, 42, .25); border-radius: var(--r);
  background: transparent; color: var(--on-light); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cb-mq__ctl:hover { border-color: var(--blue); color: var(--blue-deep); }

/* ---------- closing CTA: the hatching drifts ---------- */
.cta::before { animation: cbStripes 24s linear infinite; background-size: 62px 62px !important; }
@keyframes cbStripes { from { background-position: 0 0; } to { background-position: 620px 0; } }
.cta::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  inset-block-start: -260px; inset-inline-end: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); animation: cbFloat 9s ease-in-out infinite alternate;
}
@keyframes cbFloat { to { transform: translate3d(-60px, 70px, 0); } }

/* ---------- header: compacts, steps aside while you read, returns when you scroll up ---------- */
.hd { transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s, background .4s; }
.hd__in, .hd__logo img { transition: padding .35s ease, height .35s ease; }
.hd.cb-scrolled { box-shadow: 0 12px 34px -18px rgba(0, 0, 0, .8); background: rgba(10, 21, 26, .96); }
.hd.cb-scrolled .hd__in { padding-block: 7px; }
.hd.cb-scrolled .hd__logo img { height: 38px; }
.hd.cb-hide { transform: translateY(-105%); }

/* ---------- reading progress ---------- */
.cb-progress {
  position: fixed; inset-block-start: 0; left: 0; right: 0; height: 3px; z-index: 2147480001; pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--blue-lift)); transform: scaleX(0); transform-origin: right;
}
html:not([dir=rtl]) .cb-progress { transform-origin: left; }

/* ---------- back to top, with the page's progress drawn round it ---------- */
.cb-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 2147479000; width: 50px; height: 50px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; background: var(--ink-2); color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7);
  display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .35s cubic-bezier(.22,.61,.36,1), background .3s;
}
.cb-top.cb-on { opacity: 1; transform: none; pointer-events: auto; }
.cb-top:hover { background: var(--blue); }
.cb-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cb-top circle { fill: none; stroke-width: 2.5; }
.cb-top .cb-top__track { stroke: rgba(255, 255, 255, .14); }
.cb-top .cb-top__bar { stroke: var(--blue-lift); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.cb-top span { position: relative; font-size: 18px; line-height: 1; font-weight: 800; }


/* ---------- mobile drawer: brought into the design system (it shipped white) ---------- */
html .webydo-auto-drawer { background: linear-gradient(180deg, #13242C, #0D1A20) !important; color: #EAF2F6 !important; box-shadow: 0 0 60px rgba(0, 0, 0, .6) !important; }
html .webydo-auto-drawer::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, #007CC0, #2DA4E8); }
html .webydo-auto-drawer__list a { border-bottom-color: rgba(255, 255, 255, .1) !important; font-weight: 600; transition: color .25s, padding .25s, background .25s; }
html .webydo-auto-drawer__list a:hover, html .webydo-auto-drawer__list a:focus-visible { color: #2DA4E8 !important; padding-inline-start: 16px !important; background: rgba(45, 164, 232, .06); }
html .webydo-auto-drawer__list a[aria-current="page"] { color: #2DA4E8 !important; }
html .webydo-auto-drawer.webydo-auto-drawer--open .webydo-auto-drawer__list > *, html.webydo-menu-open .webydo-auto-drawer__list > * { animation: cbDrawerIn .45s cubic-bezier(.22,.61,.36,1) backwards; }
html.webydo-menu-open .webydo-auto-drawer__list > :nth-child(2) { animation-delay: .04s; } html.webydo-menu-open .webydo-auto-drawer__list > :nth-child(3) { animation-delay: .08s; }
html.webydo-menu-open .webydo-auto-drawer__list > :nth-child(4) { animation-delay: .12s; } html.webydo-menu-open .webydo-auto-drawer__list > :nth-child(5) { animation-delay: .16s; }
html.webydo-menu-open .webydo-auto-drawer__list > :nth-child(6) { animation-delay: .2s; } html.webydo-menu-open .webydo-auto-drawer__list > :nth-child(n+7) { animation-delay: .24s; }
@keyframes cbDrawerIn { from { opacity: .2; transform: translateX(18px); } }

/* ---------- switches ---------- */
@media (max-width: 640px) {
  .cb-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .cb-cue { display: none; }
}
@media print {
  .cb-rv { opacity: 1 !important; transform: none !important; }
  .cb-rv img { clip-path: none !important; }
  .cb-progress, .cb-top, .cb-cue { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg img, .hero__body > *, .hero__year, .hero h1 .accent, .cta::before, .cta::after, .cb-mq__track, .cb-cue::before, .webydo-auto-drawer__list > * { animation: none !important; }
  .cb-rv { opacity: 1 !important; transform: none !important; }
  .cb-rv img { clip-path: none !important; }
}
.a11y-stop-animations .hero__bg img, .a11y-stop-animations .hero__body > *, .a11y-stop-animations .hero__year,
.a11y-stop-animations .hero h1 .accent, .a11y-stop-animations .cta::before, .a11y-stop-animations .cta::after,
.a11y-stop-animations .cb-mq__track, .a11y-stop-animations .cb-cue::before, .a11y-stop-animations .webydo-auto-drawer__list > * { animation: none !important; }
.a11y-stop-animations .cb-rv { opacity: 1 !important; transform: none !important; }
.a11y-stop-animations .cb-rv img { clip-path: none !important; }
