/* Subpage-only decoration and motion. Content remains visible without JavaScript. */
#profile-view .asano-profile-refined h2:not(#profile-person-name),
#achievements-view .achievement-heading h1,
#achievements-view .ar-section-heading h2 {
    --asano-marker-color: #f2d34f;
    --asano-marker-height: .18em;
    background-image: linear-gradient(var(--asano-marker-color), var(--asano-marker-color));
    background-position: left 91%;
    background-size: 100% var(--asano-marker-height);
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
#profile-view .asano-profile-refined h2:not(#profile-person-name).asano-marker-draw,
#achievements-view .achievement-heading h1.asano-marker-draw,
#achievements-view .ar-section-heading h2.asano-marker-draw {
    animation: asano-page-marker-draw .74s cubic-bezier(.22,.68,.24,1) both;
}
@keyframes asano-page-marker-draw {
    from { background-size: 0 var(--asano-marker-height); }
    to { background-size: 100% var(--asano-marker-height); }
}
/* A slight arrival, without hiding a photo or changing its crop. */
#profile-view .asano-photo-arrive,
#achievements-view .asano-photo-arrive {
    animation: asano-page-photo-arrive .64s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes asano-page-photo-arrive {
    from { opacity: .94; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}
/* The supplied transparent townscape is shared with the footer as decoration. */
#achievements-view .achievement-intro-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
#achievements-view .achievement-intro-band > .section-wrap {
    position: relative;
    z-index: 1;
}
#achievements-view .achievement-intro-band::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    right: max(24px, calc((100% - 1220px) / 2));
    bottom: 24px;
    width: min(60vw, 790px);
    aspect-ratio: 6 / 1;
    background: url("../images/gifu-townscape-supplied.png") center / contain no-repeat;
    opacity: .64;
}
#achievements-view .ar-fields {
    position: relative;
    isolation: isolate;
}
#achievements-view .ar-fields::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    top: 46px;
    right: 0;
    width: min(38%, 450px);
    aspect-ratio: 6 / 1;
    background: url("../images/gifu-townscape-supplied.png") center / contain no-repeat;
    opacity: .18;
}
@media (max-width: 760px) {
    #achievements-view .achievement-heading { padding-bottom: clamp(88px, 21vw, 150px); }
    #achievements-view .achievement-intro-band::after {
        right: 22px;
        bottom: 14px;
        width: calc(100% - 44px);
        opacity: .7;
    }
    #achievements-view .ar-fields::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #profile-view .asano-marker-draw,
    #achievements-view .asano-marker-draw,
    #profile-view .asano-photo-arrive,
    #achievements-view .asano-photo-arrive {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    #profile-view .asano-profile-refined h2:not(#profile-person-name),
    #achievements-view .achievement-heading h1,
    #achievements-view .ar-section-heading h2 { background-size: 100% var(--asano-marker-height); }
}
@media print {
    #profile-view .asano-marker-draw,
    #achievements-view .asano-marker-draw,
    #profile-view .asano-photo-arrive,
    #achievements-view .asano-photo-arrive { animation: none !important; opacity: 1 !important; transform: none !important; }
    #achievements-view .achievement-intro-band::after,
    #achievements-view .ar-fields::before { display: none; }
}
