:root {
  color-scheme: light;
  --ink: #090909;
  --paper: #fff;
  --soft: #f1f0eb;
  --rule: #c9c8c2;
  --motion-eye: #fff;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.motion-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.motion-brand { display: inline-flex; align-items: center; gap: 10px; font: 900 22px/1 Arial, sans-serif; letter-spacing: -.04em; text-decoration: none; }
.motion-brand img { border-radius: 9px; }
.back-link { padding: 10px 0; font-size: 13px; font-weight: 800; text-underline-offset: 4px; }
main { overflow: hidden; }

.motion-intro {
  padding: 64px max(22px, env(safe-area-inset-right)) 42px max(22px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--ink);
}
.eyebrow { margin: 0 0 20px; font: 900 13px/1 Arial, sans-serif; letter-spacing: .18em; }
.motion-intro h1 { max-width: 780px; margin: 0; font-size: clamp(45px, 13vw, 96px); line-height: .98; letter-spacing: -.075em; }
.motion-intro > p:not(.eyebrow) { max-width: 680px; margin: 30px 0 0; color: #484848; font-size: 16px; line-height: 1.8; }
.scale-note { display: grid; grid-template-columns: auto auto 1px auto auto; align-items: center; gap: 9px; width: fit-content; margin-top: 28px; font-size: 11px; font-weight: 800; }
.scale-dot { display: block; border-radius: 50%; background: var(--ink); }
.scale-dot-real { width: 8px; height: 8px; }
.scale-dot-preview { width: 20px; height: 20px; }
.scale-divider { width: 1px; height: 20px; margin: 0 4px; background: var(--rule); }

.motion-reel {
  display: grid;
  gap: 28px;
  padding: 52px max(22px, env(safe-area-inset-right)) 58px max(22px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.motion-reel-copy h2 { max-width: 720px; margin: 0; font-size: clamp(32px, 9vw, 66px); line-height: 1.02; letter-spacing: -.055em; }
.motion-reel-copy > p:not(.eyebrow) { max-width: 620px; margin: 22px 0 0; color: #d2d2d2; font-size: 15px; line-height: 1.7; }
.motion-reel video { display: block; width: min(100%, 390px); height: auto; margin: 0 auto; border: 1px solid #5a5a5a; background: #f4f1e9; box-shadow: 0 18px 54px rgba(0, 0, 0, .35); }

.motion-list { display: grid; }
.motion-card { min-width: 0; border-bottom: 1px solid var(--ink); }
.motion-card header { display: grid; grid-template-columns: 36px 1fr; gap: 2px 8px; padding: 26px 22px 18px; }
.motion-card header > span { grid-row: 1 / span 2; padding-top: 7px; font: 800 11px/1 Arial, sans-serif; letter-spacing: .12em; }
.motion-card h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.05em; }
.motion-card header p { margin: 5px 0 0; color: #555; font-size: 13px; line-height: 1.45; }

.motion-stage { position: relative; height: 190px; overflow: hidden; background: var(--soft); isolation: isolate; }
.stage-edge { position: absolute; z-index: 1; top: 24px; right: 0; left: 0; height: 2px; background: var(--ink); }
.motion-runner { position: absolute; z-index: 2; left: -34%; top: 44px; display: block; width: 42%; max-width: 186px; color: var(--ink); animation: cross-stage 7.2s linear infinite; will-change: transform; }
.motion-runner .motion-pet, .motion-runner img { display: block; width: 100%; height: auto; overflow: visible; }
.motion-stage-hanging .motion-runner { top: 5px; }
.motion-stage-edge .motion-runner { top: 29px; }
.runner-bat { animation-duration: 6.1s; }
.runner-gecko { animation-duration: 8.1s; }
.runner-roach { animation-duration: 5.1s; }
.runner-beetle { animation-duration: 8.5s; }
.runner-centipede { animation-duration: 7.8s; }
.runner-squirrel { animation-duration: 6.7s; }
.runner-axolotl { animation-duration: 8.4s; }
.runner-puffer { animation-duration: 8s; }

@keyframes cross-stage { from { transform: translateX(0); } to { transform: translateX(330%); } }

.motion-footer-callout { padding: 64px 22px 72px; background: var(--ink); color: var(--paper); }
.motion-footer-callout h2 { max-width: 750px; margin: 0; font-size: clamp(34px, 9vw, 70px); line-height: 1.05; letter-spacing: -.055em; }
.motion-footer-callout > p:not(.eyebrow) { max-width: 580px; margin: 26px 0; color: #d8d8d8; line-height: 1.7; }
.motion-footer-callout a { display: inline-block; min-height: 48px; padding: 14px 20px; border: 1px solid var(--paper); font-weight: 900; text-decoration: none; }
footer { padding: 28px 22px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid #333; background: var(--ink); color: #aaa; font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .08em; }

.motion-sprite-root { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.motion-pet { overflow: visible; color: currentColor; }
.motion-dropping-mark { opacity: 0; }

@media (min-width: 760px) {
  .motion-intro { padding: 96px 7vw 64px; }
  .motion-reel { grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); align-items: start; padding: 80px 7vw; }
  .motion-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motion-card:nth-child(odd) { border-right: 1px solid var(--ink); }
  .motion-card header { padding: 30px; }
  .motion-stage { height: 220px; }
  .motion-runner { max-width: 210px; }
  .motion-footer-callout { padding: 90px 7vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-runner { left: 30%; animation: none; }
}
