#moving-points-link { white-space: nowrap; text-decoration: none; color: #171717; font-weight: 500; }
#moving-points-link:hover { color: #000; }
#moving-points { --purple: #8170ad; --green: #4d8b7c; padding: 0; border: 1px solid #e9e7e3; border-radius: 18px; width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); color: #37352f; background: #fdfcfb; box-shadow: 0 32px 110px #0003, 0 4px 20px #0000000a; overflow: auto; overscroll-behavior: contain; }
#moving-points::backdrop { background: rgb(24 23 22 / 42%); backdrop-filter: blur(3px); animation: mp-dim .25s ease both; }
#moving-points[open] { animation: mp-appear .3s cubic-bezier(.2,.8,.2,1) both; }
.mp-shell { padding: 30px 34px 20px; }
.mp-header { position: relative; }
.mp-eyebrow { margin: 0 0 9px; color: #939089; font-size: 10px; font-weight: 500; letter-spacing: .14em; }
#mp-title { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -.035em; line-height: 1.3; }
#mp-description { margin: 8px 0 0; color: #929089; font-size: 13px; line-height: 1.6; }
#moving-points button { font: inherit; cursor: pointer; }
.mp-close { position: absolute; top: -8px; right: -10px; display: grid; place-items: center; width: 38px; height: 38px; padding: 10px; border: 0; border-radius: 50%; background: transparent; color: #929089; }
.mp-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.mp-close:hover { background: #eeece8; color: #37352f; }
.mp-drawing { margin: 4px -12px 0; }
#mp-svg { width: 100%; height: auto; max-height: min(44dvh, 340px); display: block; overflow: visible; }
#mp-svg path, #mp-svg circle { vector-effect: non-scaling-stroke; }
.mp-circle { fill: none; stroke: #dedbd6; stroke-width: 1; }
.mp-fixed-line { stroke: #b7b3ad; stroke-width: 1; fill: none; }
.mp-guide { stroke: #d6d2cb; stroke-width: .9; fill: none; stroke-dasharray: 3 5; }
.mp-midpoint-line { stroke: #aaa69f; stroke-width: 1; fill: none; }
.mp-purple-line { stroke: var(--purple); stroke-width: 1.6; fill: none; }
.mp-green-line { stroke: var(--green); stroke-width: 1.6; fill: none; }
.mp-point { fill: #827e76; stroke: #fdfcfb; stroke-width: 2; }
.mp-point-purple { fill: var(--purple); }
.mp-point-green { fill: var(--green); }
.mp-label { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; fill: #746f66; font-style: italic; paint-order: stroke; stroke: #fdfcfb; stroke-width: 5px; stroke-linejoin: round; }
.mp-label-purple { fill: var(--purple); }
.mp-label-green { fill: var(--green); }
.mp-k-halo { fill: #fdfcfb; stroke: var(--green); stroke-width: 1.2; }
.mp-caption { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 24px; font-size: 12px; color: #6e6b65; }
.mp-dot { width: 5px; height: 5px; border-radius: 50%; }
.mp-dot.purple { background: var(--purple); }
.mp-dot.green { background: var(--green); margin-left: 0; }
.mp-caption-text { margin-left: 4px; color: #939089; }
.mp-controls { display: flex; align-items: center; gap: 15px; }
.mp-play { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #e1ded8; border-radius: 50%; background: transparent; color: #78736b; }
.mp-play:hover { background: #eeece8; }
.mp-play svg { width: 13px; height: 13px; fill: currentColor; }
#mp-position { flex: 1; min-width: 0; height: 24px; accent-color: #8170ad; cursor: pointer; background: transparent; appearance: none; }
#mp-position::-webkit-slider-runnable-track { height: 2px; background: #e0ddd7; border-radius: 3px; }
#mp-position::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: #8170ad; margin-top: -4.5px; box-shadow: 0 0 0 4px #8170ad0d; }
#mp-position::-moz-range-track { height: 2px; background: #e0ddd7; }
#mp-position::-moz-range-thumb { border: 0; width: 11px; height: 11px; background: #8170ad; }
.mp-controls-label { font-size: 11px; color: #a09b93; white-space: nowrap; }
.mp-footer { margin-top: 23px; padding-top: 19px; border-top: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 11px; color: #a09b93; }
.mp-cases { display: flex; gap: 6px; }
.mp-cases button { padding: 7px 10px; border: 1px solid #e9e6e1; border-radius: 6px; background: transparent; color: #78736b; font-size: 11px !important; }
.mp-cases button:hover, .mp-cases button[aria-pressed="true"] { background: #efedf3; border-color: #dcd6e8; color: #79679e; }
.mp-proof { margin-top: 17px; color: #9a948b; font-size: 11px; line-height: 1.7; }
.mp-proof summary { cursor: pointer; width: fit-content; }
.mp-proof div { font-size: 12px; color: #78736b; padding-top: 3px; }
.mp-proof p { margin: 10px 0; }
.mp-proof a { color: #79679e; }
#moving-points :focus-visible { outline: 2px solid #8170ad; outline-offset: 4px; }
.mp-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes mp-appear { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes mp-dim { from { background: rgb(24 23 22 / 0%); } to { background: rgb(24 23 22 / 42%); } }
@media (max-width: 600px) { .mp-shell { padding: 25px 22px 18px; } .mp-drawing { margin: 12px -12px 6px; } .mp-caption { font-size: 11px; gap: 5px; margin-bottom: 20px; } .mp-footer { gap: 8px; } .mp-cases button { padding: 7px 8px; } }
@media (prefers-reduced-motion: reduce) { #moving-points[open], #moving-points::backdrop { animation: none; } }

#jolqalai-link { text-decoration: none; color: #171717; font-weight: 500; }
#jolqalai-link:hover { color: #000; }
#jolqalai-video { position: fixed; inset: auto; margin: 0; padding: 0; border: 0; border-radius: 10px; width: min(360px, calc(100vw - 32px)); background: #111; box-shadow: 0 12px 40px #00000024, 0 2px 8px #00000012; overflow: hidden; transform-origin: top left; }
#jolqalai-video::backdrop { background: transparent; pointer-events: none; }
#jolqalai-video:popover-open { animation: jolqalai-reveal .32s cubic-bezier(.16,1,.3,1) both; }
#jolqalai-video video { display: block; width: 100%; height: auto; }
.jolqalai-dismiss { position: absolute; right: 8px; top: 8px; padding: 5px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: #0004; cursor: pointer; opacity: 0; transition: opacity .15s; }
.jolqalai-dismiss svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#jolqalai-video:hover .jolqalai-dismiss, #jolqalai-video:focus-within .jolqalai-dismiss { opacity: 1; }
#jolqalai-video :focus-visible { outline: 2px solid white; outline-offset: -2px; }
@keyframes jolqalai-reveal { from { opacity: 0; transform: translateY(-6px) scale(.96); clip-path: inset(0 0 12% 0 round 10px); } to { opacity: 1; transform: none; clip-path: inset(0 round 10px); } }
@media (hover: none) { .jolqalai-dismiss { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #jolqalai-video:popover-open { animation: none; } }

#moving-points { position: fixed; inset: auto; margin: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 12px; box-shadow: 0 12px 40px #00000024, 0 2px 8px #00000012; transform-origin: top left; }
#moving-points::backdrop { background: transparent; backdrop-filter: none; animation: none; pointer-events: none; }
#moving-points:popover-open { animation: jolqalai-reveal .32s cubic-bezier(.16,1,.3,1) both; }
#moving-points .mp-shell { padding: 20px 22px 16px; }
#moving-points #mp-svg { max-height: min(38dvh, 280px); }
#moving-points .mp-caption { margin-bottom: 16px; font-size: 11px; }
#moving-points .mp-footer { margin-top: 12px; padding-top: 8px; }
#moving-points .mp-proof { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { #moving-points:popover-open { animation: none; } }

#moving-points { width: min(360px, calc(100vw - 32px)); }
#moving-points .mp-shell { padding: 16px 18px 13px; }
#moving-points #mp-svg { max-height: min(30dvh, 210px); }
#moving-points .mp-caption { margin-bottom: 12px; font-size: 10px; }
#moving-points .mp-footer { margin-top: 8px; padding-top: 4px; }

#moving-points, #jolqalai-video { position: absolute; }

#moving-points { --purple: #8170ad; --green: #4d8b7c; background: #fff; color: #37352f; border: 1px solid #eeece8; box-shadow: 0 8px 24px #0000000d, 0 1px 4px #00000006; }
#moving-points .mp-point, #moving-points .mp-label { stroke: #fff; }
#moving-points .mp-k-halo { fill: #fff; }

#moving-points .mp-k-halo { fill: #8170ad; stroke: #fff; stroke-width: 1.8; }
#moving-points .mp-label-k { fill: #645080; }

#moving-points, #jolqalai-video { max-height: none; }
#moving-points #mp-svg { max-height: 210px; }

@media (max-width: 600px) {
  .photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
  .mobile-photo-column { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
  .mobile-photo-column:nth-child(2) { padding-top: 18px; }
  .photo-grid .mobile-photo-column figure { margin: 0; flex: none; }
  .photo-grid .mobile-photo-column .shot--medals, .photo-grid .mobile-photo-column .shot--flowers { align-self: center; }
}

#jolqalai-link:hover, #moving-points-link:hover { color: #242424; text-decoration: underline; }

/* Inline disclosures for the two animations. */
.background .expandable-row { display: block; }
.expandable-row > details > summary { display: grid; grid-template-columns: .75rem minmax(0, 1fr); gap: .65rem; list-style: none; cursor: pointer; }
.expandable-row > details > summary::-webkit-details-marker { display: none; }
.expandable-row > details > summary .marker { display: inline-block; align-self: start; width: .75rem; height: 1.65rem; line-height: 1.65rem; text-align: center; transform-origin: center; transition: transform .15s; }
.expandable-row > details[open] > summary .marker { transform: rotate(90deg); }
.expandable-row > details > summary:hover .marker { color: #37352f; }
.expandable-row > details > summary:focus-visible { outline: 2px solid #8170ad; outline-offset: 4px; border-radius: 2px; }
.animation-name { color: #171717; font-weight: 500; }
#moving-points, #jolqalai-video { position: relative; inset: auto; transform: none; width: min(360px, calc(100% - 1.4rem)); margin: 16px 0 24px 1.4rem; max-height: none; }
@media (prefers-reduced-motion: reduce) { .expandable-row > details > summary .marker { transition: none; } }

.inline-video { position: relative; width: min(360px, calc(100% - 1.4rem)); margin: 16px 0 24px 1.4rem; border-radius: 10px; background: #111; overflow: hidden; box-shadow: 0 12px 40px #00000024, 0 2px 8px #00000012; }
.inline-video video { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; }

/* Match every animation panel to Jolqalai's 4:3 frame. */
#jolqalai-video, .inline-video { aspect-ratio: 4 / 3; }
#jolqalai-video video, .inline-video video { width: 100%; height: 100%; max-height: none; object-fit: cover; }
#moving-points .mp-shell { aspect-ratio: 4 / 3; display: flex; flex-direction: column; padding: 12px 18px; }
#moving-points .mp-drawing { flex: none; height: 210px; margin: 4px 0 0; }
#moving-points #mp-svg { width: 100%; height: 100%; max-height: none; }
#moving-points #mp-description { margin: 0; font-size: 11px; }
#moving-points .mp-proof { flex: none; margin-top: 6px; }
