@charset "UTF-8";
/* ===========================================================================
   SECTION 1 — hero slider
   ---------------------------------------------------------------------------
   Replaces the single static banner with a slider in the arrangement of the
   first reference the owner sent: a text column on one side, a large image on
   the other, round arrows at the edges, and a torn-paper edge where the
   section meets the white page below.

   WHAT IS KEPT FROM THE REFERENCE: the layout, the round edge arrows, the
   white pill button and the torn paper.
   WHAT IS NOT: its purple cosmic palette. This site's colours are the brand
   green and gold, and those do not change.

   WORDS: every line in the slider already appears on this homepage. Slide 1
   is the existing hero copy; slides 2-4 are the 200/300/500 hour course
   cards' own eyebrow, title, intro and button label, quoted exactly. Nothing
   here was written new.

   This file loads AFTER the live stylesheets, so it wins on equal specificity
   without a single !important. It deliberately leaves the site header alone.
   =========================================================================== */

.ryp-hero {
    --hero-ink: #ffffff;
    --hero-ink-soft: rgba(255, 255, 255, .82);
    --hero-gold: #e4cfa4;
    --hero-deep: #12302c;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* Room for the torn edge, so the paper never sits on top of the content. */
    padding-block: clamp(2.5rem, 1.6rem + 3.6vw, 5rem) clamp(5rem, 3rem + 8vw, 8.5rem);
    background:
        radial-gradient(120% 90% at 78% 38%, rgba(46, 131, 120, .55) 0%, rgba(18, 48, 44, 0) 62%),
        linear-gradient(160deg, #0d2622 0%, #12302c 42%, #1f5b54 100%);
    color: var(--hero-ink);
}

/* A faint mandala wash so the panel is not flat colour. Decorative only. */
.ryp-hero::before {
    content: "";
    position: absolute; inset: -20% -10% auto -10%;
    height: 140%;
    z-index: -1;
    background:
        radial-gradient(closest-side, rgba(228, 207, 164, .12), transparent 70%) 18% 20% / 46rem 46rem no-repeat,
        radial-gradient(closest-side, rgba(228, 207, 164, .08), transparent 70%) 88% 78% / 34rem 34rem no-repeat;
    pointer-events: none;
}

/* -- viewport & track ---------------------------------------------------- */
.ryp-hero__viewport { position: relative; }

.ryp-hero__track {
    display: grid;
    /* Every slide stacks in the same cell, so the hero's height is the tallest
       slide and never changes as it advances — no layout shift mid-rotation. */
    grid-template-areas: "slide";
    align-items: center;
}

.ryp-slide {
    grid-area: slide;
    display: grid;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 10px, 0);
    transition: opacity 520ms cubic-bezier(.22, 1, .36, 1),
                transform 520ms cubic-bezier(.22, 1, .36, 1),
                visibility 0s linear 520ms;
    /* Hidden slides must be out of the tab order and out of the a11y tree. */
    pointer-events: none;
}
.ryp-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
    pointer-events: auto;
}

/* -- text ----------------------------------------------------------------
   THE RULE THIS BLOCK NOW OBEYS: the words are visible by DEFAULT, and the
   animation only adds the entrance.

   It used to be the other way round — the base style set opacity:0 and the
   content only appeared if the animation finished. On a phone that failed:
   the slide rendered as an empty green panel with no headline, no paragraph
   and no button. Anything above the fold that can only be seen once an
   animation completes is one skipped animation away from being invisible.

   `backwards` fill is what makes this safe: the opening frame applies during
   the delay, and once the animation is over the element falls back to its
   normal style — which is visible. No animation, no problem. */
.ryp-slide.is-active .ryp-slide__text > * {
    animation: ryp-hero-rise 620ms cubic-bezier(.22, 1, .36, 1) backwards;
}
/* The stagger is driven off position, not class, so a slide with the extra
   script line and one without both cascade correctly. */
.ryp-slide.is-active .ryp-slide__text > *:nth-child(1) { animation-delay:  90ms; }
.ryp-slide.is-active .ryp-slide__text > *:nth-child(2) { animation-delay: 170ms; }
.ryp-slide.is-active .ryp-slide__text > *:nth-child(3) { animation-delay: 250ms; }
.ryp-slide.is-active .ryp-slide__text > *:nth-child(4) { animation-delay: 330ms; }
.ryp-slide.is-active .ryp-slide__text > *:nth-child(5) { animation-delay: 400ms; }
@keyframes ryp-hero-rise {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: none; }
}

.ryp-slide__eyebrow {
    margin: 0 0 .75rem;
    font-family: "Figtree", system-ui, sans-serif;
    /* 13px floor — the live hero sets its labels at 9px, which is unreadable. */
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--hero-gold);
}

.ryp-slide__title {
    margin: 0 0 .75rem;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(2.125rem, 1.4rem + 3.3vw, 4rem);
    line-height: 1.06;
    letter-spacing: -.01em;
    color: var(--hero-ink);
    text-wrap: balance;
}
.ryp-slide__title em { font-style: normal; color: var(--hero-gold); }

.ryp-slide__script {
    margin: -.25rem 0 1rem;
    /* the script face is off site-wide — owner, 15 Nov 2026; see site.css */
    font-family: "Belleza", Georgia, serif;
    font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem);
    line-height: 1.3;
    color: var(--hero-gold);
}

.ryp-slide__desc {
    margin: 0 0 1.75rem;
    max-width: 46ch;
    font-family: "Figtree", system-ui, sans-serif;
    font-size: clamp(1rem, .96rem + .22vw, 1.125rem);
    line-height: 1.6;
    color: var(--hero-ink-soft);
}

.ryp-slide__cta {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px;
    padding: 0 2rem;
    border: 1px solid #fff;
    border-radius: 999px;
    color: var(--hero-deep);
    font-family: "Figtree", system-ui, sans-serif;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;

    /* HOVER: the gold sweeps in from the left across the white.
       Done with a two-stop gradient twice the button's width, moved with
       background-position — one animated property, no extra element, and
       nothing that could sit on top of the label or steal the click. */
    background-image: linear-gradient(to right, var(--hero-gold) 0 50%, #fff 50% 100%);
    background-size: 200% 100%;
    background-position: 100% 0;          /* white half showing */
    background-repeat: no-repeat;

    /* The lift uses `translate`/`scale`, NOT `transform`.
       This button is one of the .ryp-slide__text children, and their entrance
       keyframes animate `transform` with fill-mode `both` — which keeps
       applying `transform: none` after the animation ends, and a running
       animation beats a hover declaration. A hover written as `transform`
       therefore never appears. `translate` and `scale` are independent
       properties the keyframes do not touch, so they come through. */
    transition: background-position 420ms cubic-bezier(.22, 1, .36, 1),
                border-color 240ms cubic-bezier(.22, 1, .36, 1),
                box-shadow 240ms cubic-bezier(.22, 1, .36, 1),
                translate 220ms cubic-bezier(.34, 1.4, .44, 1),
                scale 160ms cubic-bezier(.34, 1.4, .44, 1);
}
.ryp-slide__cta:hover,
.ryp-slide__cta:focus-visible {
    background-position: 0 0;             /* gold half sweeps across */
    border-color: var(--hero-gold);
    translate: 0 -3px;
    box-shadow: 0 10px 24px rgba(136, 103, 18, .32);
    /* The label stays dark green on both white and gold, so contrast holds
       right through the sweep rather than only at the two ends. */
    color: var(--hero-deep);
}
.ryp-slide__cta:active { translate: 0 0; scale: .97; }

/* -- media --------------------------------------------------------------- */
.ryp-slide__media {
    position: relative;
    margin: 0;
}
.ryp-slide__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    /* Three layers rather than one: a tight dark edge to separate the picture
       from the panel, a wide soft drop to give it weight, and a warm gold cast
       underneath so the shadow belongs to this palette instead of reading as
       grey. */
    box-shadow:
        0 2px 6px rgba(6, 22, 19, .34),
        0 26px 60px rgba(6, 22, 19, .46),
        0 10px 36px rgba(136, 103, 18, .18);
}
/* -- the shapes that keep moving behind the photograph ------------------
   Two soft organic blobs, drawn with pseudo-elements so no markup is needed.

   HOW THE MOTION IS DONE, AND WHY
   Each blob has a lopsided border-radius, and the animation only ROTATES it.
   A rotating asymmetric shape reads as a slow morph, while animating the
   border-radius itself would repaint the shape on every frame. Rotation is a
   transform: it runs on the compositor and never touches layout, so the blobs
   can turn forever without costing a frame or nudging anything on the page.

   The two turn at different speeds and in opposite directions, so they drift
   past one another and the pattern never visibly repeats.
   They are decoration: pointer-events are off and they sit behind the image. */
.ryp-slide__media::before,
.ryp-slide__media::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

/* The larger, gold one. Both are tuned to be SEEN against the dark green
   panel: a blob at the same value as its background is just a dark smudge,
   so each sits well above the panel in lightness. */
.ryp-slide__media::before {
    inset: -20% -15% -15% -20%;
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    background: radial-gradient(closest-side,
        rgba(228, 207, 164, .42), rgba(228, 207, 164, .14) 62%, transparent 78%);
    animation: ryp-blob-a 26s linear infinite;
}

/* The smaller one, a lighter teal than the panel, turning the other way. */
.ryp-slide__media::after {
    inset: -10% -22% -22% -8%;
    border-radius: 58% 42% 38% 62% / 52% 61% 39% 48%;
    background: radial-gradient(closest-side,
        rgba(104, 196, 180, .40), rgba(104, 196, 180, .12) 62%, transparent 78%);
    animation: ryp-blob-b 34s linear infinite reverse;
}

@keyframes ryp-blob-a {
    from { transform: rotate(0deg)   scale(1)    translate(0, 0); }
    50%  { transform: rotate(180deg) scale(1.12) translate(2%, -2%); }
    to   { transform: rotate(360deg) scale(1)    translate(0, 0); }
}
@keyframes ryp-blob-b {
    from { transform: rotate(0deg)   scale(1.08) translate(0, 0); }
    50%  { transform: rotate(180deg) scale(.92)  translate(-2%, 2%); }
    to   { transform: rotate(360deg) scale(1.08) translate(0, 0); }
}

/* The photograph arrives after the words, drifting in from the right and
   settling — transform and opacity only, so it can never shift the layout.
   It starts hidden, and `both` holds that first frame, so there is no flash
   of the finished position before the animation runs. */
.ryp-slide.is-active .ryp-slide__media {
    /* `backwards`, not `both`, and no opacity:0 in the base rule — see the
       note on the text above. The picture must be there whether or not the
       animation ever runs. */
    animation: ryp-media-in 820ms cubic-bezier(.22, 1, .36, 1) backwards;
    animation-delay: 220ms;
}
@keyframes ryp-media-in {
    from { opacity: 0; transform: translate3d(34px, 16px, 0) scale(.94); }
    to   { opacity: 1; transform: none; }
}

/* -- arrows -------------------------------------------------------------- */
.ryp-hero__nav {
    position: absolute; top: 50%;
    z-index: 3;
    display: grid; place-items: center;
    /* 48px: comfortably over the 44px touch minimum. */
    width: 48px; height: 48px;
    padding: 0;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    transition: background 240ms cubic-bezier(.22, 1, .36, 1),
                border-color 240ms cubic-bezier(.22, 1, .36, 1);
}
.ryp-hero__nav:hover { background: rgba(255, 255, 255, .28); border-color: #fff; }
.ryp-hero__nav svg { width: 20px; height: 20px; }
.ryp-hero__nav--prev { left: clamp(.5rem, .1rem + 1.4vw, 1.75rem); }
.ryp-hero__nav--next { right: clamp(.5rem, .1rem + 1.4vw, 1.75rem); }

/* -- dots ---------------------------------------------------------------- */
.ryp-hero__dots {
    display: flex; justify-content: center; gap: .5rem;
    margin-top: 1.75rem;
}
.ryp-hero__dot {
    width: 32px; height: 32px;          /* the tap area */
    padding: 0;
    display: grid; place-items: center;
    background: none; border: 0; cursor: pointer;
}
.ryp-hero__dot::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .38);
    transition: background 240ms ease, width 240ms ease;
}
.ryp-hero__dot[aria-selected="true"]::before { width: 26px; background: var(--hero-gold); }

/* -- trust bar ----------------------------------------------------------
   The four figures, unchanged in wording.

   WHAT WAS WRONG BEFORE: each cell sized itself to its own label, and
   "Students Trained" is one line while "Countries Represented" is two. The
   cells came out different heights and the numbers, which should read as a
   single row, sat at four different distances from the bottom.

   THE FIX: the item is a two-row grid whose label row reserves two lines
   whatever it holds. Every number now sits on one baseline and every cell is
   the same height, at any width and in any language length.
   --------------------------------------------------------------------------- */
.ryp-hero__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;                               /* the hairlines, via the background */
    /* margin-inline:auto is what centres the row once max-width kicks in on
       wide screens; without it the capped box just sits against the left edge. */
    margin: 2.25rem auto 0;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    overflow: hidden;
}

.ryp-hero__trust-item {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    justify-items: center;
    gap: .5rem;
    padding: 1.25rem .75rem 1.375rem;
    text-align: center;
    background: rgba(18, 48, 44, .42);
}

.ryp-hero__trust-num {
    /* The <dd> follows its <dt> in the markup, which is the valid order and the
       right reading order; `order` lifts the figure above the label visually
       without changing either. */
    order: -1;
    /* <dd> carries a browser default margin; it would push the number off the
       shared baseline by 40px. */
    margin: 0;
    font-family: "Belleza", Georgia, serif;
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
    line-height: 1;
    color: #fff;
    /* Tabular figures: without them the row visibly twitches while counting,
       because proportional digits are different widths. */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    white-space: nowrap;
}
.ryp-hero__trust-num sup {
    font-size: .5em;
    top: -.65em;
    margin-left: .04em;
    color: var(--hero-gold);
}
.ryp-hero__trust-star { color: var(--hero-gold); margin-left: .12em; }

.ryp-hero__trust-label {
    margin: 0;
    /* Two lines of space are RESERVED whether the label needs them or not.
       That is what keeps the four numbers on one baseline and the four cells
       the same height when "Students Trained" fits on one line and "Countries
       Represented" does not. The text is centred inside that reserved box, so
       a one-line label reads as deliberate rather than as a label that has
       slipped upwards. No width cap: a label that fits on one line should be
       allowed to stay on one line. */
    display: grid;
    place-content: center;
    min-height: calc(2 * 1.3em);
    font-family: "Figtree", system-ui, sans-serif;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .09em;
    text-transform: uppercase;
    /* Splits "Countries Represented" evenly instead of leaving one word alone. */
    text-wrap: balance;
    /* 88% white on this panel clears 4.5:1; the live hero uses 70% at 9px. */
    color: rgba(255, 255, 255, .88);
}

/* Counting is decoration. If it cannot finish for any reason the markup still
   holds the real figure, so nothing here hides the number while it runs. */
.ryp-hero__trust-num[data-counting] { color: #fff; }

/* -- torn paper edge -----------------------------------------------------
   IN NORMAL FLOW, not absolutely positioned.

   It used to be `position: absolute; bottom: -1px`, and that left a band of
   the hero's own colour BELOW the rip — the tear floated 181px above the
   section's bottom edge even though its resolved `top` said otherwise. Rather
   than keep fighting the positioning, the element is simply the last thing in
   the section: the pink ends where the rip starts, the white below it is the
   page. Nothing to resolve, nothing to drift.

   The SVG is transparent above the ragged line and white below it, so the two
   sides fall either side of the tear on their own.
   ------------------------------------------------------------------------- */
.ryp-hero__tear {
    position: relative;
    z-index: 2;
    margin-top: clamp(2rem, 1rem + 3vw, 4rem);
    margin-bottom: -1px;                   /* hides a sub-pixel seam */
    line-height: 0;
    color: #fff;                           /* the page colour the tear reveals */
    pointer-events: none;
}

/* The section's bottom padding existed to leave room for an overlaid tear.
   In flow the tear brings its own spacing, so that padding would just add a
   slab of pink under the rip. */
.ryp-hero { padding-bottom: 0; }
.ryp-hero__tear svg {
    display: block;
    width: 100%;
    height: clamp(34px, 4.5vw, 72px);
}

/* The ornamental rule under the hero title. It is decoration, so it carries
   no alt text and is hidden from assistive technology in the markup. */
.ryp-hero__divider {
    width: clamp(180px, 22vw, 280px);
    height: auto;
    margin: 0 0 var(--s-4, 1rem);
    opacity: .9;
}

/* ---------------------------------------------------------------------------
   RESPONSIVE
   Mobile first: one column, the photograph behind the words under a scrim,
   which is the only way a hero stays photographic at 390px. From 62rem the
   slide becomes the two-column arrangement of the reference.
   --------------------------------------------------------------------------- */
.ryp-slide { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 61.99rem) {
    .ryp-slide { position: relative; min-height: 26rem; }
    .ryp-slide__media {
        position: absolute; inset: -1rem -1.5rem;
        z-index: -2;
    }
    .ryp-slide__media img { height: 100%; border-radius: 0; box-shadow: none; }
    /* No room for blobs behind a picture that already fills the slide. */
    .ryp-slide__media::before { display: none; }
    /* It fills the slide here, so sliding it in would uncover the panel at the
       edges. Fade only. */
    .ryp-slide.is-active .ryp-slide__media { animation-name: ryp-media-fade; animation-delay: 0ms; }
    @keyframes ryp-media-fade { from { opacity: 0; } to { opacity: 1; } }
    /* Here ::after is the SCRIM, not a blob. The desktop rule above also gave
       it the blob rotation, and nothing reset it — so the scrim was slowly
       spinning and scaling over the photograph, washing the whole slide into
       a flat dark panel. It must be a plain, still overlay at this width. */
    .ryp-slide__media::after {
        inset: 0;
        z-index: 1;
        border-radius: 0;
        animation: none;
        /* Heavier at the top than it looks like it needs to be: that is where
           the eyebrow and the headline sit, and on this photograph that band
           is the brightest part of the mural. */
        background: linear-gradient(to bottom,
            rgba(13, 38, 34, .74) 0%,
            rgba(13, 38, 34, .70) 42%,
            rgba(13, 38, 34, .90) 100%);
    }
    .ryp-slide__text { position: relative; z-index: 1; padding-block: 1rem; }
    /* The arrows would sit on top of the words at this width. */
    .ryp-hero__nav { display: none; }
}

@media (min-width: 62rem) {
    .ryp-slide {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 30rem;
    }
    .ryp-slide__media { height: 30rem; }
    /* Wide enough that the longer labels are not forced to wrap at a silly
       place, narrow enough that the row still reads as one object. */
    .ryp-hero__trust { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 52rem; }
    /* Clears the arrows: they sit at most 1.75rem in, and need their own 48px
       plus breathing room before the text column starts. */
    .ryp-hero__viewport { padding-inline: 5rem; }
}

/* ---------------------------------------------------------------------------
   REDUCED MOTION
   No autoplay (handled in JS), no entrance animation, no crossfade — the
   slider still works, it just changes instantly.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ryp-slide,
    .ryp-slide.is-active .ryp-slide__text > *,
    .ryp-slide.is-active .ryp-slide__media {
        transition: none;
        animation: none;
    }
    /* Nothing to un-hide now: both are visible without their animations. */
    .ryp-slide__text > * { opacity: 1; transform: none; }
    .ryp-slide__media { opacity: 1; transform: none; }
    /* The blobs stay, they just stop turning. */
    .ryp-slide__media::before,
    .ryp-slide__media::after { animation: none; }
    .ryp-slide__cta { transition: border-color 240ms ease, box-shadow 240ms ease; }
    .ryp-slide__cta:hover, .ryp-slide__cta:focus-visible { translate: none; }
}
