/* Averos v2 shared base. Each page defines its own tokens: --c-bg --c-fg --c-muted --c-line --c-accent --c-accent-ink --f-display --f-body --f-mono */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
:root { --vh: 100svh; }
.qa { --vh: 900px; }
body { margin: 0; background: var(--c-bg); color: var(--c-fg); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-focus, var(--c-accent)); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(16px, 4.4vw, 64px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; background: var(--c-fg); color: var(--c-bg); }
.skip:focus-visible { top: 16px; }
.media { position: relative; overflow: hidden; }
.media > img { width: 100%; height: 100%; object-fit: cover; }

/* split headlines wait for the engine only when the engine really runs */
.js-anim [data-split] { visibility: hidden; }
.js-anim [data-split].is-split { visibility: visible; }

/* progress bar */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 900; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
html:not(.js-anim) .progress { display: none; }

/* custom cursor: fine pointers only */
.cursor { position: fixed; left: 0; top: 0; z-index: 950; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--c-cursor, var(--c-accent)); pointer-events: none; mix-blend-mode: var(--cursor-blend, normal); transition: width 0.25s cubic-bezier(.16,1,.3,1), height 0.25s cubic-bezier(.16,1,.3,1), margin 0.25s cubic-bezier(.16,1,.3,1), opacity 0.2s; opacity: 0; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@media (pointer: coarse) { .cursor { display: none; } }
html:not(.js-anim) .cursor, .lite .cursor { display: none; }

/* marquee */
.mq { position: relative; overflow: hidden; }
.mq-track { display: flex; width: max-content; animation: mq var(--mq-dur, 30s) linear infinite; }
.mq.is-paused .mq-track, .mq.is-off .mq-track, .mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
.mq-toggle { position: absolute; right: 12px; top: 50%; translate: 0 -50%; z-index: 2; min-height: 40px; padding: 0 14px; border: 1px solid currentColor; border-radius: 999px; background: var(--c-bg); color: var(--c-fg); font: 500 0.8125rem/1 var(--f-body); cursor: pointer; }
@keyframes mq { to { transform: translateX(-50%); } }

/* horizontal journey: native scroll by default, pinned only when the engine takes over */
.hs-viewport { overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: clamp(16px, 4.4vw, 64px); overscroll-behavior-x: contain; }
.hs-track { display: flex; width: max-content; }
.hs-track > * { scroll-snap-align: start; }
.js-anim [data-hscroll].is-pinned { overflow: hidden; } .js-anim [data-hscroll].is-pinned .hs-viewport { overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .mq-toggle { display: none; }
}
