/* MODULE: case opening reveal — one short, one-time typographic reveal on page load.
   Ref (adapted, not copied): Raufan, https://x.com/raufan/status/2041525848877228201
   CSS only: it runs once per load and never on scroll. Reduced motion shows the end state instantly. */
:root{
  --cr-dur:   520ms;                      /* title reveal */
  --cr-ease:  var(--ease-out);
  --cr-rise:  .38em;                      /* title rises this far while unmasking */
  --cr-line:  560ms;                      /* hairline draw under the meta row */
  --cr-delay: var(--dur-1);                      /* meta follows the title by this much */
}
@keyframes cr-title{from{clip-path:inset(0 0 100% 0);transform:translateY(var(--cr-rise))}to{clip-path:inset(0 0 -10% 0);transform:none}}
@keyframes cr-fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes cr-line{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.case-top{position:relative}
.case-top h1{animation:cr-title var(--cr-dur) var(--cr-ease) both}
.case-top .kicker{animation:cr-fade var(--cr-dur) var(--cr-ease) both}
.case-top .meta-row{animation:cr-fade var(--cr-dur) var(--cr-ease) var(--cr-delay) both}
.case-top::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--line-strong);
  transform-origin:left;animation:cr-line var(--cr-line) var(--cr-ease) var(--cr-delay) both}
/* Arrived via the home → case page transition: the title already morphed in. */
.vt-in .case-top h1{animation:none}
@media (prefers-reduced-motion: reduce){
  .case-top h1,.case-top .kicker,.case-top .meta-row,.case-top::after{animation:none}
}
