/* ==========================================================================
   Illustrative product scenes (inc/scenes.php, template-parts/scene-*.php).
   Shared by the home page, the scene bands under inner page heroes and the
   About page. Each scene renders its finished frame; scenes.js replays it.
   ========================================================================== */

/* ---------- One visit, connected (template-parts/scene-visit.php) ---------- */
/* Workflow panel */
.h-panel {
    margin: 0;
    padding: 24px;
    border-radius: 20px;
    background: var(--arasync-navy);
    color: #E6EEF1;
    box-shadow: 0 30px 60px -30px rgba(30, 43, 58, 0.45);
}

.h-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.h-panel-head .eyebrow { color: #9FCBC7; }
.h-panel-head .code-tag { color: #9FB2BF; background: rgba(255, 255, 255, 0.06); padding: 6px 10px; border-radius: 6px; }

.h-visit {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px;
    border-radius: 12px;
    background: var(--arasync-navy-light);
}
.h-visit strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; color: #fff; }
.h-visit span { font-size: 0.82rem; color: #A9BAC6; }

.h-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }

.h-step {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.h-step b { display: block; font-weight: 600; font-size: 0.95rem; color: #fff; }
.h-step small { font-size: 0.82rem; color: #A9BAC6; }

.h-dot {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(47, 125, 122, 0.25);
    color: #8FD3CC;
}
.h-dot svg { width: 18px; height: 18px; }

.h-pill {
    padding: 6px 9px;
    border-radius: 999px;
    font: 600 0.7rem/1 var(--font-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.h-pill { background: rgba(47, 125, 122, 0.3); color: #A6E0DA; transition: background 0.3s ease, color 0.3s ease; }

/* Step states, driven by home-motion.js. The markup ships as "done". */
.h-panel { position: relative; overflow: hidden; }
.h-step { transition: background 0.4s ease, border-color 0.4s ease; }
.h-step small { min-height: 1.3em; }
.h-dot { position: relative; transition: background 0.3s ease, color 0.3s ease; }
.h-act { display: flex; align-items: center; gap: 8px; justify-self: end; }

.h-step[data-s="pending"] b { color: #A9BAC6; }
.h-step[data-s="pending"] .h-dot,
.h-step[data-s="pending"] .h-pill { background: rgba(255, 255, 255, 0.07); color: #8396A4; }
.h-step[data-s="active"] { background: rgba(143, 211, 204, 0.07); border-color: rgba(143, 211, 204, 0.25); }
.h-step[data-s="active"] .h-pill { background: rgba(255, 255, 255, 0.07); color: #A6E0DA; }
.h-step[data-s="active"] .h-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid #8FD3CC;
    border-radius: 50%;
    animation: h-ring 1s ease-out infinite;
}
.h-step[data-s="wait"] .h-pill { background: rgba(183, 121, 31, 0.22); color: #F2C98A; }

.h-approve {
    display: none;
    padding: 7px 11px;
    border-radius: 8px;
    background: var(--arasync-primary);
    font: 600 0.74rem/1 var(--font-primary);
    color: #fff;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.h-step[data-s="wait"] .h-approve { display: inline-flex; }
.h-approve.is-pressed { transform: scale(0.94); filter: brightness(1.15); }

@keyframes h-ring {
    from { transform: scale(0.85); opacity: 0.7; }
    to { transform: scale(1.35); opacity: 0; }
}

.h-panel-foot { display: grid; gap: 8px; margin-top: 16px; }
.h-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.h-bar i { display: block; width: var(--w, 100%); height: 100%; border-radius: 4px; background: #8FD3CC; transition: width 0.7s ease; }
.h-foot-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; color: #A9BAC6; }
.h-foot-text { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.h-foot-text svg { flex: none; width: 16px; height: 16px; color: #8FD3CC; }
.h-foot-code { font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 0.74rem; color: #8FD3CC; }
.h-swap { animation: h-swap 0.35s ease; }
@keyframes h-swap {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.h-cursor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    width: 22px;
    height: 22px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.3s ease;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}
.h-cursor path { fill: #fff; stroke: var(--arasync-navy); stroke-width: 1.4; stroke-linejoin: round; }
.h-cursor path { transform-box: fill-box; transform-origin: 20% 20%; }
/* The press scales the arrow shape only; the element's own transform carries its position. */
.h-cursor.is-clicking path { animation: h-press 0.22s ease; }
@keyframes h-press { 50% { transform: scale(0.8); } }

/* Pause control shared by the animated panels */
.h-motion-toggle {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: transparent;
    color: #A9BAC6;
    cursor: pointer;
}
.h-motion-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.h-motion-toggle svg { width: 13px; height: 13px; }
.h-motion-toggle .h-ic-play,
.h-motion-toggle[aria-pressed="true"] .h-ic-pause { display: none; }
.h-motion-toggle[aria-pressed="true"] .h-ic-play { display: grid; }
.h-motion-toggle[hidden] { display: none; }


/* ---------- The Solid Core ring (template-parts/scene-ring.php) ---------- */
.h-ring-svg { display: block; width: 100%; max-width: 100%; height: auto; overflow: visible; }
.h-ring-svg .h-ring-arc { fill: none; stroke-linecap: round; }
.h-ring-svg .h-ring-label { font-family: var(--font-heading); font-weight: 600; fill: var(--ink-2); }
.h-ring-svg .h-ring-person { fill: var(--arasync-primary); }
.h-ring-svg .h-ring-caption { font-family: var(--font-heading); font-weight: 700; fill: var(--teal-ink); }


/* ---------- Scene shell, stage and the Verify scene ---------- */
/* The scene sits on a teal panel; each scene file styles its own contents. */
.h-moment-stage,
.scene-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: clamp(18px, 3vw, 32px);
    border-radius: 20px;
    background: var(--teal-soft);
}
.h-scene { position: relative; width: 100%; max-width: 580px; margin: 0; }
.h-scene-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--teal-ink);
}
.h-scene-cap .h-motion-toggle { border-color: rgba(36, 97, 95, 0.3); color: var(--teal-ink); }
.h-scene-cap .h-motion-toggle:hover { border-color: var(--teal-ink); color: var(--ink); }

.h-evv { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.h-evv .h-scene-cap { flex: 1 1 100%; }

.h-phone {
    flex: none;
    width: 236px;
    max-width: 100%;
    padding: 9px;
    border-radius: 34px;
    background: #16212D;
    box-shadow: 0 30px 60px -32px rgba(30, 43, 58, 0.45);
}
.h-ph-screen {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 418px;
    padding: 12px 12px 16px;
    border-radius: 26px;
    background: var(--arasync-gray-50);
    color: var(--ink);
    overflow: hidden;
}
.h-ph-status { display: flex; justify-content: space-between; padding: 2px 6px 4px; font: 600 0.72rem/1 var(--font-primary); font-variant-numeric: tabular-nums; }
.h-ph-title { padding: 0 4px; font: 700 1.2rem/1 var(--font-heading); color: var(--ink); }
.h-ph-sub { margin-top: -4px; padding: 0 4px; font-size: 0.72rem; color: var(--ink-3); }
.h-ph-card { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--arasync-line); border-radius: 16px; background: var(--arasync-white); }
.h-ph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h-ph-row b { font: 600 0.92rem/1.2 var(--font-heading); color: var(--ink); }
.h-ph-code { padding: 4px 6px; border-radius: 5px; background: var(--teal-soft); font: 500 0.66rem/1 var(--font-mono, "IBM Plex Mono", monospace); color: var(--teal-ink); }
.h-ph-card small { margin-top: -6px; font-size: 0.72rem; color: var(--ink-3); }
.h-ph-loc { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; color: var(--teal-ink); }
.h-ph-loc svg { flex: none; width: 14px; height: 14px; }
.h-ph-times { display: flex; justify-content: space-between; font: 500 0.72rem/1 var(--font-mono, "IBM Plex Mono", monospace); font-variant-numeric: tabular-nums; color: var(--ink); }
.h-ph-times span { display: grid; gap: 4px; }
.h-ph-times em { font: normal 600 0.6rem/1 var(--font-primary); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.h-ph-progress { height: 4px; border-radius: 4px; background: var(--arasync-line); overflow: hidden; }
.h-ph-progress i { display: block; width: var(--w, 100%); height: 100%; background: var(--arasync-primary); }
.h-ph-sig { padding: 6px 8px 2px; border: 1px dashed var(--arasync-line); border-radius: 10px; }
.h-ph-sig span { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.h-ph-sig svg { display: block; width: 100%; height: 40px; }
.h-ph-sig path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.h-ph-sig.is-drawing path { animation: h-sign 1.1s ease forwards; }
@keyframes h-sign {
    from { stroke-dashoffset: 420; }
    to { stroke-dashoffset: 0; }
}
.h-ph-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px;
    border-radius: 12px;
    background: var(--arasync-primary);
    font: 600 0.84rem/1 var(--font-primary);
    color: #fff;
    transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}
.h-ph-btn svg { width: 15px; height: 15px; }
.h-ph-btn[data-v="in"] { background: var(--teal-soft); color: var(--teal-ink); }
.h-ph-btn[data-v="done"] { background: var(--teal-ink); }
.h-ph-btn:not([data-v="done"]) svg { display: none; }
.h-ph-btn.is-pressed { transform: scale(0.96); }
.h-ph-loc, .h-ph-times, .h-ph-progress, .h-ph-sig { transition: opacity 0.35s ease, transform 0.35s ease; }
.h-evv .is-off { opacity: 0; transform: translateY(6px); }

.h-office {
    display: grid;
    gap: 10px;
    flex: none;
    width: 250px;
    max-width: 100%;
    padding: 16px;
    border: 1px solid var(--arasync-line);
    border-radius: 16px;
    background: var(--arasync-white);
    box-shadow: 0 30px 60px -32px rgba(30, 43, 58, 0.45);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.h-evv .h-office.is-off { transform: translateY(14px); }
.h-office strong { font: 600 1rem/1.2 var(--font-heading); color: var(--ink); }
.h-office ul { display: grid; list-style: none; margin: 0; padding: 0; }
.h-office li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--arasync-line); font-size: 0.82rem; }
.h-office li span { color: var(--ink-3); }
.h-office li b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.h-office .h-ok { padding: 3px 8px; border-radius: 999px; background: var(--teal-soft); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--teal-ink); }

.h-tap {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(30, 43, 58, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.3s ease;
}
.h-tap.is-pressing { animation: h-tap-press 0.25s ease; }
@keyframes h-tap-press { 50% { background: rgba(30, 43, 58, 0.42); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35); } }


/* ---------- Scene band: a scene under an inner page's hero ---------- */
.scene-band { padding-block: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--arasync-line); }
.scene-band-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.scene-band-copy h2 { margin-top: 14px; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; color: var(--ink); }
.scene-band-copy > p { margin-top: 14px; font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }
.scene-band-points { display: grid; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.scene-band-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); }
.scene-band-points svg { width: 18px; height: 18px; margin-top: 3px; color: var(--arasync-primary); }
.scene-stage .h-panel { margin-inline: auto; }

/* About page: the mark in "Why the name" builds itself from the ring. */
.about-name-ring { flex: none; width: clamp(110px, 14vw, 168px); height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .scene-band-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
    .h-panel { padding: 18px; border-radius: 16px; }
    .h-step { grid-template-columns: 34px 1fr; }
    .h-step .h-act { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .h-panel *,
    .h-panel *::after,
    .h-evv *,
    .h-evv *::after { animation: none !important; transition: none !important; }
}
