/* ABIJAH editorial motion v3.40 — progressive enhancement. */
:root{--abijah-motion-ease:cubic-bezier(.22,1,.36,1)}
/* A section entrance is led by a small, strong accent line. */
.abijah-question__head,.abijah-mikata-map__head,.abijah-services-stage__head,
.abijah-next__stage{position:relative}
.abijah-question__head::after,.abijah-mikata-map__head::after,
.abijah-services-stage__head::after{
 content:"";display:block;width:72px;height:2px;background:#e94a27;
 margin-top:clamp(18px,2.8vw,36px);transform-origin:left center;
}
/* Only hide animated items after JS has positively initialized. */
html.abijah-motion-ready .abijah-motion-item:not(.is-visible){opacity:0;transform:translate3d(0,24px,0)}
html.abijah-motion-ready .abijah-motion-item{transition:opacity .78s var(--abijah-motion-ease),transform .78s var(--abijah-motion-ease);transition-delay:var(--abijah-motion-delay,0ms)}
html.abijah-motion-ready .abijah-motion-item.is-visible{opacity:1;transform:translate3d(0,0,0)}
html.abijah-motion-ready .abijah-mikata-map__side--ally.abijah-motion-item:not(.is-visible){transform:translate3d(-26px,12px,0)}
html.abijah-motion-ready .abijah-mikata-map__side--view.abijah-motion-item:not(.is-visible){transform:translate3d(26px,12px,0)}
html.abijah-motion-ready .abijah-mikata-map__side--ally.abijah-motion-item.is-visible,
html.abijah-motion-ready .abijah-mikata-map__side--view.abijah-motion-item.is-visible{transform:translate3d(0,0,0)}
html.abijah-motion-ready .abijah-question__head:not(.is-visible)::after,
html.abijah-motion-ready .abijah-mikata-map__head:not(.is-visible)::after,
html.abijah-motion-ready .abijah-services-stage__head:not(.is-visible)::after{transform:scaleX(0)}
html.abijah-motion-ready .abijah-question__head::after,
html.abijah-motion-ready .abijah-mikata-map__head::after,
html.abijah-motion-ready .abijah-services-stage__head::after{transition:transform .8s var(--abijah-motion-ease) .25s}
/* Subtle, accessible hover movement for the interactive rows. */
@media(hover:hover) and (pointer:fine){
 .abijah-question__a-item,.abijah-service-line{transition:background-color .3s ease,border-color .3s ease}
 .abijah-question__a-item .abijah-question__a-arrow,
 .abijah-service-line .abijah-service-line__arrow{transition:transform .3s var(--abijah-motion-ease)}
 .abijah-question__a-item:hover .abijah-question__a-arrow,
 .abijah-service-line:hover .abijah-service-line__arrow{transform:translateX(7px)}
}
/* Readability and user preference always take priority over animation. */
@media(prefers-reduced-motion:reduce){
 html.abijah-motion-ready .abijah-motion-item,html.abijah-motion-ready .abijah-motion-item:not(.is-visible),
 html.abijah-motion-ready .abijah-mikata-map__side--ally.abijah-motion-item:not(.is-visible),
 html.abijah-motion-ready .abijah-mikata-map__side--view.abijah-motion-item:not(.is-visible){opacity:1!important;transform:none!important;transition:none!important}
 html.abijah-motion-ready .abijah-question__head::after,
 html.abijah-motion-ready .abijah-mikata-map__head::after,
 html.abijah-motion-ready .abijah-services-stage__head::after{transform:none!important;transition:none!important}
}

/* v3.41 — chapters and section-aware composition */
.abijah-reading-progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:10010;pointer-events:none;background:transparent}
.abijah-reading-progress>span{display:block;height:100%;width:100%;background:#e94a27;transform:scaleX(var(--abijah-page-progress,0));transform-origin:left center;will-change:transform}
.abijah-chapters{position:fixed;z-index:90;left:clamp(12px,1.5vw,24px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:16px;mix-blend-mode:difference}
.abijah-chapters a{display:flex;align-items:center;gap:9px;text-decoration:none;color:#fff;opacity:.55;transition:opacity .3s ease}
.abijah-chapters a span{font:500 10px/1 Montserrat,Arial,sans-serif;letter-spacing:.04em}
.abijah-chapters a i{display:block;width:12px;height:1px;background:currentColor;transition:width .4s cubic-bezier(.22,1,.36,1),height .4s}
.abijah-chapters a b{font:500 9px/1 Montserrat,Arial,sans-serif;letter-spacing:.12em;opacity:0;transform:translateX(-5px);transition:opacity .3s,transform .3s}
.abijah-chapters a.is-active,.abijah-chapters a:hover,.abijah-chapters a:focus-visible{opacity:1}
.abijah-chapters a.is-active i,.abijah-chapters a:hover i,.abijah-chapters a:focus-visible i{width:25px;height:2px}
.abijah-chapters a.is-active b,.abijah-chapters a:hover b,.abijah-chapters a:focus-visible b{opacity:1;transform:none}
/* Graphic depth, not bigger type. These move at a different rate to the content. */
.abijah-mikata-map__center,.abijah-services-stage__closing{transform:translate3d(0,var(--abijah-depth,0px),0);will-change:transform}
.abijah-services-stage__head{isolation:isolate}
.abijah-service-line{position:relative;isolation:isolate}
.abijah-service-line::before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(233,74,39,.045);transform:scaleX(0);transform-origin:left center;transition:transform .65s cubic-bezier(.22,1,.36,1);pointer-events:none}
@media(hover:hover) and (pointer:fine){.abijah-service-line:hover::before{transform:scaleX(1)}}
.abijah-service-line:focus-visible{outline:2px solid #e94a27;outline-offset:3px}
@media(max-width:1250px){.abijah-chapters{display:none}}
@media(prefers-reduced-motion:reduce){.abijah-reading-progress>span{will-change:auto}.abijah-mikata-map__center,.abijah-services-stage__closing{transform:none!important;will-change:auto}.abijah-service-line::before{transition:none}}

/* v3.42 — deliberate, consistent hover and reliable contrast */
@media (hover:hover) and (pointer:fine) {
  .abijah-question__a-item,
  .abijah-question__a-item:nth-child(odd),
  .abijah-question__a-item:nth-child(even),
  .abijah-question__a-unknown {
    transition:padding .42s cubic-bezier(.22,1,.36,1),background-color .42s ease,color .42s ease,border-color .42s ease;
  }
  .abijah-question__a-item .abijah-question__a-word,
  .abijah-question__a-item .abijah-question__a-arrow,
  .abijah-question__a-unknown .abijah-question__a-unknown-arrow,
  .abijah-question__a-unknown::after {
    transition:transform .42s cubic-bezier(.22,1,.36,1),color .42s ease;
  }
  .abijah-service-line,
  .abijah-service-line:hover,
  .abijah-service-line:focus-visible {
    color:#f4f0e8;
  }
  .abijah-service-line .abijah-service-line__en,
  .abijah-service-line .abijah-service-line__verb {
    color:#f4f0e8;
    transition:color .4s ease,transform .4s cubic-bezier(.22,1,.36,1);
  }
  .abijah-service-line:hover .abijah-service-line__en,
  .abijah-service-line:hover .abijah-service-line__verb,
  .abijah-service-line:focus-visible .abijah-service-line__en,
  .abijah-service-line:focus-visible .abijah-service-line__verb {color:#fffaf2;}
  .abijah-service-line:hover .abijah-service-line__no,
  .abijah-service-line:focus-visible .abijah-service-line__no,
  .abijah-service-line:hover .abijah-service-line__arrow,
  .abijah-service-line:focus-visible .abijah-service-line__arrow {color:#ef4a24;}
  .abijah-service-line:hover .abijah-service-line__desc,
  .abijah-service-line:focus-visible .abijah-service-line__desc {color:rgba(255,250,242,.82);}
}
@media (prefers-reduced-motion:reduce) {
  .abijah-question__a-item,.abijah-question__a-unknown,
  .abijah-question__a-item *, .abijah-question__a-unknown *,
  .abijah-service-line,.abijah-service-line * {transition:none!important;}
}

/* v3.43 — clearly perceptible service-row interaction.
   A warm orange wash, an accent rail, and restrained text movement
   distinguish the active row without sacrificing contrast. */
.abijah-service-line {
  transition:background-color .42s ease,box-shadow .42s ease;
}
.abijah-service-line::before {
  z-index:1;
  background:linear-gradient(90deg,rgba(239,74,36,.20) 0%,rgba(239,74,36,.11) 52%,rgba(239,74,36,.045) 100%);
  transition:transform .52s cubic-bezier(.22,1,.36,1);
}
.abijah-service-line::after {
  content:"";position:absolute;z-index:3;left:0;top:14%;bottom:14%;width:4px;
  background:#f0643f;transform:scaleY(0);transform-origin:center;
  transition:transform .4s cubic-bezier(.22,1,.36,1);pointer-events:none;
}
.abijah-service-line__en,.abijah-service-line__verb {
  transition:color .4s ease,transform .42s cubic-bezier(.22,1,.36,1);
}
.abijah-service-line__arrow {
  transition:transform .42s cubic-bezier(.22,1,.36,1),color .4s ease;
}
@media (hover:hover) and (pointer:fine) {
  .abijah-service-line:hover {box-shadow:inset 0 -1px rgba(240,100,63,.45)}
  .abijah-service-line:hover::after {transform:scaleY(1)}
  .abijah-service-line:hover .abijah-service-line__en {color:#fffaf2;transform:translateX(9px)}
  .abijah-service-line:hover .abijah-service-line__verb {color:#fffaf2;transform:translateX(7px)}
  .abijah-service-line:hover .abijah-service-line__arrow {color:#ff8b66;transform:translateX(12px)}
  .abijah-service-line:hover .abijah-service-line__desc {color:#fff4e8}
}
.abijah-service-line:focus-visible {box-shadow:inset 0 -1px rgba(240,100,63,.45)}
.abijah-service-line:focus-visible::before {transform:scaleX(1)}
.abijah-service-line:focus-visible::after {transform:scaleY(1)}
.abijah-service-line:focus-visible .abijah-service-line__en,
.abijah-service-line:focus-visible .abijah-service-line__verb {color:#fffaf2;transform:translateX(7px)}
.abijah-service-line:focus-visible .abijah-service-line__arrow {color:#ff8b66;transform:translateX(12px)}
@media (prefers-reduced-motion:reduce) {
  .abijah-service-line,.abijah-service-line::before,.abijah-service-line::after,
  .abijah-service-line__en,.abijah-service-line__verb,.abijah-service-line__arrow {
    transition:none!important;
  }
}
