/* DEC-087/088 — Home-only motion. Normal section flow on every viewport. */
.home-editorial { --ed-enter: 20px; }
.home-editorial .ed-nav-slot { display: block; min-width: 0; perspective: 700px; }
.home-editorial .ed-nav-slot:not([data-ed-state="complete"]):not(:focus-within) { overflow: clip; }
.home-editorial .ed-nav-reveal { display: block; transform-origin: 50% 20%; }
.home-editorial .ed-nav-slot[data-ed-state="armed"] .ed-nav-reveal { opacity: 0; transform: translateY(-120%) rotateX(90deg); }
.home-editorial .ed-nav-slot:focus-within .ed-nav-reveal { opacity: 1!important; transform: none!important; }
.home-editorial .ed-readable {
  position: absolute!important; width: 1px!important; height: 1px!important;
  padding: 0!important; margin: -1px!important; overflow: hidden!important;
  clip-path: inset(50%); white-space: nowrap!important; border: 0!important;
}
.home-editorial .ed-title .ed-title-float,
.home-editorial .ed-title .ed-title-art { display: block; color: inherit; }
.home-editorial .ed-title-float,
.home-editorial .ed-flow { transform: translate3d(0,var(--ed-y,0px),0); }
.home-editorial .ed-title .ed-word {
  display: inline-block; position: relative; white-space: nowrap; color: inherit;
  vertical-align: baseline; text-align: left; padding: 0; margin: 0;
}
/* The original word reserves its exact kerning/width at each breakpoint. */
.home-editorial .ed-title .ed-word-space { visibility: hidden; color: inherit; }
.home-editorial .ed-title .ed-char-mask {
  display: block; position: absolute; overflow: clip;
  top: -.16em; bottom: -.16em;
  left: calc(var(--char-x) - .06em); width: calc(var(--char-width) + .12em);
  color: inherit; pointer-events: none; perspective: 700px;
}
.home-editorial .ed-title .ed-glyph {
  display: block; position: absolute; left: .06em; top: .16em;
  white-space: pre; color: inherit; transform-origin: 50% 80%;
  transform: none; opacity: 1;
}
.home-editorial .ed-title[data-ed-state="armed"] .ed-glyph {
  transform: translateY(120%) rotateX(-90deg); opacity: 0;
}
.home-editorial .ed-title[data-ed-direction="down"][data-ed-state="armed"] .ed-glyph {
  transform: translateY(-120%) rotateX(90deg);
}
/* Replace only the old heading arrival, not its typography or line structure. */
.home-editorial .home-craft .ed-title .craft-heading-line { overflow: visible; }
.home-editorial .home-craft .ed-title .craft-heading-line>span { transform: none; }
.home-editorial .ed-flow,.home-editorial .ed-reveal { display: block; }
.home-editorial .ed-item[data-ed-state="armed"] .ed-reveal { opacity: 0; transform: translateY(var(--ed-enter)); }
.home-editorial .ed-item:focus-within .ed-reveal { opacity: 1!important; transform: none!important; }
.home-editorial .ed-card-slot,.home-editorial .ed-card-flow,.home-editorial .ed-card-reveal { display: grid; min-width: 0; }
.home-editorial .ed-card-slot--primary { grid-row: span 3; }
.home-editorial .ed-card-slot .experience-card { grid-row: auto; grid-column: auto; height: 100%; }
.home-editorial .ed-card-slot[data-ed-state="armed"] .ed-card-reveal { opacity: .25; transform: translateY(var(--ed-enter)); }
.home-editorial .ed-photo-slot { min-width: 0; --ed-photo-x: -72px; }
.home-editorial .ed-photo-slot--right { grid-column: 2; grid-row: 1; --ed-photo-x: 72px; }
.home-editorial .ed-photo-slot[data-ed-state="armed"] .ed-photo-reveal { opacity: 0; transform: translateX(var(--ed-photo-x)) scale(.98); }
.home-editorial .ed-item[data-ed-state="revealing"] .ed-reveal,
.home-editorial .ed-card-slot[data-ed-state="revealing"] .ed-card-reveal,
.home-editorial .ed-photo-slot[data-ed-state="revealing"] .ed-photo-reveal,
.home-editorial .ed-nav-slot[data-ed-state="revealing"] .ed-nav-reveal { will-change: transform,opacity; }
@media(max-width:700px) {
  .home-editorial { --ed-enter: 10px; }
  .home-editorial .home-craft .experience-heading .ed-title-art>span { display: block; }
  .home-editorial .ed-card-slot--primary { grid-row: auto; }
  .home-editorial .ed-photo-slot { --ed-photo-x: -24px; }
  .home-editorial .ed-photo-slot--right { grid-column: auto; grid-row: auto; --ed-photo-x: 24px; }
}
@media(prefers-reduced-motion:reduce) {
  .home-editorial .ed-title-float,.home-editorial .ed-flow,
  .home-editorial .ed-title .ed-glyph,.home-editorial .ed-reveal,
  .home-editorial .ed-card-reveal,.home-editorial .ed-photo-reveal,.home-editorial .ed-nav-reveal {
    transform: none!important; opacity: 1!important; will-change: auto!important;
  }
}
@media print {
  .home-editorial .ed-title-float,.home-editorial .ed-flow,
  .home-editorial .ed-title .ed-glyph,.home-editorial .ed-reveal,
  .home-editorial .ed-card-reveal,.home-editorial .ed-photo-reveal,.home-editorial .ed-nav-reveal { transform: none!important; opacity: 1!important; }
}
