/* ============================================================
   ronde-drone.css: what project1-ronde.html has of its own
   ------------------------------------------------------------
   Loaded after ronde-project.css (shared with the other project
   pages), which still styles the hero, cover, stats, overview,
   steps and the rotating showcase. This file adds:

   - the signals panel: an ink panel, dark in both modes, with the
     project's ring of six halftone circles (#dr-ring) beside six
     pills, one per signal;
   - the frame panel: a white card over a soft blue wash, where one
     frame is drawn in real counts (#dr-pass): 500 dots, 22 dots,
     one circle, four circles.

   js/rondeDrone.js draws both canvases. The one accent is the
   project's ultramarine (--pr-accent). The trading page has the same
   two kinds of panel the other way round (tinted first, ink last);
   see ronde-trading.css. Rules: docs/rondeDesignRules.md.
   ============================================================ */

/* The title's full stop, as on the home, resume and contact headings. */
.dr-stop { color: var(--pr-accent); }

/* ── Signals: ring of six left, pills right, on ink ── */
.dr-sig {
    --dr-bg: #111214;
    --dr-fg: #f7f7f7;
    --dr-fg-2: rgba(255, 255, 255, .7);
    --dr-muted: rgba(255, 255, 255, .45);
    --dr-line: rgba(255, 255, 255, .24);
    --dr-accent: #b7b0ff;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(28px, 4.4vw, 56px);
    overflow: hidden;
    isolation: isolate;
    border-radius: 32px;
    background: var(--dr-bg);
    color: var(--dr-fg);
}

/* One blurred light in the accent, behind the ring. */
.dr-sig::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -10%;
    bottom: -50%;
    width: 60%;
    height: 120%;
    border-radius: 50%;
    background: #4f3fe0;
    opacity: .34;
    filter: blur(90px);
    pointer-events: none;
}

.dr-sig__art {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    justify-self: center;
}

#dr-ring {
    display: block;
    width: 100%;
    height: 100%;
    color: var(--dr-fg);
}

.dr-sig__lab {
    color: var(--dr-muted);
    font-size: 14px;
}

.dr-sig .pr-h2 {
    max-width: 11ch;
    margin-top: 10px;
}

.dr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 440px;
    margin-top: clamp(24px, 3vw, 36px);
}

.dr-pills button {
    display: inline-flex;
    height: 40px;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--dr-line);
    border-radius: 999px;
    background: transparent;
    font-size: 15px;
    transition: background .2s ease-out, color .2s ease-out, border-color .2s ease-out, transform .15s;
}

body.rh .dr-pills button { color: var(--dr-fg); }
.dr-pills button:hover { background: rgba(255, 255, 255, .08); }
.dr-pills button:active { transform: scale(.96); }
.dr-sig :focus-visible { outline-color: var(--dr-fg); }

/* The signal whose circle is lifted out of the ring: solid. */
.dr-pills button.is-on {
    border-color: var(--dr-fg);
    background: var(--dr-fg);
}

body.rh .dr-pills button.is-on { color: var(--dr-bg); }

.dr-sig__note {
    max-width: 400px;
    min-height: 3em;
    margin-top: 20px;
    color: var(--dr-fg-2);
    font-size: 16px;
    line-height: 1.5;
}

/* ── One frame: white card on a blue wash ── */
.dr-pass {
    position: relative;
    padding: clamp(24px, 4vw, 48px);
    overflow: hidden;
    isolation: isolate;
    border-radius: 32px;
    background: var(--rh-card);
    box-shadow: var(--rh-panel-shadow);
}

.dr-pass::before,
.dr-pass::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.dr-pass::before {
    top: -40%;
    right: -10%;
    width: 55%;
    height: 100%;
    background: var(--pr-accent);
    opacity: .2;
}

.dr-pass::after {
    left: -10%;
    bottom: -50%;
    width: 50%;
    height: 90%;
    background: #B5CEFD;
    opacity: .5;
}

.dr-pass__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dr-pass__head .pr-h2 {
    max-width: 14ch;
    margin-top: 10px;
}

.dr-pass__stage {
    position: relative;
    height: clamp(200px, 22vw, 250px);
    margin-top: clamp(16px, 3vw, 32px);
}

#dr-pass {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    color: var(--rh-ink);
}

/* The four counts sit under their drawings, one per quarter. */
.dr-pass__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    list-style: none;
    text-align: center;
}

.dr-pass__steps li { transition: opacity .35s ease-out; }
.dr-pass__steps li.is-waiting { opacity: .28; }

.dr-pass__steps strong {
    display: block;
    font-size: clamp(40px, 4.6vw, 56px);
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dr-pass__steps small {
    color: var(--rh-muted);
    font-size: .5em;
    font-weight: 400;
    letter-spacing: 0;
}

.dr-pass__steps span {
    display: block;
    margin-top: 8px;
    color: var(--rh-muted);
    font-size: 14px;
}

/* ── Tablets ── */
@media (max-width: 960px) {
    .dr-sig { grid-template-columns: minmax(0, 1fr); }
    .dr-sig__art { max-width: 320px; }
    .dr-sig .pr-h2 { max-width: none; }
}

/* ── Phones: the frame runs top to bottom, counts beside it ── */
@media (max-width: 760px) {
    .dr-sig,
    .dr-pass { border-radius: 24px; }
    .dr-sig__art { max-width: 260px; }
    .dr-pass__head { flex-direction: column; }
    .dr-pass__body {
        display: grid;
        grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
        align-items: stretch;
        gap: 8px;
        margin-top: 20px;
    }
    .dr-pass__stage { height: 600px; margin-top: 0; }
    .dr-pass__steps {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(4, minmax(0, 1fr));
        margin-top: 0;
        text-align: left;
    }
    .dr-pass__steps li { display: flex; flex-direction: column; justify-content: center; }
}

@media (prefers-color-scheme: dark) {
    /* A step lighter than the near-black page, like the showcase frame. */
    .dr-sig { --dr-bg: #17181b; }
    .dr-pass::before { opacity: .22; }
    .dr-pass::after { opacity: .1; }
}

@media (prefers-reduced-motion: reduce) {
    .dr-pills button,
    .dr-pass__steps li { transition: none; }
}
