/*
  AutoWeb motion layer.

  Theme: the signal. AutoWeb's promise is "get found", so the motion is a blue signal going out.
  It pings out of the hero glow and lights the dot grid, marks the key word like a search hit,
  fills the header as you read, runs through the three steps, sweeps around the featured package
  and across the call-to-action buttons. Pages hand over to each other instead of blinking.

  Progressive: the head script adds .motion only when the visitor allows motion and the browser
  has IntersectionObserver, and motion.js must confirm within 3s or the class comes off again.
  Without .motion every element is static and visible. Reduced-motion visitors get the static
  design (autoweb-components.css switches every animation and transition off for them).

  Colours, type and spacing come from autoweb-tokens.css only.
*/

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-press: cubic-bezier(.25, .65, .3, 1);
  --signal: linear-gradient(90deg, var(--color-blue-deep), var(--color-blue) 60%, var(--color-blue-hover));
}

/* ---------- Header: reading progress (a position cue, so it shows for everyone) ---------- */

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--signal);
  transform-origin: left;
  scale: var(--scroll-progress, 0) 1;
  pointer-events: none;
}
.topbar { transition: background-color .3s ease; }
.topbar[data-scrolled] { background: rgba(13,20,25,.97); }

/* ---------- Marquee band (static, wrapped list until motion.js turns it into a moving strip) ---------- */

.marquee { position: relative; overflow: hidden; background: var(--dark-bg-alt); border-bottom: 1px solid var(--dark-line); }
.marquee ul { list-style: none; margin: 0 auto; padding: var(--space-3) var(--space-2); width: min(var(--content), 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-3); }
.marquee li { font: var(--text-h3); color: var(--dark-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.marquee.is-running ul { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.marquee-track { display: flex; width: max-content; padding-block: var(--space-3); translate: var(--strip-shift, 0) 0; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span { display: inline-flex; align-items: center; gap: var(--space-4); padding-inline-end: var(--space-4); font: var(--text-h1); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: var(--dark-text); }
.marquee-group svg { width: .55em; height: .44em; flex: none; color: var(--color-blue); }

@media (prefers-reduced-motion: no-preference) {

  /* ---------- Hero: the signal goes out ---------- */

  /* Two rings ping out of the glow, and the dot grid lights up behind them. */
  .hero .glow { animation: glow-in 1.6s var(--ease-out) both; }
  .hero .glow::before,
  .hero .glow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(20,154,253,.35);
    opacity: 0;
    animation: ping 2.6s var(--ease-out) .2s both;
  }
  .hero .glow::after { animation-delay: .75s; }
  .hero .dots { animation: dots-on 2.2s var(--ease-out) .1s both; }
  .hero .amark-crop { animation: amark-rise 1.8s var(--ease-out) .2s both; }

  /* Copy: the eyebrow tracks in, the headline rises word by word (motion.js splits it), the rest follows. */
  .hero-inner > * { animation: rise .9s var(--ease-out) .1s both; }
  .hero-inner > h1 { animation: title-rise 1.1s var(--ease-out) .15s backwards; }
  .hero-inner > h1.split { animation: none; }
  .hero-inner > h1 ~ * { animation-delay: .5s; }
  .hero-inner > h1 ~ * + * { animation-delay: .62s; }
  .hero-inner > h1 ~ * + * + * { animation-delay: .74s; }
  .hero h1 .eyebrow { animation: track-in 1.2s var(--ease-out) .05s both; }
  .hero h1.split .w > span { animation: word-up 1s var(--ease-out) both; animation-delay: calc(var(--wi, 0) * 40ms + 150ms); }
  .hero-meta .tag { animation: pop .6s var(--ease-out) both; }
  .hero-meta .tag:nth-child(1) { animation-delay: .82s; }
  .hero-meta .tag:nth-child(2) { animation-delay: .9s; }
  .hero-meta .tag:nth-child(3) { animation-delay: .98s; }

  /* The key word gets marked like a search hit once it lands. */
  .hero h1 .accent {
    background: linear-gradient(rgba(20,154,253,.22), rgba(20,154,253,.22)) no-repeat 0 92% / 0% .36em;
    padding-inline: .05em;
    margin-inline: -.05em;
    animation: highlight .8s var(--ease-out) var(--hl-delay, 1.1s) forwards;
  }

  /* The main hero button catches the light once the hero has settled. */
  .hero .hero-actions .btn-primary::after { animation: shine 1.2s var(--ease-out) 1.6s backwards; }

  /* ---------- Buttons: press feedback and a light sweep ---------- */

  .btn:not(.skip) { position: relative; isolation: isolate; overflow: hidden; transition: background var(--ease), border-color var(--ease), transform var(--ease), scale .16s var(--ease-press); }
  .btn:not(.skip)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    translate: -110% 0;
    pointer-events: none;
  }
  .btn-secondary::after { background: linear-gradient(110deg, transparent 30%, rgba(20,154,253,.35) 50%, transparent 70%); }
  .btn:not(.skip):active { scale: .97; }

  @media (hover: hover) and (pointer: fine) {
    .btn:not(.skip):hover::after { translate: 110% 0; transition: translate .75s var(--ease-out); }
  }

  /* ---------- Navigation ---------- */

  .navlinks > a:not(.btn) {
    padding-block: 6px;
    background: linear-gradient(var(--color-blue), var(--color-blue)) no-repeat 0 100% / 0 2px;
    transition: color var(--ease), background-size .35s var(--ease-out);
  }
  .navlinks > a:not(.btn):hover,
  .navlinks > a[aria-current="page"] { background-size: 100% 2px; }

  .nav-drop-panel { translate: 0 -8px; transition: opacity var(--ease), visibility var(--ease), translate .35s var(--ease-out); }
  .nav-drop:is(:hover, :focus-within) .nav-drop-panel { translate: 0 0; }
  .nav-drop:is(:hover, :focus-within) .nav-drop-panel a { animation: item-in .45s var(--ease-out) both; }
  .nav-drop-panel a:nth-child(2) { animation-delay: 35ms; }
  .nav-drop-panel a:nth-child(3) { animation-delay: 70ms; }
  .nav-drop-panel a:nth-child(4) { animation-delay: 105ms; }
  .nav-drop-panel a:nth-child(5) { animation-delay: 140ms; }

  .menu[open] .menu-panel { animation: panel-in .35s var(--ease-out) both; }
  .menu[open] .menu-panel > ul > li { animation: item-in .45s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 35ms + 60ms); }
  .menu-panel > ul > li:nth-child(2) { --n: 1; }
  .menu-panel > ul > li:nth-child(3) { --n: 2; }
  .menu-panel > ul > li:nth-child(4) { --n: 3; }
  .menu-panel > ul > li:nth-child(5) { --n: 4; }
  .menu-panel > ul > li:nth-child(6) { --n: 5; }
  .menu-panel > ul > li:nth-child(7) { --n: 6; }
  .menu-panel > ul > li:nth-child(8) { --n: 7; }

  /* ---------- FAQ: answers open smoothly where the browser can animate to auto height ---------- */

  .faq summary::after { transition: rotate .4s var(--ease-out); }
  .motion .faq summary::after,
  .motion .faq details[open] summary::after { content: "+"; }
  .motion .faq details[open] summary::after { rotate: 135deg; }
  .motion .faq details[open] > div { animation: rise .5s var(--ease-out) both; }
  .motion .menu-group[open] ul { animation: rise .4s var(--ease-out) both; }
}

@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .motion { interpolate-size: allow-keywords; }
    .motion :is(.faq details, .menu-group)::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
    }
    .motion :is(.faq details, .menu-group)[open]::details-content { block-size: auto; }
  }
}

/* ---------- Scroll reveals (only while .motion is set; motion.js tags the elements) ---------- */

/* Transitions belong to the revealed state only, so hiding is instant and only arriving animates. */
.motion [data-reveal].is-revealed:not(.reveal-done) {
  transition:
    opacity .9s var(--ease-out) var(--reveal-delay, 0ms),
    translate 1.1s var(--ease-out) var(--reveal-delay, 0ms),
    scale 1.1s var(--ease-out) var(--reveal-delay, 0ms),
    clip-path 1.3s var(--ease-out) var(--reveal-delay, 0ms),
    letter-spacing 1.1s var(--ease-out) var(--reveal-delay, 0ms);
}
/* Pieces waiting to slide in from the side must never make the page scroll sideways on a phone. */
.motion :is(main, .footer) { overflow-x: clip; }
.motion [data-reveal]:not(.is-revealed) { opacity: 0; translate: 0 var(--space-4); }
.motion [data-reveal="left"]:not(.is-revealed) { translate: calc(var(--space-4) * -1) 0; }
.motion [data-reveal="right"]:not(.is-revealed) { translate: var(--space-4) 0; }
.motion [data-reveal="zoom"]:not(.is-revealed) { translate: 0 var(--space-4); scale: .92; }
.motion [data-reveal="eyebrow"]:not(.is-revealed) { translate: 0 var(--space-1); letter-spacing: .5em; }

/* Headings: each word rises out of its own mask. */
.motion .w { display: inline-block; overflow: clip; vertical-align: top; padding-block: .1em .22em; margin-block: -.1em -.22em; }
.motion .w > span { display: inline-block; }
.motion [data-reveal="words"]:not(.is-revealed) { opacity: 1; translate: none; }
.motion [data-reveal="words"].is-revealed .w > span { transition: translate 1s var(--ease-out), rotate 1s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0ms) + var(--wi, 0) * 35ms); }
.motion [data-reveal="words"]:not(.is-revealed) .w > span { translate: 0 115%; rotate: 4deg; }

/* Images wipe open inside their frame and settle from a push-in. */
.motion [data-reveal="wipe"] { --wipe-r: var(--radius-lg); }
.motion .map[data-reveal="wipe"] { --wipe-r: var(--radius-md); }
.motion [data-reveal="wipe"]:not(.reveal-done) { clip-path: inset(0 round var(--wipe-r)); }
.motion [data-reveal="wipe"]:not(.is-revealed) { opacity: 1; translate: var(--space-3) 0; clip-path: inset(0 100% 0 0 round var(--wipe-r)); }
.motion :is([data-reveal="wipe"], .work-card[data-reveal]).is-revealed:not(.reveal-done) img { transition: scale 1.6s var(--ease-out) var(--reveal-delay, 0ms); }
.motion :is([data-reveal="wipe"], .work-card[data-reveal]):not(.is-revealed) img { scale: 1.25; }

/* Portrait rises open from the bottom, then drifts inside its frame as you scroll. */
.motion .portrait img { scale: 1.12; translate: 0 calc(var(--par, 0) * 1%); }
.motion .portrait[data-reveal]:not(.reveal-done) { clip-path: inset(0 round var(--radius-xl)); }
.motion .portrait[data-reveal]:not(.is-revealed) { opacity: 1; clip-path: inset(100% 0 0 0 round var(--radius-xl)); }
.motion .portrait[data-reveal].is-revealed:not(.reveal-done) img { transition: scale 1.8s var(--ease-out) var(--reveal-delay, 0ms); }
.motion .portrait[data-reveal]:not(.is-revealed) img { scale: 1.45; }

/* Project page: the phone swings up beside the desktop shot, then floats at its own speed. */
.motion .work-phone[data-reveal="phone"] { translate: 0 var(--phone-y, 0px); }
.motion .work-phone[data-reveal="phone"].is-revealed:not(.reveal-done) { transition: opacity .9s var(--ease-out) calc(var(--reveal-delay, 0ms) + 250ms), transform 1.4s var(--ease-out) calc(var(--reveal-delay, 0ms) + 250ms); }
.motion .work-phone[data-reveal="phone"]:not(.is-revealed) { opacity: 0; translate: 0 var(--phone-y, 0px); transform: translateY(80px) rotate(8deg); }

/* Inside a card or panel: icons pop, step numbers slide, ticks draw, rows and tags follow one by one. */
.motion .is-revealed :is(.icon-tile, .step-num) { transition: opacity .6s var(--ease-out), scale .8s var(--ease-out), rotate .8s var(--ease-out), translate .8s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0ms) + 280ms); }
.motion [data-reveal]:not(.is-revealed) .icon-tile { opacity: 0; scale: .4; rotate: -25deg; }
.motion [data-reveal]:not(.is-revealed) .step-num { opacity: 0; translate: calc(var(--space-3) * -1) 0; }

.motion .is-revealed :is(tbody > tr, .terms-list > li, .tier-card li, .row > .tag, .checklist > li, .work-facts > div) {
  transition: opacity .6s ease, translate .8s var(--ease-out), scale .6s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 250ms + var(--n, 0) * 80ms);
}
.motion [data-reveal]:not(.is-revealed) :is(tbody > tr, .terms-list > li, .tier-card li, .card .checklist > li, .work-facts > div) { opacity: 0; translate: calc(var(--space-3) * -1) 0; }
.motion [data-reveal]:not(.is-revealed) .card .row > .tag,
.motion .card[data-reveal]:not(.is-revealed) .row > .tag { opacity: 0; scale: .7; }
.motion :is(tr, li, .tag, .work-facts > div):nth-child(2) { --n: 1; }
.motion :is(tr, li, .tag, .work-facts > div):nth-child(3) { --n: 2; }
.motion :is(tr, li, .tag, .work-facts > div):nth-child(4) { --n: 3; }
.motion :is(tr, li, .tag, .work-facts > div):nth-child(5) { --n: 4; }
.motion :is(tr, li, .tag, .work-facts > div):nth-child(6) { --n: 5; }
.motion :is(tr, li, .tag, .work-facts > div):nth-child(7) { --n: 6; }
.motion :is(tr, li, .tag, .work-facts > div):nth-child(8) { --n: 7; }

/* Ticks draw themselves (the check and file icons have pathLength="1"). */
.motion :is(li, .tier-note > span) > svg { stroke-dasharray: 1; }
.motion :is(.is-revealed li, li.is-revealed, .tier-note > span.is-revealed) > svg { transition: stroke-dashoffset .7s var(--ease-out) calc(var(--reveal-delay, 0ms) + 380ms + var(--n, 0) * 80ms); }
.motion [data-reveal]:not(.is-revealed) li > svg,
.motion :is(li, .tier-note > span)[data-reveal]:not(.is-revealed) > svg { stroke-dashoffset: 1; }

/* The featured package: a beam of light runs round its border when it arrives, and on hover. */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.motion .tier-card.featured { position: relative; }
.motion .tier-card.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--beam), transparent 0 62%, var(--color-blue-hover) 82%, var(--color-white) 86%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
}
.motion .tier-card.featured.is-revealed::before { animation: beam 2.4s linear .7s 2; }

/* Call-to-action band: a signal line runs along the top, the A-mark swings in, the button catches the light. */
.motion .cta-strip[data-reveal]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--signal);
  transform-origin: left;
}
.motion .cta-strip.is-revealed::before { transition: scale 1.5s var(--ease-out) .25s; }
.motion .cta-strip[data-reveal]:not(.is-revealed)::before { scale: 0 1; }
.motion .cta-strip .amark-crop { translate: var(--px, 0px) var(--py, 0px); transition: translate .9s var(--ease-out); }
.motion .cta-strip.is-revealed .amark-crop { transition: opacity 1.2s var(--ease-out) .3s, transform 1.4s var(--ease-out) .3s, translate .9s var(--ease-out); }
.motion .cta-strip[data-reveal]:not(.is-revealed) .amark-crop { opacity: 0; transform: translate(60px, 60px) rotate(-14deg); }
.motion .cta-strip.is-revealed .btn-primary::after { animation: shine 1.2s var(--ease-out) 1s backwards; }

/* Project cards: a loading bar runs across the browser frame as the card arrives. */
.motion .work-card .browser { position: relative; }
.motion .work-card .browser::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 2px;
  background: var(--signal);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}
.motion .work-card.is-revealed .browser::before { animation: load-bar 1.5s var(--ease-out) .35s both; }

/* The founder's line lights up word by word as you read it. */
.motion .pledge.scrub .sw { opacity: .2; transition: opacity .4s ease; }
.motion .pledge.scrub .sw.lit { opacity: 1; }

/* Light sections open out from a rounded panel to full width as they scroll in. */
.motion .theme-light[data-expand] { clip-path: inset(0 var(--inset, 0px) round var(--expand-r, 0px)); }

/* ---------- Three steps: a signal line fills as you scroll and lights each step ---------- */

.motion [data-flow] { position: relative; }
.motion [data-flow]::before,
.motion [data-flow]::after { content: ""; position: absolute; border-radius: var(--radius-pill); pointer-events: none; }
.motion [data-flow]::before { background: var(--line); }
.motion [data-flow]::after { background: var(--signal); }
.motion [data-flow] > * { position: relative; transition: border-color .5s ease; }
.motion [data-flow] > *::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition: background-color .4s ease, border-color .4s ease, scale .5s var(--ease-out), box-shadow .5s ease;
}
.motion [data-flow] > .is-lit { border-color: var(--color-blue); }
.motion [data-flow] > .is-lit::before { border-color: var(--color-blue-hover); background: var(--color-blue); scale: 1.25; box-shadow: 0 0 0 5px rgba(20,154,253,.22); }
.motion [data-flow] .step-num { transform-origin: left center; }
.motion [data-flow] .step-num { transition: scale .6s var(--ease-out), color .4s ease; }
.motion [data-flow] > .is-revealed .step-num { transition: opacity .6s var(--ease-out), translate .8s var(--ease-out), scale .6s var(--ease-out), color .4s ease; transition-delay: calc(var(--reveal-delay, 0ms) + 280ms), calc(var(--reveal-delay, 0ms) + 280ms), 0ms, 0ms; }
.motion [data-flow] > :not(.is-lit) .step-num { color: var(--muted); }
.motion [data-flow] > .is-lit .step-num { scale: 1.12; }

@media (min-width: 700px) {
  .motion [data-flow] { padding-top: var(--space-4); }
  .motion [data-flow]::before,
  .motion [data-flow]::after { left: 0; right: 0; top: 12px; height: 2px; }
  .motion [data-flow]::after { transform-origin: left; scale: var(--flow, 0) 1; }
  .motion [data-flow] > *::before { top: calc(var(--space-4) * -1 + 6px); left: var(--space-3); }
}
@media (max-width: 699px) {
  .motion [data-flow] { padding-left: 32px; }
  .motion [data-flow]::before,
  .motion [data-flow]::after { top: 0; bottom: 0; left: 6px; width: 2px; }
  .motion [data-flow]::after { transform-origin: top; scale: 1 var(--flow, 0); }
  .motion [data-flow] > *::before { top: 34px; left: -32px; }
}

/* ---------- Hero parallax (motion.js sets --shift from 0 to 1 as the hero scrolls away) ---------- */

.motion .hero-inner { translate: 0 calc(var(--shift, 0) * -64px); opacity: calc(1 - var(--shift, 0) * 1.25); }
.motion .hero .amark-crop { translate: 0 calc(var(--shift, 0) * 180px); }
.motion .hero .glow { translate: 0 calc(var(--shift, 0) * 120px); }

/* ---------- Pointer effects (mouse and trackpad only) ---------- */

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  /* A patch of the dot grid lights up around the pointer. */
  .motion .hero:has(> .dots)::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--color-blue) 1.2px, transparent 1.7px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000, transparent);
    mask-image: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), #000, transparent);
    opacity: var(--spot, 0);
    transition: opacity .5s ease;
  }

  /* Cards tilt toward the pointer, and their border lights up where it points. */
  .motion [data-tilt] { position: relative; transition: transform .6s var(--ease-out), border-color var(--ease); }
  .motion [data-tilt]:hover { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px); }
  .motion [data-tilt]::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--color-blue), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
  }
  .motion [data-tilt]:hover::after { opacity: 1; }
  .motion .tier-card.featured[data-tilt]:hover::before { animation: beam 2.4s linear infinite; }

  /* Project cards tilt their browser frame. */
  .motion .work-card[data-tilt]:hover { transform: none; }
  .motion .work-card[data-tilt]::after { content: none; }
  .motion .work-card[data-tilt] .browser { transition: transform .6s var(--ease-out), border-color var(--ease); }
  .motion .work-card[data-tilt]:hover .browser { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px); }
  .motion .work-card[data-tilt].reveal-done img { transition: scale 1.1s var(--ease-out); }
  .motion .work-card[data-tilt]:hover img { scale: 1.04; }
}

/* ---------- Page transitions (cross-document View Transitions) ----------
   Supporting browsers lift the old page away and raise the new one while the header holds still.
   Clicking a project card morphs its screenshot into the project page's main screenshot.
   Other browsers navigate normally. */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .topbar { view-transition-name: site-header; }
  .scroll-progress { view-transition-name: scroll-progress; }
  .vt-morph .work-show > .browser { view-transition-name: work-shot; }

  ::view-transition-old(root) { animation: page-out .22s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: page-in .55s var(--ease-out) .16s both; }
  ::view-transition-group(site-header) { animation-duration: .3s; }
  ::view-transition-group(scroll-progress) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
  ::view-transition-group(work-shot) { animation-duration: .8s; animation-timing-function: var(--ease-out); }
  ::view-transition-old(work-shot),
  ::view-transition-new(work-shot) { height: 100%; object-fit: cover; overflow: clip; }
}

@media print {
  .motion [data-reveal], .motion [data-reveal] * { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; transform: none !important; }
  .motion .hero-inner { opacity: 1 !important; translate: none !important; }
}

/* ---------- Keyframes ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes title-rise { from { transform: translateY(.4em); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(-20% -10% -30% -10%); } }
@keyframes word-up { from { transform: translateY(115%) rotate(4deg); } }
@keyframes track-in { from { opacity: 0; letter-spacing: .6em; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
@keyframes highlight { to { background-size: 100% .36em; } }
@keyframes glow-in { from { opacity: 0; transform: scale(.6); } }
@keyframes ping { from { opacity: 1; transform: scale(.05); } to { opacity: 0; transform: scale(1.5); } }
@keyframes dots-on {
  from { clip-path: circle(0 at calc(100% - 200px) 140px); }
  to { clip-path: circle(150% at calc(100% - 200px) 140px); }
}
@keyframes amark-rise { from { opacity: 0; transform: translateY(120px); clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes shine { from { translate: -110% 0; } to { translate: 110% 0; } }
@keyframes beam {
  0% { --beam: 0deg; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { --beam: 360deg; opacity: 0; }
}
@keyframes load-bar {
  0% { opacity: 1; scale: 0 1; }
  70% { opacity: 1; scale: 1 1; }
  100% { opacity: 0; scale: 1 1; }
}
@keyframes item-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(20px); } }
