/*
  motion-options.css — the v14 homepage motion treatments.

  Include on the homepage AFTER the existing homepage-v14 stylesheets:
    <link rel="stylesheet" href="/homepage-v14/motion-options.css" />
    <script is:inline src="/homepage-v14/motion-options.js" defer></script>

  Nothing in this file applies unless motion-options.js puts data-motion on <html>.
  It does that for the plain homepage, where the chosen treatment — Editorial Reveal
  — is the default, and for /?motion=frame and /?motion=lightline. It does not do it
  for /?motion=off, which is the untouched baseline.

  Every rule below sits inside one prefers-reduced-motion: no-preference block, so a
  visitor who asks for reduced motion gets the approved static page on every option.
  With JavaScript off, no attribute is ever set and none of this applies either.
  Contact actions (hero buttons, header call button, mobile call bar, contact band
  buttons, the welcome strip) are never hidden, delayed, clipped or made unclickable.

  Slugs and what moves:
    editorial  typographic reveal (DEFAULT)  (word-by-word hero, curtain headings,
                                              hairline wipes, the five How-it-works
                                              steps travelling in from the right)
    frame      framing + photographic depth  (photo opens out of a frame, focus pull,
                                              parallax drift, blur-to-sharp headings)
    lightline  scroll-led light and line     (one light pass over the hero, then every
                                              reveal is tied to scroll position)
*/

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

  /* ---------------------------------------------------------------- 0. shared */

  /* The treatment takes over the hero headline, so the existing two-beat hero timer
     and the older scroll-driven line reveal step aside instead of running twice and
     preempting it. site.js stops writing to both while data-motion is set; these
     rules make the hand-over safe even on the first frame, before site.js has run. */
  html[data-motion] .hero-response > span,
  html[data-motion] .hero-response > em { animation: none !important; }
  html[data-motion] [data-reveal-lines] > * { --line-reveal: 1 !important; }
  html[data-motion] .hero-response > em::after { animation: none; transition: none; transform: scaleX(0); }

  /* That last rule covers the sympathetic gold line under "We help you through it.":
     it is scroll-driven in the approved page and would otherwise be drawn before the
     words it belongs to. Each treatment re-times it for itself further down. */

  /* editorial masks the hero words individually, so the lines themselves stay lit:
     the legacy .32 resting opacity must not hold them down while they rise. */
  html[data-motion="editorial"] .hero-response > span,
  html[data-motion="editorial"] .hero-response > em { opacity: 1 !important; }

  /* "Injured?" is an inline span in the real markup; transforms need a block box. */
  html[data-motion] .hero-title { display: block; position: relative; }

  /* The office sign is as wide as the content column, so whatever a treatment does
     to it is contained here and can never reach past the gutter into a sideways
     scrollbar. The clip margin leaves room for the caption link's focus ring. */
  html[data-motion] .office-feature {
    overflow: clip;
    overflow-clip-margin: 6px;
  }

  /* Contact paths stay instantly available in every treatment. */
  html[data-motion] .hero-actions,
  html[data-motion] .hero-actions *,
  html[data-motion] .mobile-actions,
  html[data-motion] .mobile-actions *,
  html[data-motion] .welcome-benefits,
  html[data-motion] .welcome-benefits *,
  html[data-motion] .cta__actions,
  html[data-motion] .cta__actions *,
  html[data-motion] .site-header .nav-cta,
  html[data-motion] [data-mo-kind] a[href^="tel:"],
  html[data-motion] [data-mo-kind] a[href^="sms:"] {
    opacity: 1 !important;
    visibility: visible !important;
    clip-path: none !important;
    filter: none !important;
    animation-name: none !important;
  }

  /* Once a reveal has finished the element is released back to the approved look.
     transform is deliberately not reset here, so the existing hover lifts survive. */
  html[data-motion] [data-mo-kind].mo-done {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    clip-path: none !important;
  }
  html[data-motion] [data-mo-kind].mo-done > * { clip-path: none !important; }
  html[data-motion] [data-mo-kind="rule"].mo-done { transform: scaleX(1) !important; }
  /* the steps rest at their real position, never at the offset they travelled from */
  html[data-motion] [data-mo-kind="step"].mo-done { transform: none !important; }

  /* A step waiting its turn in the queue holds the armed state it already has, so
     nothing flashes between crossing the reading line and being released. */
  html[data-motion] [data-mo-kind="step"].mo-queued { animation: none; }

  /* ------------------------------------------------- 1. frame — framed portrait */

  /* The panorama is clipped to its own box, so the slight scale that makes room for
     the parallax drift can never bleed over the copy below it. */
  html[data-motion="frame"] .hero-panorama {
    clip-path: inset(0 0 0 0);
  }
  html[data-motion="frame"] .hero-wide .hero-panorama img {
    transform: translate3d(0, calc(var(--mo-par, 0) * 1%), 0) scale(1.055);
    will-change: transform;
  }

  /* Photographic depth: a vignette that deepens as the hero scrolls away. */
  html[data-motion="frame"] .hero-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(118% 94% at 64% 42%, transparent 36%, #1b1014 100%);
    opacity: calc(.08 + .3 * var(--mo-hero, 0));
  }

  html[data-motion="frame"][data-motion-phase="arm"] .hero-panorama {
    clip-path: inset(8% 11% 9% 11%);
    transform: scale(1.11);
    filter: brightness(.5) saturate(.72);
  }
  html[data-motion="frame"][data-motion-phase="arm"] .hero-scene-copy .eyebrow,
  html[data-motion="frame"][data-motion-phase="arm"] .hero-title,
  html[data-motion="frame"][data-motion-phase="arm"] .hero-response > span,
  html[data-motion="frame"][data-motion-phase="arm"] .hero-response > em { opacity: 0; }

  html[data-motion="frame"][data-motion-phase="play"] .hero-panorama {
    animation: mo-f-open 1.45s cubic-bezier(.22,.74,.24,1) both;
  }
  html[data-motion="frame"][data-motion-phase="play"] .hero-scene-copy .eyebrow {
    animation: mo-f-fade .8s ease-out .12s both;
  }
  html[data-motion="frame"][data-motion-phase="play"] .hero-title {
    animation: mo-f-focus 1s cubic-bezier(.16,.84,.26,1) .22s both;
  }
  html[data-motion="frame"][data-motion-phase="play"] .hero-response > span {
    animation: mo-f-focus 1.05s cubic-bezier(.16,.84,.26,1) .52s both;
  }
  html[data-motion="frame"][data-motion-phase="play"] .hero-response > em {
    animation: mo-f-focus 1.15s cubic-bezier(.16,.84,.26,1) .82s both;
  }

  @keyframes mo-f-open {
    from { clip-path: inset(8% 11% 9% 11%); transform: scale(1.11); filter: brightness(.5) saturate(.72); }
    to   { clip-path: inset(0 0 0 0);       transform: scale(1);    filter: none; }
  }
  @keyframes mo-f-focus {
    from { opacity: 0; transform: translateY(18px) scale(1.06); filter: blur(15px); }
    65%  { opacity: 1; }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }
  @keyframes mo-f-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }

  /* A thin frame line, only where the copy sits over the photograph. */
  @media (min-width: 801px) {
    html[data-motion="frame"] .hero-scene::after {
      content: '';
      position: absolute;
      inset: 16px;
      z-index: 1;
      pointer-events: none;
      border: 1px solid #d8b85f40;
      opacity: 1;
    }
    html[data-motion="frame"][data-motion-phase="arm"] .hero-scene::after { inset: 52px; opacity: 0; }
    html[data-motion="frame"][data-motion-phase="play"] .hero-scene::after {
      animation: mo-f-frame 1.5s cubic-bezier(.22,.74,.24,1) .3s both;
    }
    @keyframes mo-f-frame {
      from { inset: 52px; opacity: 0; }
      to   { inset: 16px; opacity: 1; }
    }
  }

  /* Headings, copy, cards and photographs settle out of a soft blur as they arrive. */
  html[data-motion="frame"] [data-mo-kind="head"],
  html[data-motion="frame"] [data-mo-kind="kicker"],
  html[data-motion="frame"] [data-mo-kind="card"],
  html[data-motion="frame"] [data-mo-kind="step"],
  html[data-motion="frame"] [data-mo-kind="line"] { opacity: 0; }
  html[data-motion="frame"] [data-mo-kind="para"] { opacity: .28; }
  html[data-motion="frame"] [data-mo-kind="photo"] { opacity: .16; }
  html[data-motion="frame"] [data-mo-kind="rule"] { transform: scaleX(0); transform-origin: left; }

  html[data-motion="frame"] [data-mo-kind="head"].mo-in {
    animation: mo-f-head .9s cubic-bezier(.16,.84,.26,1) both;
  }
  html[data-motion="frame"] [data-mo-kind="kicker"].mo-in {
    animation: mo-f-fade .7s ease-out both;
  }
  html[data-motion="frame"] [data-mo-kind="para"].mo-in {
    animation: mo-f-para .85s ease-out .08s both;
  }
  html[data-motion="frame"] [data-mo-kind="card"].mo-in,
  html[data-motion="frame"] [data-mo-kind="step"].mo-in,
  html[data-motion="frame"] [data-mo-kind="line"].mo-in {
    animation: mo-f-card .85s cubic-bezier(.18,.8,.26,1) both;
    animation-delay: calc(var(--mo-i, 0) * 75ms);
  }
  html[data-motion="frame"] [data-mo-kind="photo"].mo-in {
    animation: mo-f-photo 1.3s cubic-bezier(.22,.74,.24,1) both;
  }
  html[data-motion="frame"] [data-mo-kind="rule"].mo-in {
    animation: mo-f-rule 1.1s cubic-bezier(.22,.74,.24,1) both;
  }

  @keyframes mo-f-head {
    from { opacity: 0; transform: translateY(24px) scale(.972); filter: blur(11px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }
  @keyframes mo-f-para {
    from { opacity: .28; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes mo-f-card {
    from { opacity: 0; transform: translateY(30px) scale(.986); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }
  @keyframes mo-f-photo {
    from { opacity: .16; clip-path: inset(10% 7% 13% 7% round 8px); transform: scale(1.06); }
    to   { opacity: 1;   clip-path: inset(0 0 0 0 round 8px);       transform: none; }
  }
  @keyframes mo-f-rule {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }

  /* -------------------------------------------- 2. editorial — typographic reveal */

  /* Word wrappers are added by motion-options.js to the real headline text only.
     clip-path (not overflow) does the masking so the inline baseline never shifts. */
  html[data-motion="editorial"] .mo-word {
    display: inline-block;
    clip-path: inset(-.4em -.14em -.22em -.14em);
  }
  html[data-motion="editorial"] .mo-word-i {
    display: inline-block;
    will-change: transform;
  }
  html[data-motion="editorial"][data-motion-phase="arm"] .mo-word-i { transform: translateY(160%); }
  html[data-motion="editorial"][data-motion-phase="play"] .mo-word-i {
    animation: mo-e-rise .82s cubic-bezier(.2,.86,.24,1) both;
    animation-delay: calc(var(--mo-d, 0) * 1ms);
  }
  @keyframes mo-e-rise {
    from { transform: translateY(160%); }
    to   { transform: translateY(0); }
  }

  /* Hairlines: under the headline, under the italic answer, and beside the eyebrow. */
  html[data-motion="editorial"] .hero-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.1em;
    width: min(240px, 46%);
    height: 2px;
    background: linear-gradient(90deg, #efc96b, #efc96b00);
    transform: scaleX(1);
    transform-origin: left;
    pointer-events: none;
  }
  html[data-motion="editorial"] .hero-response > em::after { transform: scaleX(1); }
  html[data-motion="editorial"][data-motion-phase="arm"] .hero-title::after,
  html[data-motion="editorial"][data-motion-phase="arm"] .hero-response > em::after,
  html[data-motion="editorial"][data-motion-phase="arm"] .hero-scene-copy .eyebrow::before,
  html[data-motion="editorial"][data-motion-phase="arm"] .hero-scene-copy .eyebrow::after { transform: scaleX(0); }
  html[data-motion="editorial"][data-motion-phase="arm"] .hero-scene-copy .eyebrow { opacity: 0; }

  html[data-motion="editorial"][data-motion-phase="play"] .hero-scene-copy .eyebrow {
    animation: mo-e-step .75s cubic-bezier(.22,.86,.22,1) both;
  }
  html[data-motion="editorial"][data-motion-phase="play"] .hero-scene-copy .eyebrow::before {
    transform-origin: right;
    animation: mo-e-wipe .9s cubic-bezier(.22,.86,.22,1) .12s both;
  }
  html[data-motion="editorial"][data-motion-phase="play"] .hero-scene-copy .eyebrow::after {
    transform-origin: left;
    animation: mo-e-wipe .9s cubic-bezier(.22,.86,.22,1) .12s both;
  }
  /* Both hairlines follow the words they belong to rather than racing them: the
     headline word lands at ~0.88s and the last word of the answer at ~1.74s. */
  html[data-motion="editorial"][data-motion-phase="play"] .hero-title::after {
    animation: mo-e-wipe 1s cubic-bezier(.22,.86,.22,1) .86s both;
  }
  html[data-motion="editorial"][data-motion-phase="play"] .hero-response > em::after {
    animation: mo-e-wipe 1.15s cubic-bezier(.22,.86,.22,1) 1.72s both;
  }
  @keyframes mo-e-wipe {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @keyframes mo-e-step {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: none; }
  }

  /* Headings open top-down; the two-part headings reveal one line at a time. */
  html[data-motion="editorial"] [data-mo-kind="head"] { clip-path: inset(0 0 102% 0); }
  html[data-motion="editorial"] [data-mo-kind="head"].mo-in {
    animation: mo-e-curtain .85s cubic-bezier(.22,.86,.22,1) both;
  }
  html[data-motion="editorial"] [data-mo-kind="head"][data-reveal-lines] { clip-path: none; }
  html[data-motion="editorial"] [data-mo-kind="head"][data-reveal-lines] > * { clip-path: inset(0 0 102% 0); }
  html[data-motion="editorial"] [data-mo-kind="head"][data-reveal-lines].mo-in { animation: none; }
  html[data-motion="editorial"] [data-mo-kind="head"][data-reveal-lines].mo-in > * {
    animation: mo-e-curtain .8s cubic-bezier(.22,.86,.22,1) both;
  }
  html[data-motion="editorial"] [data-mo-kind="head"][data-reveal-lines].mo-in > :nth-child(2) { animation-delay: .2s; }
  html[data-motion="editorial"] [data-mo-kind="head"][data-reveal-lines].mo-in > :nth-child(3) { animation-delay: .4s; }

  html[data-motion="editorial"] [data-mo-kind="kicker"] { opacity: 0; }
  html[data-motion="editorial"] [data-mo-kind="kicker"].mo-in {
    animation: mo-e-step .7s cubic-bezier(.22,.86,.22,1) both;
  }
  html[data-motion="editorial"] [data-mo-kind="para"] { opacity: .25; }
  html[data-motion="editorial"] [data-mo-kind="para"].mo-in {
    animation: mo-e-para .75s ease-out .06s both;
  }
  /* Short tiles can be wiped open, because they are only ever masked for the moment
     it takes them to cross the reading line. */
  html[data-motion="editorial"] [data-mo-kind="line"] { clip-path: inset(0 0 100% 0 round 5px); }
  html[data-motion="editorial"] [data-mo-kind="line"].mo-in {
    animation: mo-e-card .68s cubic-bezier(.22,.86,.22,1) both;
    animation-delay: calc(var(--mo-i, 0) * 70ms);
  }
  /* Panels, the map and the FAQ list can be taller than the reading area, so they
     lift out of a half-light instead: a tall block is readable the whole way up the
     screen and its links and list copy are never masked away from a click. */
  html[data-motion="editorial"] [data-mo-kind="card"] { opacity: .3; }
  html[data-motion="editorial"] [data-mo-kind="card"].mo-in {
    animation: mo-e-lift .72s cubic-bezier(.22,.86,.22,1) both;
    animation-delay: calc(var(--mo-i, 0) * 70ms);
  }
  /* Photographs only ever lift out of a half-light. A tall photograph is on screen
     for a long time before it reaches the reading line, so it must stay plainly
     readable the whole way in, never a near-blank rectangle. */
  html[data-motion="editorial"] [data-mo-kind="photo"] { opacity: .55; }
  html[data-motion="editorial"] [data-mo-kind="photo"].mo-in {
    animation: mo-e-photo 1.05s ease-out both;
  }

  /* --- the five "How it works" steps: in from the right, one at a time ---------
     Each step is released on its own when it reaches the reading line, and the
     queue in motion-options.js keeps them at least 150ms apart if several cross
     together. transform only: the list never moves and the numbers, copy and the
     link under the list keep their place. .steps is clipped on the x axis so the
     travel can never reach the edge of the page or raise a sideways scrollbar. */
  html[data-motion="editorial"] .firm-details .steps {
    overflow-x: clip;
    overflow-y: visible;
  }
  html[data-motion="editorial"] [data-mo-kind="step"] {
    --mo-travel: clamp(96px, 17vw, 230px);
    opacity: 0;
    transform: translate3d(var(--mo-travel), 0, 0);
  }
  html[data-motion="editorial"] [data-mo-kind="step"].mo-in {
    animation: mo-e-step-in .74s cubic-bezier(.2,.84,.26,1) both;
  }
  html[data-motion="editorial"] [data-mo-kind="step"].mo-in:not(.mo-done) { will-change: transform; }
  @keyframes mo-e-step-in {
    from { opacity: 0; transform: translate3d(var(--mo-travel), 0, 0); }
    55%  { opacity: 1; }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  html[data-motion="editorial"] [data-mo-kind="rule"] { transform: scaleX(0); transform-origin: left; }
  html[data-motion="editorial"] [data-mo-kind="rule"].mo-in {
    animation: mo-e-wipe 1s cubic-bezier(.22,.86,.22,1) both;
  }

  @keyframes mo-e-curtain {
    from { clip-path: inset(0 0 102% 0);              transform: translateY(12px); }
    to   { clip-path: inset(-18% -8% -18% -8%);       transform: none; }
  }
  @keyframes mo-e-card {
    from { clip-path: inset(0 0 100% 0 round 5px); }
    to   { clip-path: inset(-24% -12% -24% -12% round 5px); }
  }
  @keyframes mo-e-lift {
    from { opacity: .3; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes mo-e-para {
    from { opacity: .25; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
  /* opacity only: a photograph wide enough to fill the content column must never be
     scaled, or it could reach past the gutter and raise a horizontal scrollbar. */
  @keyframes mo-e-photo {
    from { opacity: .55; }
    to   { opacity: 1; }
  }

  /* --------------------------------------- 3. lightline — scroll-led light & line */

  /* One warm pass across the hero photograph, then the tagline lights up behind it. */
  html[data-motion="lightline"] .hero-scene::after {
    content: '';
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: 0;
    width: 46%;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    background: linear-gradient(100deg, #ffffff00, #ffe7b52e 36%, #fff3d64d 52%, #ffe7b52e 68%, #ffffff00);
    transform: translateX(-120%) skewX(-8deg);
  }
  html[data-motion="lightline"] .hero-scene::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, #efc96b, #efc96b00 86%);
    transform: scaleX(1);
    transform-origin: left;
  }
  html[data-motion="lightline"][data-motion-phase="arm"] .hero-scene::before { transform: scaleX(0); }
  html[data-motion="lightline"][data-motion-phase="arm"] .hero-title,
  html[data-motion="lightline"][data-motion-phase="arm"] .hero-response > span,
  html[data-motion="lightline"][data-motion-phase="arm"] .hero-response > em,
  html[data-motion="lightline"][data-motion-phase="arm"] .hero-scene-copy .eyebrow { opacity: 0; }

  html[data-motion="lightline"][data-motion-phase="play"] .hero-scene::after {
    animation: mo-l-sweep 2.1s cubic-bezier(.36,.52,.3,1) .1s both;
  }
  html[data-motion="lightline"][data-motion-phase="play"] .hero-scene::before {
    animation: mo-l-draw 1.6s cubic-bezier(.22,.86,.22,1) .35s both;
  }
  html[data-motion="lightline"][data-motion-phase="play"] .hero-scene-copy .eyebrow {
    animation: mo-l-lit 1s cubic-bezier(.26,.7,.26,1) .1s both;
  }
  html[data-motion="lightline"][data-motion-phase="play"] .hero-title {
    animation: mo-l-lit 1.15s cubic-bezier(.26,.7,.26,1) .22s both;
  }
  html[data-motion="lightline"][data-motion-phase="play"] .hero-response > span {
    animation: mo-l-lit 1.2s cubic-bezier(.26,.7,.26,1) .54s both;
  }
  html[data-motion="lightline"][data-motion-phase="play"] .hero-response > em {
    animation: mo-l-lit 1.3s cubic-bezier(.26,.7,.26,1) .86s both;
  }
  @keyframes mo-l-sweep {
    0%   { opacity: 0; transform: translateX(-120%) skewX(-8deg); }
    16%  { opacity: 1; }
    84%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(260%) skewX(-8deg); }
  }
  @keyframes mo-l-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  @keyframes mo-l-lit {
    from { opacity: 0; filter: brightness(.28); transform: translateY(9px); }
    38%  { opacity: 1; }
    70%  { filter: brightness(1.26) drop-shadow(0 0 16px #f0cf8b5c); }
    to   { opacity: 1; filter: none; transform: none; }
  }

  /* Past the hero nothing is timed: --mo-p is the reader's own scroll position.
     Defaults are the finished state, so the page is readable if the driver stops. */
  html[data-motion="lightline"] [data-mo-kind="head"],
  html[data-motion="lightline"] [data-mo-kind="kicker"],
  html[data-motion="lightline"] [data-mo-kind="para"],
  html[data-motion="lightline"] [data-mo-kind="card"],
  html[data-motion="lightline"] [data-mo-kind="step"],
  html[data-motion="lightline"] [data-mo-kind="line"] {
    opacity: calc(.52 + .48 * var(--mo-p, 1));
  }
  /* cards keep their own hover lift, so only the text blocks are offset */
  html[data-motion="lightline"] [data-mo-kind="head"],
  html[data-motion="lightline"] [data-mo-kind="kicker"],
  html[data-motion="lightline"] [data-mo-kind="para"],
  html[data-motion="lightline"] [data-mo-kind="line"] {
    transform: translate3d(0, calc((1 - var(--mo-p, 1)) * 14px), 0);
  }
  html[data-motion="lightline"] [data-mo-kind="head"] { position: relative; }
  html[data-motion="lightline"] [data-mo-kind="head"]::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.16em;
    width: min(320px, 64%);
    height: 1px;
    background: linear-gradient(90deg, var(--mo-line, #b8962e), transparent);
    transform: scaleX(var(--mo-p, 1));
    transform-origin: left;
    pointer-events: none;
  }
  html[data-motion="lightline"] .reading-section [data-mo-kind="head"],
  html[data-motion="lightline"] .cta [data-mo-kind="head"] { --mo-line: #efc96b; }
  /* the contact band heading is centred, so its hairline opens from the centre */
  html[data-motion="lightline"] .cta [data-mo-kind="head"]::after {
    left: 50%;
    transform-origin: center;
    transform: translateX(-50%) scaleX(var(--mo-p, 1));
  }

  html[data-motion="lightline"] [data-mo-kind="line"] { position: relative; }
  html[data-motion="lightline"] [data-mo-kind="line"]::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, #b8962e, #b8962e00);
    transform: scaleY(var(--mo-p, 1));
    transform-origin: top;
    pointer-events: none;
  }
  html[data-motion="lightline"] [data-mo-kind="rule"] {
    transform: scaleX(var(--mo-p, 1));
    transform-origin: left;
  }
  html[data-motion="lightline"] [data-mo-kind="photo"] {
    filter: brightness(calc(.74 + .26 * var(--mo-p, 1)));
  }

  /* A soft sheen slides across the dark bands in step with the scroll.
     ::before, because .cta::after already carries the crest watermark. */
  html[data-motion="lightline"] [data-mo-kind="sheen"] {
    position: relative;
    isolation: isolate;
  }
  html[data-motion="lightline"] [data-mo-kind="sheen"]::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(104deg, #ffffff00 28%, #f3d59a26 45%, #f3d59a12 57%, #ffffff00 74%);
    transform: translate3d(calc((var(--mo-p, .5) - .5) * 70%), 0, 0);
  }
}
