/* Version 2 — motion layer (2026-10-19, client: "looks flat, make it lively"). One plan for the whole page:
   typing hero headline, words rising in every section heading, a read-along paragraph, shimmer on the glass cards,
   pointer tilt on the feature cards, softer hovers and field glows. Transform/opacity only; everything is switched
   off for prefers-reduced-motion and the content stays fully readable without script. Behaviour: motion.js. */

/* 1. hero headline types itself; the full text is laid out from the start (invisible letters), so nothing jumps */
.js [data-type] .tc { opacity: 0; }
.js [data-type] .tc.on { opacity: 1; }
.js [data-type] em .tc.on { animation: tcIn .35s var(--v2-ease) both; }
@keyframes tcIn { from { opacity: 0; filter: blur(4px); } }
.caret { display: inline-block; width: .06em; height: .9em; margin-left: .04em; vertical-align: -.08em; border-radius: 2px; background: var(--brand-700); animation: caret 1s steps(1) infinite; }
.caret.is-done { animation: caret 1s steps(1) 2, caretOut .6s 2s forwards; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes caretOut { to { opacity: 0; } }

/* 2. section headings: words rise into place one after another */
.js [data-words] .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-words] .wd > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--v2-ease); transition-delay: calc(var(--i) * 55ms + .05s); }
.js .is-in [data-words] .wd > span, .js [data-words].is-on .wd > span { transform: none; }

/* 3. read-along paragraph: words light up as it scrolls through the view */
.js [data-read] .rw { opacity: .22; transition: opacity .35s linear; }
.js [data-read] .rw.lit { opacity: 1; }

/* 4. shimmer: a light sweep across the glass cards when they arrive and on hover */
.who2__card { position: relative; overflow: hidden; }
.who2__card::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none; transform: skewX(-18deg) translateX(0);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); opacity: 0; }
.who2.is-in .who2__card::after { animation: shimmer 1.6s var(--v2-ease) .9s; }
.who2.is-in .who2__card:nth-child(2)::after { animation-delay: 1.2s; }
.who2__card:hover::after { animation: shimmer 1.2s var(--v2-ease); }
@keyframes shimmer { 0% { opacity: 1; transform: skewX(-18deg) translateX(0); } 100% { opacity: 1; transform: skewX(-18deg) translateX(420%); } }
.who2__mark svg { transition: transform 1.2s var(--v2-ease); }
.who2.is-in .who2__mark svg { animation: markIn 1.4s var(--v2-ease) .5s both; }
.who2__card:hover .who2__mark svg { transform: rotate(45deg) scale(1.06); }
@keyframes markIn { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }

/* 5. feature cards tilt toward the pointer (motion.js sets --rx/--ry) */
.fcard { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--v2-ease), box-shadow .5s; will-change: transform; }
.fcard:hover { box-shadow: inset 0 0 0 1px #e3eaea, 0 30px 60px -36px rgba(10,69,80,.35); }
.js .feat2 .fcard[data-up] { transition: opacity .85s var(--v2-ease), transform .5s var(--v2-ease), box-shadow .5s; }

/* 6. softer hovers and focus glows across sections */
.talk2__item { transition: transform .45s var(--v2-ease); }
.talk2__item:hover { transform: translateX(4px); }
.talk2__ico { transition: background-color .3s, color .3s; }
.talk2__item:hover .talk2__ico { background: var(--gold-500); color: var(--brand-900); }
.form2__f input, .form2__f select, .form2__f textarea { transition: box-shadow .3s, background-color .3s, transform .3s var(--v2-ease); }
.form2__f input:focus, .form2__f select:focus, .form2__f textarea:focus { transform: translateY(-1px); }
.stab { transition: color .3s, transform .4s var(--v2-ease); }
.stab:hover { transform: translateY(-2px); }
.b2 { transition: background-color .3s, color .3s, border-color .3s, transform .45s var(--v2-ease), box-shadow .45s; }
.b2:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(10,69,80,.55); }
.b2:active { transform: translateY(0) scale(.98); }
.hero2__badge { transition: transform .45s var(--v2-ease); }
.hero2__badge:hover { transform: translateY(-2px); }
.hero2__face { transition: transform .45s var(--v2-ease); }
.hero2__badge:hover .hero2__face { transform: translateY(-3px); }
.hero2__badge:hover .hero2__face:nth-child(2) { transition-delay: .05s; } .hero2__badge:hover .hero2__face:nth-child(3) { transition-delay: .1s; }
.hero2__frame { transition: transform 1.2s var(--v2-ease); }
.hero2__shots:hover .hero2__frame { transform: translateY(-8px); }

@media (prefers-reduced-motion: reduce) {
  .js [data-type] .tc, .js [data-read] .rw { opacity: 1 !important; animation: none !important; }
  .caret { display: none; }
  .js [data-words] .wd > span { transform: none !important; transition: none !important; }
  .who2__card::after, .who2__mark svg { animation: none !important; }
  .fcard { transform: none !important; }
}
