/* About page: the Altigrid mark assembling itself on a black panel (after caitlyn.ai/company, without the water).
   The panel sits on the page gutter with the hero's 12px corners. Square on phones, 16:9 from 768px, never
   taller than most of the screen. The mark is drawn in SVG, so it stays sharp at every size; the motion is
   in static/logo-motion.js. */

.logo-motion {
    padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--gutter) 0;
}

.logo-motion__panel {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    background-color: #000000;
    overflow: hidden;
}

@media (min-width: 768px) {
    .logo-motion__panel {
        aspect-ratio: 16 / 9;
        max-height: 85svh;
    }
}

/* The mark: 104px wide on phones, about 200px on a 1440px screen, 240px at most.
   The pieces travel outside this box, so it lets them show (the panel clips at its edges). */
.logo-motion__mark {
    width: clamp(6.5rem, 4rem + 10vw, 15rem);
    height: auto;
    overflow: visible;
    shape-rendering: geometricPrecision;
    will-change: transform; /* its own layer: each frame redraws only the mark, not the whole page */
}

/* Start hidden; the animation shows them when it needs them */
.logo-motion__outline,
.logo-motion__pulse,
.logo-motion__track,
.logo-motion__field,
.logo-motion__tip,
.logo-motion__halo {
    display: none;
}

.logo-motion__mark rect,
.logo-motion__mark .logo-motion__bridge,
.logo-motion__field circle,
.logo-motion__tip,
.logo-motion__halo {
    fill: #ffffff;
}

/* Only used by the animation; hidden in the finished (static) logo */
.logo-motion__outline {
    fill: none;
    stroke: #ffffff;
    stroke-width: 0.8;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.logo-motion__pulse {
    fill: none;
    stroke: #ffffff;
    stroke-width: 0.5;
}

/* The orbit act's track: a fine dotted ring the squares travel round */
.logo-motion__track {
    fill: none;
    stroke: #ffffff;
    stroke-width: 0.55;
    stroke-linecap: round;
    stroke-dasharray: 0.01 2.4;
}

/* The line act's pen: a bright point with a soft halo, leading the line */
.logo-motion__halo {
    opacity: 0.22;
}
