/* landing_animations.css — styles for the three service panel art animations */

/* ── Hero entrance: hide before JS animates in (desktop only) ───── */
@media (min-width: 1001px) {
    #hero,
    #hero nav,
    .textual h1,
    .textual p,
    .textual a,
    #hero-illus-wrap {
        opacity: 0;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

/* ── Panel art base ─────────────────────────────────────────────── */
.panel-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* ── Resources orbit ───────────────────────────────────────────── */
/* #services #resources-art has specificity 200 — beats the general .panel-art override (111) */
#services #resources-art { width: 400px; height: 320px; }
#resources-orbit {
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    overflow: visible;
}
.res-file {
    position: absolute;
    left: 0; top: 0;
    width: 104px; height: 132px;
    margin: -66px 0 0 -52px;
    border-radius: 4px 14px 14px 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    will-change: transform, opacity;
    padding-top: 4px;
}
.res-file::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 22px 22px 0;
    border-color: transparent;
}
.res-file .rf-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.res-file .rf-ico svg { width: 100%; height: 100%; }
.res-file .rf-ext { font-family: 'Josefin Slab', serif; font-weight: 700; font-size: 12px; letter-spacing: .04em; margin-bottom: 5px; }
.rf-pdf  { background: #fff8f7; } .rf-pdf::before  { border-right-color: #EB5757; } .rf-pdf  .rf-ext { color: #EB5757; }
.rf-py   { background: #f4f9ff; } .rf-py::before   { border-right-color: #3776ab; } .rf-py   .rf-ext { color: #3776ab; }
.rf-html { background: #fff7f4; } .rf-html::before { border-right-color: #e44d26; } .rf-html .rf-ext { color: #e44d26; }
.rf-quiz { background: #f0faff; } .rf-quiz::before { border-right-color: #019ad9; } .rf-quiz .rf-ext { color: #019ad9; }
.rf-docx { background: #f4f8ff; } .rf-docx::before { border-right-color: #2b579a; } .rf-docx .rf-ext { color: #2b579a; }
.rf-pptx { background: #fff6f3; } .rf-pptx::before { border-right-color: #d24726; } .rf-pptx .rf-ext { color: #d24726; }
.rf-xlsx { background: #f3faf5; } .rf-xlsx::before { border-right-color: #217346; } .rf-xlsx .rf-ext { color: #217346; }
.rf-sum  { background: #fff8f5; } .rf-sum::before  { border-right-color: #ff703e; } .rf-sum  .rf-ext { color: #ff703e; }

/* ── Assistants art ────────────────────────────────────────────── */
/* override "section > div { flex-flow: column; width: 50% }" which bleeds onto .panel-art */
#assistants-art {
    display: flex;
    flex-direction: row;  /* robot left, bubbles right */
    align-items: center;
    width: auto;
    overflow: visible;
}
.asst-robot-wrap {
    position: relative;
    width: 270px; height: 336px;
    flex: 0 0 270px;
    will-change: transform;
}
.asst-robot-shadow {
    position: absolute;
    bottom: 30px; left: 50%;
    width: 160px; height: 20px;
    border-radius: 50%;
    background: rgba(1,154,217,.2);
    filter: blur(8px);
    transform: translateX(-50%);
    z-index: -1;
}
.asst-robot-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transform-origin: center;
    will-change: transform;
    filter: drop-shadow(0 24px 24px rgba(1,154,217,.22));
}
.asst-bubbles {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    margin-left: -4px;
}
.asst-bubble {
    background: var(--primary-light);
    color: var(--text-dark);
    font-family: var(--font-text-secondary);
    font-size: 2rem;
    line-height: 1.5;
    padding: 13px 28px;
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    box-shadow: 0 8px 20px rgba(1,154,217,.14);
    white-space: nowrap;
    will-change: transform, opacity;
}
.asst-bubble.ab2 { margin-left: 40px; }
.asst-bubble.ab3 { margin-left: 14px; }
.asst-text { display: none; }
.asst-dots { display: inline-flex; gap: 5px; align-items: center; height: 1.5em; vertical-align: middle; }
.asst-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grey-blue);
    opacity: .45;
    animation: asst-typ 1s infinite;
}
.asst-dots span:nth-child(2) { animation-delay: .16s; }
.asst-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes asst-typ {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-5px); opacity: .95; }
}

/* ── Guides art: "the fork resolves" ───────────────────────────────
   Values below are the RESOLVED resting state (route chosen, pin planted),
   so no-JS and reduced-motion visitors get the meaningful end picture.
   initGuidesAnim() overrides these to the "before" state and animates in. */
#services #guides-art { width: 340px; height: 320px; }
#guides-svg { width: 100%; height: 100%; overflow: visible; }

.gf-route {
    fill: none;
    stroke: #c2ccd3;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 9 11;
    opacity: .18;              /* routes not taken, faded back */
}
.gf-route-chosen { opacity: 0; }   /* dashed twin hides under the solid stroke */
.gf-route-solid {
    fill: none;
    stroke: var(--primary-saturated);
    stroke-width: 5.5;
    stroke-linecap: round;
}
.gf-route-glow {
    fill: none;
    stroke: #7ee8f8;
    stroke-width: 9;
    stroke-linecap: round;
    opacity: 0;                /* only lit while the idle pulse travels */
    filter: url(#guides-glow);
}

.gf-origin { fill: var(--primary-saturated); }
.gf-qnode { opacity: .18; }
.gf-qnode-chosen { opacity: 0; }   /* its question got answered */
.gf-qcirc { fill: #fff; stroke: #c2ccd3; stroke-width: 3; }
.gf-qtext {
    font-family: var(--font-titles);
    font-size: 19px;
    fill: #9aa  ae;
    text-anchor: middle;
}

.gf-pin-body { fill: var(--accent); }
.gf-pin-dot { fill: #fff; }

/* ── Mobile: hide all panel arts ────────────────────────────────── */
@media (max-width: 1000px) {
    .panel-art { display: none !important; }
}
