/* ============================================================================
   PLATFORM GLYPH — palette and keyframes
   ----------------------------------------------------------------------------
   Split out of mission-load.css so pages that want only the schematics (the
   homepage section headings) do not have to load the boot-overlay styles.
   Geometry and timing live in platform-glyph.js.
   ========================================================================= */

/* ---- section heading placement --------------------------------------------
   The glyph sits above the eyebrow, as it does on every card in the film. */

.sec-glyph {
    display: block;
    width: 58px;
    height: 58px;
    margin: 0 0 16px;
}

.sec-glyph svg { width: 100%; height: 100%; }

.product-info .sec-glyph { width: 50px; height: 50px; margin-bottom: 14px; }

@media (max-width: 640px) {
    .sec-glyph { width: 46px; height: 46px; margin-bottom: 12px; }
    .product-info .sec-glyph { width: 42px; height: 42px; }
}

.pglyph {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Structure is white; anything that moves is cyan. That split is what makes
   the drawing read as a machine rather than an icon. */
.pglyph-body,
.pglyph-arm,
.pglyph-disc,
.pglyph-wheel,
.pglyph-hatch,
.pglyph-wp,
.pglyph-gimbal {
    fill: none;
    stroke: #eaf3ef;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pglyph-body,
.pglyph-wheel,
.pglyph-hatch { fill: rgba(64, 150, 210, 0.16); }

.pglyph-disc { stroke-width: 1.7; fill: rgba(64, 150, 210, 0.1); }

.pglyph-blade,
.pglyph-bore,
.pglyph-track {
    fill: none;
    stroke: #2ad4f8;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.pglyph-ring {
    fill: none;
    stroke: #2ad4f8;
    stroke-width: 2.2;
}

.pglyph-track { stroke-width: 1.9; stroke-dasharray: 5 5; }
.pglyph-eye,
.pglyph-hub { fill: #2ad4f8; stroke: none; }

/* Scope, sigil and detection frame */
.pglyph-ring-w,
.pglyph-arrowline {
    fill: none;
    stroke: #eaf3ef;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pglyph-wedge {
    fill: rgba(42, 212, 248, 0.3);
    stroke: none;
}

/* Acquisition box, Samaritan idiom: square corners and butt caps throughout.
   A rounded join here reads as a logo; a hard one reads as an instrument. */
.pglyph-bracket {
    fill: none;
    stroke: #2ad4f8;
    stroke-width: 2.8;
    stroke-linecap: butt;
    stroke-linejoin: miter;
}

.pglyph-frame {
    fill: none;
    stroke: rgba(42, 212, 248, 0.42);
    stroke-width: 1.2;
}

.pglyph-tick {
    stroke: rgba(42, 212, 248, 0.8);
    stroke-width: 1.6;
    stroke-linecap: butt;
}

.pglyph-face {
    fill: none;
    stroke: #eaf3ef;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pglyph-scan {
    fill: #2ad4f8;
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(42, 212, 248, 0.9));
}

.pglyph-readout,
.pglyph-tag { fill: #2ad4f8; stroke: none; }
.pglyph-tagbar { fill: rgba(5, 12, 20, 0.75); stroke: none; }

@keyframes pglyph-blink {
    0%, 8%   { opacity: 1; }
    60%, 100% { opacity: 0.15; }
}

/* Sources drawing in toward the centre as the ring shuts around them, then
   releasing. The 62% mark is the ring's closing point, so the two read as a
   single movement: the formation closes, the approaches converge. */
@keyframes pglyph-converge {
    0%        { transform: scale(1.05); opacity: 0.55; }
    62%, 100% { transform: scale(0.94); opacity: 1; }
}

@keyframes pglyph-lock {
    0%, 100% { transform: scale(1); }
    46%      { transform: scale(0.93); }
    54%      { transform: scale(0.93); }
}

/* The scan travels the height of the box, pauses at the bottom, snaps back. */
@keyframes pglyph-scanline {
    0%        { transform: translateY(0); opacity: 0; }
    6%        { opacity: 0.9; }
    78%       { transform: translateY(var(--travel)); opacity: 0.9; }
    86%, 100% { transform: translateY(var(--travel)); opacity: 0; }
}

/* The box widens while the scan runs, then snaps shut on the subject the
   instant it completes — the lock, not a pulse. */
@keyframes pglyph-acquire {
    0%        { transform: scale(1.06); }
    74%       { transform: scale(1.06); }
    82%, 100% { transform: scale(0.97); }
}

@keyframes pglyph-draw { to { stroke-dashoffset: 0; } }

/* The ring travels round, shuts at 62% of the cycle, and holds closed. */
@keyframes pglyph-close {
    0%        { stroke-dashoffset: var(--len); }
    62%, 100% { stroke-dashoffset: 0; }
}

@keyframes pglyph-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes pglyph-pop {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pglyph-spin { to { transform: rotate(360deg); } }

/* The turret sweeps its arc rather than spinning: a UGV scans, it does not
   windmill. */
@keyframes pglyph-sweep {
    0%, 100% { transform: rotate(-34deg); }
    50%      { transform: rotate(34deg); }
}

@keyframes pglyph-flow { to { stroke-dashoffset: -20; } }
