@charset "UTF-8";
/* ===========================================================================
   IDOLS OF OUR LINEAGE
   ---------------------------------------------------------------------------
   Was a straight copy of vinyasayogaacademy.com's `idol-vinyasa-section`, down
   to the class names: two tidy rows, four over three, with a ruled line and
   green dots strung between them.

   It is now a constellation. The seven masters sit at their own points across
   a canvas, high and low in turn, and a dotted thread runs from one to the
   next — a line of transmission you can see, which is what a lineage is. No
   row, no grid, no two of them at the same height.

   HOW IT HOLDS TOGETHER: the canvas has a fixed 12:5 ratio, and the thread is
   an SVG with viewBox "0 0 1200 430" at preserveAspectRatio xMidYMid meet.
   Because the ratios match, the SVG scales uniformly with the canvas and its
   user units stay exactly 1/1200 of the width at every size, so a curve drawn
   to a portrait's centre meets that centre at 1024px and at 1920px alike. The
   nodes are placed by --x / --y, set per node in the markup, in the same
   coordinate space. Change one and the other has to change with it.

   The thread sits BEHIND the portraits on purpose: each curve runs to the
   centre of a face and disappears under it, which is why it reads as a thread
   passing through rather than as seven lines stopping short.

   Below 62rem there is no room for a constellation, so the canvas becomes an
   ordinary two-column list, the thread is switched off, and nothing is placed
   by coordinates at all.
   =========================================================================== */

.idol-vinyasa-section .ryp-lineage {
    position: relative;
    margin-top: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
    /* The canvas ratio and the thread's viewBox ("0 0 1200 430") are the same
       number. They have to be: the nodes are placed in percentages of this
       box and the SVG scales to fit it, so the moment the two ratios differ
       the SVG letterboxes and every curve misses the face it was drawn to. */
    aspect-ratio: 12 / 4.3;
}

.idol-vinyasa-section .ryp-lin__thread {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.idol-vinyasa-section .ryp-lin__thread path {
    stroke: rgba(222, 42, 29, .5);
    stroke-width: 4;
    stroke-linecap: round;
    /* a zero-length dash with a round cap is a dot; the gap sets the spacing */
    stroke-dasharray: 0.1 15;
}

.idol-vinyasa-section .ryp-lin__nodes {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.idol-vinyasa-section .ryp-lin__node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 13.33%;              /* 160 of 1200 — the spacing between two nodes
                                   is 14.33%, so this leaves a real gutter.
                                   At 15.83% the captions ran underneath the
                                   next portrait; measured. */
    text-align: center;
}

/* ---------------------------------------------------------------------------
   THE PORTRAIT
   ---------------------------------------------------------------------------
   The seven files are photographs at seven different shapes — 250x254, 297x400,
   222x183 and so on. A square frame with `cover` is what makes them one set;
   `object-position: center 28%` keeps the face in frame on the tall one
   (Pattabhi Jois, 297x400) without cropping the short ones oddly.
   --------------------------------------------------------------------------- */
.idol-vinyasa-section .ryp-lin__portrait {
    position: relative;
    margin: 0 auto;
    width: 81.25%;              /* 130 of the 160-wide node */
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 26px;
    background: var(--ryp-red-tint);
    transition: transform 420ms cubic-bezier(.33, 1, .68, 1),
                box-shadow 420ms cubic-bezier(.33, 1, .68, 1);
}
.idol-vinyasa-section .ryp-lin__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

/* Three tints in rotation, so the constellation reads as a set of points
   rather than seven copies of one tile. All three are brand colours. */
.idol-vinyasa-section .ryp-lin__node:nth-child(3n + 2) .ryp-lin__portrait { background: #f4efec; }
.idol-vinyasa-section .ryp-lin__node:nth-child(3n)     .ryp-lin__portrait { background: var(--ryp-paper); }

/* Every other node tilts the other way. Small — 1.5 degrees is enough to stop
   the row of squares lining up, and little enough that no face looks crooked. */
.idol-vinyasa-section .ryp-lin__node:nth-child(odd)  .ryp-lin__portrait { transform: rotate(-1.5deg); }
.idol-vinyasa-section .ryp-lin__node:nth-child(even) .ryp-lin__portrait { transform: rotate(1.5deg); }

.idol-vinyasa-section .ryp-lin__node:hover .ryp-lin__portrait,
.idol-vinyasa-section .ryp-lin__node:focus-within .ryp-lin__portrait {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 0 14px 30px rgba(26, 26, 26, .12);
}

/* ---------------------------------------------------------------------------
   THE CAPTION
   --------------------------------------------------------------------------- */
.idol-vinyasa-section .ryp-lin__name {
    margin: .75rem 0 0;
    font-size: clamp(.875rem, .8rem + .3vw, 1.0625rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ryp-ink);
}

.idol-vinyasa-section .ryp-lin__tag {
    display: inline-block;
    margin: .375rem 0 0;
    padding: .1875rem .625rem;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ryp-red-ink);
    background: var(--ryp-red-tint);
    border-radius: 999px;
}

.idol-vinyasa-section .ryp-lin__desc {
    margin: .5rem 0 0;
    font-size: .75rem;
    line-height: 1.55;
    color: var(--ryp-ink-soft);
}

.idol-vinyasa-section .special-note {
    margin-top: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
}

/* ---------------------------------------------------------------------------
   TABLET AND PHONE
   ---------------------------------------------------------------------------
   Everything that positions a node is unset here, not overridden: the canvas
   gives up its ratio, the list stops being an overlay, and --x / --y are
   simply never read. The thread goes with them — a curve drawn for a
   constellation means nothing over a two-column list.
   --------------------------------------------------------------------------- */
@media (max-width: 61.99rem) {
    .idol-vinyasa-section .ryp-lineage { aspect-ratio: auto; }

    /* The SVG thread is for the constellation and nothing else — its curves are
       drawn to coordinates that only exist up there. It is replaced below, not
       simply dropped: the owner asked for the line to be on a phone too. */
    .idol-vinyasa-section .ryp-lin__thread { display: none; }

    .idol-vinyasa-section .ryp-lin__nodes {
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem) clamp(1rem, .8rem + 1vw, 1.75rem);
    }
    .idol-vinyasa-section .ryp-lin__node {
        /* `relative`, not `static`, because the tick below is positioned
           against it — but then --x / --y, which place the node up in the
           constellation, start acting as OFFSETS from its grid cell instead
           of being ignored. Measured: the right-hand column slid 28% of the
           list's height down the page. Both are cleared here. */
        position: relative;
        left: auto;
        top: auto;
        width: auto;
    }
    .idol-vinyasa-section .ryp-lin__portrait { width: min(150px, 86%); }

    /* ---------------------------------------------------------------------
       THE THREAD, AS A SPINE
       ---------------------------------------------------------------------
       A grid cannot carry the constellation's curves, so on a phone the line
       of transmission runs as a dotted spine down the middle of the list with
       a tick reaching out to each master. Same dots, same red, same idea —
       one line, passing through all of them.

       The ticks sit at the portrait's own centre line. That is a fixed
       distance from the top of a node, not a percentage: the portrait is
       `width: min(150px, 86%)` with `aspect-ratio: 1`, so above ~175px of
       column width it is a flat 150px tall and its centre is 75px down. A
       percentage `top` would have resolved against the node's HEIGHT, which
       is the caption's to decide, not the portrait's.
       --------------------------------------------------------------------- */
    .idol-vinyasa-section .ryp-lin__nodes::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 46px;
        bottom: 46px;
        width: 0;
        border-left: 3px dotted rgba(222, 42, 29, .34);
        transform: translateX(-1.5px);
        pointer-events: none;
    }
    .idol-vinyasa-section .ryp-lin__node::before {
        content: "";
        position: absolute;
        top: 75px;
        height: 0;
        border-top: 3px dotted rgba(222, 42, 29, .34);
        pointer-events: none;
    }
    /* left of the spine, the tick runs right; right of it, left */
    .idol-vinyasa-section .ryp-lin__node:nth-child(odd)::before {
        left: 50%;
        right: calc(-1 * clamp(1rem, .8rem + 1vw, 1.75rem) / 2 - 1px);
    }
    .idol-vinyasa-section .ryp-lin__node:nth-child(even)::before {
        right: 50%;
        left: calc(-1 * clamp(1rem, .8rem + 1vw, 1.75rem) / 2 - 1px);
    }
}

@media (max-width: 47.99rem) {
    .idol-vinyasa-section .ryp-lin__nodes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .idol-vinyasa-section .ryp-lin__portrait { width: min(136px, 80%); }
    .idol-vinyasa-section .ryp-lin__desc { font-size: .8125rem; }

    /* the portrait caps at 136px here, so its centre line moves up with it */
    .idol-vinyasa-section .ryp-lin__node::before { top: 68px; }
    .idol-vinyasa-section .ryp-lin__nodes::before { top: 40px; bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .idol-vinyasa-section .ryp-lin__portrait { transition: none; }
}
