/* =============================================================================
   Website motion layer: loaded after website.css and drawn entirely from its tokens
   (--accent, --accent-bright, --accent-deep, --accent-tint, --mist, --mist-2, --ease),
   so the same file serves each product in its own colour.
   Playful but clean: shapes that float, cards that lift, rows that drift until you
   touch them. Still no glass, no gradients, no glow.
   ============================================================================= */

:root { --bounce: cubic-bezier(0.34, 1.56, 0.64, 1); }   /* hover lifts: a small overshoot */

/* 1. INTRO: the product mark and a 0-100% counter, once per visit (the head script decides; the
   motion script counts and lifts it away). Opening animations wait underneath until it goes.
   ---------------------------------------------------------------------------- */
.preloader { position: fixed; inset: 0; z-index: 10000; display: none; place-content: center; justify-items: center; gap: 18px; background: var(--paper); clip-path: inset(0 0 0 0); }
.preloading .preloader, .preloader.is-leaving { display: grid; }
.preloader.is-leaving { transition: clip-path 750ms var(--ease); }
.preloader.is-up { clip-path: inset(0 0 100% 0); }
.preloader img { width: 72px; height: 72px; animation: bob 900ms ease-in-out infinite alternate; }
.preloader__count { font-size: clamp(3rem, 2rem + 4vw, 6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.preloader__bar { width: 160px; height: 4px; border-radius: 4px; background: var(--mist-2); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--accent-bright); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.preloading body { overflow: hidden; }
.preloading [data-rise], .preloading .hero h1 .line > span, .preloading .rise-mask > span { animation-play-state: paused !important; }

/* 2. FLOATING SHAPES: rings, dots, soft squares and pixel pairs. The span takes scroll parallax
   and cursor drift (script); the <i> inside bobs on its own.
   ---------------------------------------------------------------------------- */
.hero, .page-head, .band { position: relative; }
.hero > .wrap, .page-head > .wrap { position: relative; z-index: 1; }
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; border-radius: inherit; }
.floater { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); }
.floater i { position: relative; display: block; width: 100%; height: 100%; animation: bob 6.5s ease-in-out var(--d, 0s) infinite alternate; }
.floater--ring i { border: 3px solid var(--fl, var(--accent-bright)); border-radius: 50%; opacity: 0.5; }
.floater--dot i { border-radius: 50%; background: var(--fl, var(--accent-bright)); opacity: 0.8; }
.floater--square i { border-radius: 28%; background: var(--fl, var(--accent-tint)); }
.floater--pixel i { width: 50%; height: 50%; background: var(--fl, var(--accent-bright)); }
.floater--pixel i::after { content: ""; position: absolute; left: 100%; top: 100%; width: 100%; height: 100%; background: inherit; }
.floaters--band { --fl: rgba(255, 255, 255, 0.3); }
.band > :not(.floaters) { position: relative; z-index: 1; }
@keyframes bob { from { transform: translateY(-8px) rotate(-5deg); } to { transform: translateY(10px) rotate(6deg); } }

/* 3. HOME OPENING: words on the left, the mosaic on the right, the figures centred underneath
   ---------------------------------------------------------------------------- */
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px var(--gap); align-items: center; }
.hero__grid h1 { font-size: clamp(2rem, 0.4rem + 3.9vw, 4.25rem); }
.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px clamp(28px, 4vw, 64px); width: fit-content; max-width: 100%; margin: clamp(48px, 8vh, 88px) auto 0; padding: 24px clamp(24px, 3vw, 40px); }
.hero__stats div { gap: 8px; justify-items: center; text-align: center; transition: transform 420ms var(--bounce); }
.hero__stats div::after { content: ""; order: 1; width: 28px; height: 4px; border-radius: 4px; background: var(--accent-bright); transition: width 420ms var(--bounce); }
@media (hover: hover) and (pointer: fine) {
  .hero__stats div:hover { transform: translateY(-4px); }
  .hero__stats div:hover::after { width: 48px; }
}

/* The mosaic: one mountain picture cut into a 6 x 6 grid; seven tiles hold the product's story.
   Tiles near the cursor come into colour (--near, set by script); feature tiles flip to name it. */
.mosaic-wrap { perspective: 1200px; }
.mosaic { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; width: min(100%, 500px); margin-inline: auto; aspect-ratio: 1; padding: 3px; background: var(--ink); border-radius: 18px; transform-style: preserve-3d; }
.mosaic__cell { --near: 0; position: relative; min-width: 0; border-radius: 3px; background-color: #6B7280; background-repeat: no-repeat; background-size: auto 600%; filter: grayscale(calc(1 - var(--near))) brightness(calc(0.82 + var(--near) * 0.2)); transform: scale(calc(1 + var(--near) * 0.05)); transition: filter 420ms ease, transform 420ms var(--ease); }
.mosaic__cell:first-child { border-top-left-radius: 15px; }
.mosaic__cell:nth-child(6) { border-top-right-radius: 15px; }
.mosaic__cell:nth-child(31) { border-bottom-left-radius: 15px; }
.mosaic__cell:last-child { border-bottom-right-radius: 15px; }
/* Feature tiles keep their colour (only the mountain greys out away from the cursor) */
.mosaic__feature { z-index: 1; padding: 0; border: 0; cursor: pointer; background: none; perspective: 600px; font: inherit; color: inherit; filter: none; }
.mosaic__flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 600ms var(--ease); }
.mosaic__face { position: absolute; inset: 0; border-radius: 3px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mosaic__face--icon { display: grid; place-items: center; background: var(--tile, var(--accent)); color: var(--tile-ink, var(--paper)); }
.mosaic__face--icon .icon { width: 46%; height: 46%; }
.mosaic__face--logo { display: grid; place-items: center; background: var(--paper); }
.mosaic__face--logo img { width: 70%; height: 70%; object-fit: contain; }
.mosaic__face--back { display: grid; place-content: center; gap: 2px; padding: 4px; text-align: center; background: var(--accent-deep); color: var(--paper); transform: rotateY(180deg); font-size: clamp(0.56rem, 0.46rem + 0.35vw, 0.74rem); line-height: 1.15; font-weight: 600; }
.mosaic__face--back small { font-size: 0.85em; font-weight: 500; opacity: 0.85; }
.mosaic__feature:hover .mosaic__flip, .mosaic__feature:focus-visible .mosaic__flip, .mosaic__feature.is-flipped .mosaic__flip { transform: rotateY(180deg); }
.mosaic__feature:is(:hover, :focus-visible, .is-flipped) { filter: none; z-index: 2; }
.mosaic__feature:focus-visible { outline-offset: 2px; }
.mosaic__caption { width: fit-content; max-width: 100%; min-height: 1.6em; margin: 16px auto 0; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); text-align: center; font-size: var(--step-small); color: var(--soft); }
.mosaic__caption strong { color: var(--ink); font-weight: 600; }
.mosaic__caption a { color: var(--accent); font-weight: 600; }

/* 4. CARDS: a soft mist card with an icon tile; lifts (with a little overshoot) on hover
   ---------------------------------------------------------------------------- */
.features { gap: clamp(14px, 1.6vw, 20px); }
.feature { padding: clamp(22px, 2.2vw, 30px); border-radius: var(--radius); background: var(--mist); transition: transform 460ms var(--bounce), background-color 220ms ease; }
.feature h3 { font-size: 1.1875rem; line-height: 1.25; }
.feature h3::before { content: none; }
.feature p { font-size: var(--step-small); line-height: 1.6; }
.features--2 > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* no orphan in a pair grid */
.feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); transition: background-color 220ms ease, color 220ms ease, transform 420ms var(--bounce); }
.feature__icon .icon { width: 24px; height: 24px; }
.feature.is-lit, .feature:hover { background: var(--mist-2); }
.feature.is-lit .feature__icon { background: var(--accent); color: var(--paper); }
.stat, .plan, .founder, .quote { transition: transform 460ms var(--bounce), background-color 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  .feature:hover, .plan:hover, .founder:hover { transform: translateY(-6px); }
  .feature:hover .feature__icon { background: var(--accent); color: var(--paper); animation: wiggle 620ms var(--ease); }
  .stat:hover { transform: translateY(-6px); background: var(--accent-tint); }
}
@keyframes wiggle { 0% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }

/* 5. WORD MARQUEE: drifting past (a CSS loop over two copies); pauses under the pointer
   ---------------------------------------------------------------------------- */
.marquee { overflow: hidden; margin-bottom: var(--sec); padding-block: 8px; }
.marquee + .sec { padding-top: 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); padding-right: clamp(22px, 3vw, 48px); }
.marquee__word { font-size: clamp(2.5rem, 1.2rem + 5vw, 6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.15; white-space: nowrap; }
.marquee__word--outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.marquee__pixel { position: relative; flex: none; width: 14px; height: 14px; margin-right: 14px; background: var(--accent-bright); }
.marquee__pixel::after { content: ""; position: absolute; left: 100%; top: 100%; width: 100%; height: 100%; background: inherit; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 6. DRIFTING ROWS: cards slide sideways on their own (script) and stop while you hover,
   focus or scroll them. Arrows sit above the row, top right.
   ---------------------------------------------------------------------------- */
.drift { position: relative; }
.drift__nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.drift__nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font: 600 1.125rem/1 var(--font); cursor: pointer; transition: transform 160ms var(--ease), background-color 180ms ease; }
.drift__nav button:hover { background: var(--accent); }
.drift__nav button:active { transform: scale(0.94); }
.drift-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.6); gap: var(--gap); align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 16px; scrollbar-width: thin; scrollbar-color: var(--mist-2) transparent; }
.drift-track > * { scroll-snap-align: start; min-width: 0; }
.drift-track.is-moving { scroll-snap-type: none; }
.drift-track .founder, .drift-track .feature { height: 100%; }

/* 7. CARDS BESIDE A PICTURE: section cards beside an illustration that stays in view
   ---------------------------------------------------------------------------- */
.aud__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.aud--flip .aud__body, .aud__body--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.aud--flip .aud__visual { order: -1; }
.aud__visual { position: sticky; top: 160px; min-width: 0; }
.aud__visual--stack { display: grid; gap: 18px; }
.aud { scroll-margin-top: 150px; }

/* Jump-to-section pills; the accent pill slides to whichever section you are reading */
.aud-nav { position: sticky; top: 72px; z-index: 20; display: flex; justify-content: center; padding: 20px var(--m) 0; pointer-events: none; }
.aud-nav__scroll { position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--mist-2); pointer-events: auto; }
.aud-nav__scroll::-webkit-scrollbar { display: none; }
.aud-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.aud-nav a { position: relative; z-index: 1; display: block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: var(--step-small); white-space: nowrap; text-decoration: none; color: var(--soft); transition: color 260ms ease; }
.aud-nav a:hover { color: var(--ink); }
.aud-nav a[aria-current] { color: var(--paper); }
.aud-nav__pill { position: absolute; left: 0; top: 6px; bottom: 6px; width: 0; border-radius: 999px; background: var(--accent); opacity: 0; transition: transform 520ms var(--bounce), width 520ms var(--bounce), opacity 200ms ease; }
.aud-nav + .sec { padding-top: clamp(56px, 6vw, 96px); }

/* 8. ILLUSTRATIVE SCREENS: a white app window on a tinted mat. Script adds .is-on when one
   scrolls into view; the empty starting states apply only once script has said it will
   (html.screens-ready).
   ---------------------------------------------------------------------------- */
.screen-wrap { perspective: 1000px; padding: clamp(14px, 1.6vw, 22px); border-radius: 32px; background: var(--accent-tint); }
.screen { margin: 0; overflow: hidden; border-radius: 20px; background: var(--paper); transform-style: preserve-3d; }
.screen__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--mist); }
.screen__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--mist-2); }
.screen__bar span:first-child { background: var(--accent-bright); }
.screen__bar b { margin-left: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen__body { display: grid; gap: 18px; padding: clamp(18px, 2vw, 26px); }
.screen__chip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 10px 16px; border-radius: 999px; background: var(--mist); font-size: var(--step-small); }
.screen__chip b { color: var(--accent); font-weight: 600; }
.screen__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.screen__total span { font-size: var(--step-small); color: var(--soft); }
.screen__total b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.screen__label { font-size: 0.8125rem; font-weight: 600; color: var(--soft); }

/* A row: label, a filling bar, a figure */
.meter { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: var(--step-small); }
.meter span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.meter i { height: 10px; border-radius: 10px; background: var(--mist-2); overflow: hidden; }
.meter em { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--accent-bright); transition: width 1.1s var(--ease) calc(var(--i, 0) * 140ms); }
.screens-ready .screen:not(.is-on) .meter em { width: 0; }

/* A score ring with the figure in its middle */
.score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.ring { position: relative; display: grid; place-items: center; width: 108px; }
.ring svg { width: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ring circle { fill: none; stroke-width: 5; }
.ring__bg { stroke: var(--mist-2); }
.ring__fg { stroke: var(--accent-bright); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); transition: stroke-dashoffset 1.4s var(--ease) 0.2s; }
.screens-ready .screen:not(.is-on) .ring__fg { stroke-dashoffset: 100; }
.score p { font-size: var(--step-small); color: var(--soft); }
.score strong { display: block; color: var(--ink); font-weight: 600; }

/* Columns that grow */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; height: 150px; }
.bars__col { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; text-align: center; font-size: 0.75rem; color: var(--soft); }
.bars__col i { align-self: end; height: calc(var(--h) * 1%); border-radius: 8px 8px 4px 4px; background: var(--accent-tint); transition: height 900ms var(--bounce) calc(var(--i, 0) * 90ms), background-color 200ms ease; }
.bars__col.is-key i { background: var(--accent-bright); }
.bars__col:hover i { background: var(--accent); }
.screens-ready .screen:not(.is-on) .bars__col i { height: 0; }

/* A ledger: rows that slide in, a running balance */
.ledger { display: grid; gap: 2px; font-size: var(--step-small); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--mist); font-variant-numeric: tabular-nums; transition: transform 600ms var(--ease) calc(var(--i, 0) * 120ms), opacity 600ms ease calc(var(--i, 0) * 120ms); }
.ledger__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger__row em { font-style: normal; color: var(--soft); }
.ledger__row b { font-weight: 600; min-width: 64px; text-align: right; }
.ledger__row--head { background: none; font-size: 0.75rem; font-weight: 600; color: var(--soft); }
.screens-ready .screen:not(.is-on) .ledger__row:not(.ledger__row--head) { opacity: 0; transform: translateX(-16px); }

/* Chips that pop in */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 7px 12px; border-radius: 999px; background: var(--mist); font-size: 0.8125rem; font-weight: 500; transition: transform 460ms var(--bounce) calc(0.3s + var(--i, 0) * 0.08s), opacity 300ms ease calc(0.3s + var(--i, 0) * 0.08s); }
.chips li b { color: var(--accent); font-weight: 600; }
.screens-ready .screen:not(.is-on) .chips li { transform: scale(0.6); opacity: 0; }

.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--paper); transition: transform 520ms var(--bounce) 1s; }
.screens-ready .screen:not(.is-on) .tick { transform: scale(0); }

/* 9. ORBIT: steps or roles circling the product mark. Pauses on hover; a card lights its node
   ---------------------------------------------------------------------------- */
/* Narrower than its column by about one node, so the labels on the left and right never poke out */
.orbit { position: relative; container-type: inline-size; width: min(100% - 96px, 440px); aspect-ratio: 1; margin-inline: auto; }
.orbit__ring { position: absolute; inset: 11%; border: 2px dashed var(--mist-2); border-radius: 50%; }
.orbit__ring--inner { inset: 31%; border: 2px solid var(--accent-tint); }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 24%; height: auto; translate: -50% -50%; padding: 4%; border-radius: 28%; background: var(--paper); }
.orbit__spin { position: absolute; inset: 0; animation: spin 48s linear infinite; }
.orbit__node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-39cqi) rotate(calc(-1 * var(--a))); }
.orbit__face { position: absolute; translate: -50% -50%; display: grid; justify-items: center; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--paper); border: 1px solid var(--mist-2); color: var(--accent); white-space: nowrap; animation: spin 48s linear infinite reverse; transition: background-color 220ms ease, color 220ms ease, scale 420ms var(--bounce); }
.orbit__face b { font-size: 0.8125rem; font-weight: 600; color: var(--ink); transition: color 220ms ease; }
.orbit__node.is-lit .orbit__face { background: var(--accent); color: var(--paper); scale: 1.12; }
.orbit__node.is-lit .orbit__face b { color: var(--paper); }
.orbit:hover .orbit__spin, .orbit:hover .orbit__face, .orbit.is-paused .orbit__spin, .orbit.is-paused .orbit__face { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 10. CONTACT: icon tiles on the details; the form panel lifts while you fill it in
   ---------------------------------------------------------------------------- */
.details--icons > div { position: relative; min-height: 48px; padding-left: 64px; }
.details--icons .feature__icon { position: absolute; left: 0; top: 0; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .details--icons > div:hover .feature__icon { background: var(--accent); color: var(--paper); transform: rotate(-8deg) scale(1.06); }
}
.panel { transition: transform 460ms var(--bounce), background-color 220ms ease; }
.panel:focus-within { transform: translateY(-4px); background: var(--accent-tint); }

/* 11. RESPONSIVE
   ---------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .drift-track { grid-auto-columns: calc((100% - var(--gap)) / 1.7); }
}
@media (max-width: 899px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .mosaic { width: min(100%, 440px); }
  .aud__body, .aud--flip .aud__body, .aud__body--flip { grid-template-columns: minmax(0, 1fr); }
  .aud__visual { position: static; width: min(100%, 520px); margin-inline: auto; }
  .aud--flip .aud__visual { order: 0; }
  .aud-nav { top: 66px; padding-top: 14px; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .drift-track { grid-auto-columns: 84%; }
  .drift__nav { display: none; }
  /* Fewer, smaller shapes on phones, and none drifting across the headline */
  .floaters--page .floater:nth-child(n+4), .floaters--hero .floater:nth-child(n+4), .floaters .floater--ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* Looping motion stops outright (a 1ms infinite loop would flicker) */
  .floater i, .marquee__track, .orbit__spin, .orbit__face, .preloader img { animation: none !important; }
  .marquee { overflow-x: auto; }
  .mosaic__cell { filter: none; }
}
