/* One entrance system. Headings are independently staggered, table rows
   keep their native geometry, and containers with child reveals animate only
   their visual shell. No ancestor opacity/translation is compounded. */
.pd-page-word {
  display:inline-block;
  max-width:100%;
  overflow-wrap:anywhere;
}

@media (prefers-reduced-motion: no-preference) {
  html.pd-reveal { --pd-block-rise:15px; }

  /* Static selectors cover the first paint; branches are also hidden during
     preparation, before their parent shell is allowed to become visible. */
  html.pd-reveal :is(.page-lead,.v2-section-top,.service-grid-expanded .service-card,.news-row,.price-panel,.project-description,.article-feature,.footer-main,.home-services-intro,.home-services-list,.about-columns section,.price-custom,.content-callout,.contact-email-feature,.contact-detail,.contact-legal,.price-notes,.case-story > section,.project-title .eyebrow,.article-date,.news-detail .back,.news-detail .narrow.prose,.portfolio-controls,[data-pd-branch],table tr:not(.prazni)):not([data-pd-reveal-state]),
  html.pd-reveal :is(h1,h2,h3,h4,h5,h6,.medium-text):not(.hero-v2 h1):not([data-pd-reveal-state]) {
    opacity:0; transition:none;
  }

  html.pd-reveal [data-pd-reveal-state=shown]:not(.project-card):not([data-pd-words-ready]):not([data-pd-shell]):not([data-pd-row]):not(:focus-within) {
    opacity:1;
    animation:pd-reveal-in var(--pd-block-duration,1s) cubic-bezier(.36,0,.23,1) var(--pd-block-delay,0s) both;
  }
  html.pd-reveal :is(.page-lead,.article-date) {
    --pd-block-duration:.85s;
    --pd-block-delay:.18s;
  }
  /* The card/table panel itself does not move or fade its children. Only its
     background, dividers, and shadow enter; content has its own one-time beat. */
  html.pd-reveal [data-pd-shell][data-pd-reveal-state=shown]:not(:focus-within) {
    animation:pd-shell-in .85s cubic-bezier(.36,0,.23,1) both;
  }

  html.pd-reveal [data-pd-words-ready][data-pd-reveal-state=shown]:not(:focus-within) .pd-page-word {
    animation:pd-hero-word-desktop .55s cubic-bezier(.22,.76,.25,1) both;
    animation-delay:calc(var(--pd-word-base-delay,0s) + .06s + var(--pd-word-index,0)*.045s);
  }

  /* A single animation for the complete row, with stagger scoped to each
     group of rows entering the viewport together. Cells retain table layout. */
  html.pd-reveal [data-pd-row][data-pd-reveal-state=shown]:not(:focus-within) {
    opacity:1;
    animation:pd-table-row-in .85s cubic-bezier(.36,0,.23,1) var(--pd-row-delay,0ms) both;
  }

  /* Keep the proven project image reveal, including decode and 1.25s timing.
     The heading and other metadata parts are released by the same card event
     without an additional animation on their metadata parent. */
  html.pd-reveal .project-card:not([data-pd-reveal-state]) > :is(.project-image,.project-meta) {
    opacity:0; transition:none;
  }
  html.pd-reveal .project-card[data-pd-reveal-state=shown] > .project-image,
  html.pd-reveal .project-card[data-pd-reveal-state=shown] [data-pd-work-part] {
    opacity:1; animation:pd-work-in 1.25s cubic-bezier(.36,0,.23,1) both;
    animation-delay:var(--pd-work-delay,0s);
  }
  html.pd-reveal [data-pd-work-heading] { --pd-word-base-delay:var(--pd-work-delay,0s); }

  /* Keyboard access must reveal focused content immediately, even if an
     entrance has not started. No animation is applied to the focused subtree. */
  html.pd-reveal :is(.page-lead,.v2-section-top,.service-grid-expanded .service-card,.news-row,.price-panel,.project-description,.article-feature,.footer-main,.home-services-intro,.home-services-list,.about-columns section,.price-custom,.content-callout,.contact-email-feature,.contact-detail,.contact-legal,.price-notes,.case-story > section,.project-title .eyebrow,.article-date,.news-detail .back,.news-detail .narrow.prose,.portfolio-controls,h1,h2,h3,h4,h5,h6,.medium-text,table tr:not(.prazni),[data-pd-branch]):focus-within {
    opacity:1; animation:none; transition:none;
  }
  html.pd-reveal :is([data-pd-shell],.project-card):focus-within :is(h1,h2,h3,h4,h5,h6,.medium-text,table tr:not(.prazni),[data-pd-branch],[data-pd-work-part],.pd-page-word),
  html.pd-reveal .project-card:focus-within > :is(.project-image,.project-meta) {
    opacity:1; animation:none; transition:none;
  }

  /* Opening hero choreography: static before first paint on every screen,
     with the desktop and mobile timing deliberately preserved. */
  html.pd-reveal .hero-v2:not([data-pd-hero-ready]) :is(h1,.hero-subtitle,.hero-art,.hero-actions .hero-cta),
  html.pd-reveal .hero-stage:not([data-pd-art-ready]) .hero-art {
    opacity:0; animation:none;
  }
  html.pd-reveal .hero-v2[data-pd-hero-ready] .pd-hero-word {
    display:inline-block;
    animation:pd-hero-word-desktop .55s cubic-bezier(.22,.76,.25,1) both;
    animation-delay:calc(.06s + var(--pd-word-index,0)*.045s);
  }
  html.pd-reveal .hero-v2[data-pd-hero-ready] .hero-subtitle {
    animation:pd-hero-subtitle-in .45s cubic-bezier(.22,.76,.25,1) .18s both;
  }
  html.pd-reveal .hero-stage[data-pd-art-ready] .hero-art {
    animation:pd-hero-art-in .68s cubic-bezier(.22,.76,.25,1) both;
    animation-delay:calc(.12s + var(--pd-art-index,0)*.085s);
  }
  html.pd-reveal .hero-v2[data-pd-hero-ready] .hero-actions .hero-cta {
    animation:pd-hero-cta-in .4s cubic-bezier(.22,.76,.25,1) .30s both;
  }
  html.pd-reveal .hero-v2[data-pd-hero-ready] .hero-actions .hero-cta:nth-child(2) {
    animation-delay:.45s;
  }
  @media (max-width:780px) {
    html.pd-reveal { --pd-block-rise:12px; }
    html.pd-reveal :is(.page-lead,.article-date) { --pd-block-delay:.3s; }
    html.pd-reveal [data-pd-words-ready][data-pd-reveal-state=shown]:not(:focus-within) .pd-page-word {
      animation-name:pd-hero-word-mobile; animation-duration:.82s;
      animation-delay:calc(var(--pd-word-base-delay,0s) + var(--pd-word-index,0)*.09s);
      animation-timing-function:cubic-bezier(.36,0,.23,1);
    }
    html.pd-reveal .hero-v2[data-pd-hero-ready] .pd-hero-word {
      animation-name:pd-hero-word-mobile; animation-duration:.82s;
      animation-delay:calc(var(--pd-word-index,0)*.09s);
      animation-timing-function:cubic-bezier(.36,0,.23,1);
    }
    html.pd-reveal .hero-v2[data-pd-hero-ready] .hero-subtitle {
      animation-duration:.85s;animation-delay:.35s;
      animation-timing-function:cubic-bezier(.36,0,.23,1);
    }
    html.pd-reveal .hero-v2[data-pd-hero-ready] .hero-actions .hero-cta {
      animation-duration:.7s;animation-delay:.43s;
      animation-timing-function:cubic-bezier(.36,0,.23,1);
    }
    html.pd-reveal .hero-v2[data-pd-hero-ready] .hero-actions .hero-cta:nth-child(2) {
      animation-delay:.58s;
    }
  }
}
@keyframes pd-reveal-in{from{opacity:0;translate:0 var(--pd-block-rise,15px)}to{opacity:1;translate:0 0}}
@keyframes pd-shell-in{from{background-color:transparent;border-color:transparent;box-shadow:none}}
@keyframes pd-table-row-in{from{opacity:0;translate:0 var(--pd-block-rise,15px)}to{opacity:1;translate:0 0}}
@keyframes pd-work-in{from{opacity:0;transform:translate3d(0,16px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes pd-hero-word-desktop{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes pd-hero-word-mobile{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes pd-hero-subtitle-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes pd-hero-art-in{from{opacity:0;transform:translateY(36px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pd-hero-cta-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
/* Mobile uses element entrances rather than an extra full-page snapshot. */
@media(max-width:780px){@view-transition{navigation:none}}
