/* AI Change: purposeful interaction, quiet surroundings. No animation library. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
.comparison-stage { position: relative; isolation: isolate; --comparison: 42%; }
.comparison-before { position: absolute; inset: 0; background: #dce3e3; clip-path: inset(0 calc(100% - var(--comparison)) 0 0); }
.comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--comparison); width: 1px; background: #fff; pointer-events: none; z-index: 2; box-shadow: 0 0 5px #0002; }
.comparison-divider > span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 34px; height: 42px; border: 1px solid #e2e3de; border-radius: 24px; display: grid; place-items: center; background: #fafaf8; color: #272928; font-size: 22px; box-shadow: 0 3px 12px #0002; }
.comparison-range { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; z-index: 3; cursor: ew-resize; touch-action: pan-y; }
.comparison-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 1px; height: 42px; }
.comparison-range::-moz-range-thumb { width: 1px; height: 42px; border: 0; }
.comparison-stage:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.comparison-hint { font-size: 10px; color: #747870; }
.show-images, .work-content { animation: none; }
.layer-art { border: 0; text-align: left; padding: 0; font: inherit; color: inherit; width: 100%; }
.layer-art .layer-stack { transition: transform .55s var(--motion-ease); }
.layer-art .layer-sheet { transition: transform .55s var(--motion-ease), background .4s; }
.layer-art[aria-pressed=true] .layer-stack { transform: rotate(-3deg) scale(.94); }
.layer-art[aria-pressed=true] .back { transform: translate(75px,-48px) rotate(5deg); background: #d4d9d080; }
.layer-art[aria-pressed=true] .front { transform: translate(-75px,48px) rotate(-5deg); background: #fff9; }
.layer-art[aria-pressed=true] .layer-tag { transform: translate(15px, 12px); }
.layer-tag { transition: transform .55s var(--motion-ease); }
.layer-art:focus-visible { outline-offset: 5px; }
.hero h1 { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: hero-intro .8s var(--motion-ease) both; }
  .hero-media { animation: hero-intro .9s var(--motion-ease) .12s both; }
  .show-images figure { animation: image-arrive .45s var(--motion-ease) both; }
  .show-images figure:nth-child(2) { animation-delay: .045s; }
  .show-images figure:nth-child(3) { animation-delay: .09s; }
  .work-content .work-text, .work-content .work-demo { animation: image-arrive .35s var(--motion-ease) both; }
  .batch-row { animation: task-arrive .4s var(--motion-ease) both; }
  .batch-row:nth-of-type(2) { animation-delay: .09s; }
  .batch-row:nth-of-type(3) { animation-delay: .19s; }
  .batch-row:nth-of-type(4) { animation-delay: .29s; }
  .case-card { animation: image-arrive .35s var(--motion-ease) both; }
  .case-card:nth-child(3n+2) { animation-delay: .035s; }
  .case-card:nth-child(3n+3) { animation-delay: .07s; }
}
@keyframes hero-intro { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes headline-intro { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(18px); } to { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes image-arrive { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes task-arrive { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (max-width:760px) {
  .comparison-divider > span { width: 28px; height: 36px; font-size: 18px; }
  .show-layout-0 figure:last-of-type figcaption { align-items: start; flex-direction: column; justify-content: center; gap: 3px; min-height: 40px; }
  .comparison-hint { font-size: 9px; }
  .layer-art[aria-pressed=true] .back { transform: translate(53px,-40px) rotate(5deg); }
  .layer-art[aria-pressed=true] .front { transform: translate(-53px,40px) rotate(-5deg); }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none!important; transition: none!important; }
}
