/* ============================================================
   ronde-home.css: the new ("Ronde") home page, index-ronde.html
   ------------------------------------------------------------
   Only that page loads this file; it does not use style.css.
   Rules: docs/rondeDesignRules.md and docs/halftoneInkElement.md.
   The landing animation (circle drop, breakout, name dots, cloud)
   is drawn on a canvas by js/rondeHome.js. Before it runs, the
   html.js class hides the parts it reveals.
   ============================================================ */

:root {
    --rh-bg: #fff;
    --rh-ink: #111214;
    --rh-dark: #111214;
    --rh-text-2: rgba(17, 18, 20, .62);
    --rh-muted: rgba(17, 18, 20, .42);
    --rh-line: rgba(17, 18, 20, .1);
    --rh-line-strong: rgba(17, 18, 20, .22);
    --rh-fill: rgba(17, 18, 20, .07);
    --rh-fill-hover: rgba(17, 18, 20, .04);
    --rh-green: #3DA73C;
    --rh-ultramarine: #3B2E9E;
    --rh-magenta: #D9479C;
    --rh-red-orange: #E0482B;
    --rh-panel-shadow: 0 4px 10px rgba(17, 18, 20, .025), 0 12px 28px rgba(17, 18, 20, .055);
    --rh-ease: cubic-bezier(.2, .8, .2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.rh {
    min-height: 100vh;
    background: var(--rh-bg);
    color: var(--rh-ink);
    font-family: 'Urbanist', system-ui, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

body.rh a {
    color: inherit;
    text-decoration: none;
}

body.rh button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--rh-ink);
    outline-offset: 3px;
}

.rh-page {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px 40px;
}

/* ── Shared bits ── */
.rh-lab {
    color: var(--rh-text-2);
    font-size: 14px;
}

.rh-sub {
    margin-top: 3px;
    color: var(--rh-text-2);
    font-size: 14px;
}

.rh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border: 1px solid var(--rh-line-strong);
    border-radius: 999px;
    font-size: 14px;
}

.rh-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--rh-green);
}

.rh-hub {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--rh-ink);
    color: var(--rh-bg);
    font-size: 14px;
}

body.rh .rh-hub { color: var(--rh-bg); }

.rh-hub--light {
    background: var(--rh-bg);
}

.rh-hub--sm {
    width: 28px;
    height: 28px;
}

body.rh .rh-hub--light { color: var(--rh-ink); }

.rh-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--rh-line-strong);
    border-radius: 999px;
    font-size: 13px;
    transition: background .2s;
}

.rh-link:hover { background: var(--rh-fill-hover); }

/* ── Hero ── */
.rh-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: center;
    margin-top: 32px;
}

.rh-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rh-name {
    margin-top: 12px;
    font-size: clamp(46px, 5.6vw, 68px);
    font-weight: 400;
    line-height: 1.04;
}

.rh-name span { display: block; }
.rh-name b { font-weight: 400; color: var(--rh-ultramarine); }

.rh-tagline {
    max-width: 560px;
    margin-top: 16px;
    color: var(--rh-text-2);
    font-size: 17px;
    line-height: 1.6;
}

.rh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.rh-chips span {
    padding: 6px 13px;
    border: 1px solid var(--rh-line);
    border-radius: 999px;
    color: var(--rh-text-2);
    font-size: 14px;
}

.rh-portrait {
    position: relative;
    height: 380px;
}

.rh-portrait img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

/* ── Bento tiles ── */
/* The upper tiles share two rows. The shortcut navigation spans the third. */
.rh-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 132px;
    grid-template-rows: 132px 132px auto;
    gap: 14px;
    margin-top: 48px;
}

.rh-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid var(--rh-line);
    border-radius: 24px;
    background: var(--rh-bg);
}

.rh-tile,
.rh-card {
    box-shadow: var(--rh-panel-shadow);
}

.rh-tile--dark {
    border-color: transparent;
    background: var(--rh-ink);
    color: var(--rh-bg);
}

.rh-tile--dark .rh-sub,
.rh-tile--dark .rh-lab { color: rgba(255, 255, 255, .64); }

/* Languages tile in reverse: black, with the text, guides and bars in light
   tones. Re-pointing the tokens here flips everything inside that uses them. */
.rh-tile--lang {
    --rh-ink: #fff;
    --rh-text-2: rgba(255, 255, 255, .64);
    --rh-muted: rgba(255, 255, 255, .45);
    --rh-line: rgba(255, 255, 255, .14);
    --rh-line-strong: rgba(255, 255, 255, .3);
    border-color: transparent;
    background: var(--rh-dark);
    color: var(--rh-ink);
}

.rh-tile__head {
    display: flex;
    min-height: 48px;
    flex-direction: column;
    justify-content: center;
    padding-left: 52px;
}

.rh-tile__corner {
    position: absolute;
    top: 16px;
    right: 18px;
}

.rh-val {
    margin-top: auto;
    font-size: 24px;
    line-height: 1.15;
}

.rh-tile--uni     { grid-column: 1 / 7; grid-row: 1; }
.rh-tile--lang    { grid-column: 7 / 13; grid-row: 1 / 3; }
.rh-tile--stat    { grid-column: 1 / 4; grid-row: 2; }
.rh-tile--clr     { grid-column: 4 / 7; grid-row: 2; }

/* ── Shortcuts ──
   Three pills of smoked glass over black, each lit from behind by soft
   blooms of its own colour: blue to teal on Resume, violet on Experience,
   rose to coral on Contact. A halftone motif in pale light sits behind a
   smoked go button (rondeHomeActions.js): one circle on Resume, a trefoil on
   Experience, a ring of six on Contact. On hover or keyboard focus the pill
   lifts, its light swells and drifts with the pointer, each motif moves its
   own way, and the go button turns white as a fresh arrow slides in. An open
   shortcut covers the landing dot with its own outlined icon. */
.rh-actions {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    margin-top: 96px;
    container-type: inline-size;
}

.rh-actions__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, .92cqi, 11px);
    list-style: none;
}

.rh-action {
    --symbol-size: clamp(36px, 5.65cqi, 61px);
    --arrow-size: clamp(30px, 4.65cqi, 51px);
    --start-inset: clamp(14px, 2.18cqi, 25px);
    --end-inset: clamp(13px, 1.9cqi, 22px);
    --text-inset: clamp(7px, 1.18cqi, 14px);
    --reveal-origin: calc(var(--start-inset) + var(--symbol-size) / 2) calc(50% - 2.5px);
    display: grid;
    grid-template-columns: var(--symbol-size) minmax(0, 1fr) var(--arrow-size);
    align-items: center;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 1;
    padding: 9px var(--end-inset) 14px var(--start-inset);
    border: 0;
    border-radius: 999px;
    color: #fff;
    background-color: #04060a;
    box-shadow: 0 2px 6px rgb(5 7 12 / .12), 0 14px 30px -10px rgb(5 7 12 / .5);
    transition: transform .4s var(--rh-ease), box-shadow .4s var(--rh-ease);
}

/* The light behind the glass: soft blooms of colour screened together, with
   a dark patch under the words so they read. On hover it swells a little and
   drifts with the pointer (--sx, set by rondeHomeActions.js). */
.rh-action::after {
    content: '';
    position: absolute;
    z-index: -2;
    inset: -30% -10%;
    background: var(--lights);
    background-blend-mode: normal, screen, screen, screen, screen, screen, screen;
    filter: blur(14px) saturate(1.12);
    opacity: .88;
    transform: translateX(calc(var(--sx, 0) * 4%));
    transition: transform 1.2s var(--rh-ease), opacity .5s var(--rh-ease);
    pointer-events: none;
}

/* The smoked glass over it: a hairline rim, a line of light along the top,
   and a soft gloss from the upper left. */
.rh-action::before {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    border: 1px solid rgb(255 255 255 / .2);
    border-radius: inherit;
    background: linear-gradient(160deg, rgb(255 255 255 / .16), rgb(255 255 255 / .04) 40%, rgb(255 255 255 / 0) 60%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .22);
    pointer-events: none;
}

/* Each pill's light, laid out so no two match: a dark patch under the words,
   then blooms of its colours (the main one is the circle that lands on it in
   the intro, TILE_INK in rondeHome.js). Its motif: --ink for the dots, a pale
   light, and --glass for the glow under them and the lifted shadow. */
.rh-tile--resume {
    --ink: #dff6ff;
    --glass: #5fc6e6;
    --lights:
        radial-gradient(ellipse 24% 46% at 22% 56%, rgb(4 6 10 / .9) 0 30%, transparent 74%),
        radial-gradient(ellipse 26% 44% at 46% 36%, #4b4f9e 0 24%, transparent 76%),
        radial-gradient(ellipse 30% 48% at 60% 56%, #2f62b0 0 24%, transparent 76%),
        radial-gradient(ellipse 28% 46% at 76% 64%, #1d8fa6 0 24%, transparent 76%),
        radial-gradient(ellipse 22% 40% at 88% 36%, #2aa898 0 24%, transparent 76%),
        radial-gradient(ellipse 30% 34% at 56% 92%, #3f5aa6 0 24%, transparent 76%),
        radial-gradient(ellipse 18% 30% at 8% 30%, #2a3e78 0 24%, transparent 76%);
    --start-inset: clamp(16px, 2.42cqi, 27px);
    --end-inset: clamp(14px, 2.04cqi, 24px);
    --text-inset: clamp(7px, 1.38cqi, 16px);
}
.rh-tile--exp {
    --ink: #ece6ff;
    --glass: #9a86f2;
    --lights:
        radial-gradient(ellipse 24% 46% at 24% 50%, rgb(4 6 10 / .9) 0 30%, transparent 74%),
        radial-gradient(ellipse 28% 46% at 48% 62%, #5a43a8 0 24%, transparent 76%),
        radial-gradient(ellipse 30% 48% at 64% 40%, #7650c2 0 24%, transparent 76%),
        radial-gradient(ellipse 26% 44% at 80% 60%, #5b6dd0 0 24%, transparent 76%),
        radial-gradient(ellipse 22% 38% at 90% 30%, #a05fb8 0 24%, transparent 76%),
        radial-gradient(ellipse 30% 34% at 62% 94%, #4a4aa8 0 24%, transparent 76%),
        radial-gradient(ellipse 18% 30% at 8% 70%, #3c2f78 0 24%, transparent 76%);
}
.rh-tile--contact {
    --ink: #ffe6f1;
    --glass: #f08ab4;
    --lights:
        radial-gradient(ellipse 24% 46% at 22% 54%, rgb(4 6 10 / .9) 0 30%, transparent 74%),
        radial-gradient(ellipse 26% 44% at 46% 40%, #8e3a86 0 24%, transparent 76%),
        radial-gradient(ellipse 30% 48% at 62% 60%, #b2446c 0 24%, transparent 76%),
        radial-gradient(ellipse 26% 44% at 78% 40%, #d0644f 0 24%, transparent 76%),
        radial-gradient(ellipse 22% 40% at 90% 66%, #c44f86 0 24%, transparent 76%),
        radial-gradient(ellipse 30% 34% at 58% 92%, #d98656 0 24%, transparent 76%),
        radial-gradient(ellipse 18% 30% at 8% 30%, #5a2a6e 0 24%, transparent 76%);
}

.rh-action:is(:hover, :has(.rh-action__link:focus-visible)) {
    transform: translateY(-3px);
    box-shadow:
        0 2px 6px rgb(5 7 12 / .12),
        0 22px 40px -14px color-mix(in srgb, var(--glass) 45%, rgb(5 7 12 / .45));
}
.rh-action:is(:hover, :has(.rh-action__link:focus-visible))::after {
    transform: translateX(calc(var(--sx, 0) * 4%)) scale(1.05);
    opacity: 1;
}

/* The halftone motif, drawn by rondeHomeActions.js: dots in the canvas's
   colour, their glow in its --glass. */
.rh-action__ink {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--ink);
    pointer-events: none;
}

.rh-action__symbol,
.rh-action__arrow {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
}
/* A smoked glass bubble like the pill's (hairline rim, a line of light along
   the top) holding a small thin icon. */
.rh-action__symbol {
    width: var(--symbol-size);
    border: 1px solid rgb(255 255 255 / .2);
    background: rgb(255 255 255 / .08);
    -webkit-backdrop-filter: blur(6px) saturate(1.6) brightness(1.04);
    backdrop-filter: blur(6px) saturate(1.6) brightness(1.04);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 0 0 0 transparent;
    transition: box-shadow .45s var(--rh-ease), border-color .45s var(--rh-ease);
}
.rh-action__symbol .icon { width: 42%; height: 42%; }

/* The go button: smoked glass that takes on the light behind it, with a
   white arrow. On hover it turns white with a dark arrow, as a second arrow
   slides in from the lower left and the first leaves to the upper right. */
.rh-action__arrow {
    position: relative;
    overflow: hidden;
    width: var(--arrow-size);
    color: #fff;
    background-color: rgb(255 255 255 / .12);
    -webkit-backdrop-filter: blur(6px) saturate(1.6) brightness(1.04);
    backdrop-filter: blur(6px) saturate(1.6) brightness(1.04);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2), inset 0 1px 0 rgb(255 255 255 / .3);
    transition: background-color .35s var(--rh-ease), color .35s var(--rh-ease), transform .45s var(--rh-ease);
}
.rh-action__arrow .icon,
.rh-action__arrow::after {
    grid-area: 1 / 1;
    width: 46%;
    height: 46%;
    transition: transform .45s var(--rh-ease);
}
.rh-action__arrow::after {
    content: '';
    background: currentColor;
    -webkit-mask: var(--icon-arrow-up-right-thin) center / contain no-repeat;
            mask: var(--icon-arrow-up-right-thin) center / contain no-repeat;
    transform: translate(-140%, 140%);
}
/* On hover the bubble brightens a little. */
.rh-action:is(:hover, :has(.rh-action__link:focus-visible)) .rh-action__symbol {
    border-color: rgb(255 255 255 / .3);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 0 0 40px rgb(255 255 255 / .06);
}
.rh-action:is(:hover, :has(.rh-action__link:focus-visible)) .rh-action__arrow {
    background-color: #fff;
    color: var(--rh-dark);
    transform: scale(1.06);
}
.rh-action:is(:hover, :has(.rh-action__link:focus-visible)) .rh-action__arrow .icon { transform: translate(140%, -140%); }
.rh-action:is(:hover, :has(.rh-action__link:focus-visible)) .rh-action__arrow::after { transform: none; }

.rh-action__words {
    min-width: 0;
    padding-inline-start: var(--text-inset);
    font-size: clamp(1.125rem, 2.2cqi, 1.5rem);
    letter-spacing: -.025em;
    line-height: 1.12;
}
.rh-action__link { font-weight: 400; }
/* Stretch the native link over the pill. */
.rh-action__link::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
}
.rh-action:has(.rh-action__link:focus-visible) {
    outline: 2px solid var(--rh-ink);
    outline-offset: 3px;
}
.rh-action:has(.rh-action__link:focus-visible) .rh-action__link { outline: none; }
@container (45.5rem < width <= 47.5rem) {
    .rh-action:not(.rh-tile--resume) {
        --symbol-size: 5.2cqi;
        --text-inset: .95cqi;
        --end-inset: 1.65cqi;
    }
}

@container (max-width: 45.5rem) {
    .rh-actions__list {
        grid-template-columns: minmax(0, 405px);
        justify-content: center;
        gap: 12px;
    }
    .rh-action {
        --symbol-size: clamp(44px, 15.8cqi, 61px);
        --arrow-size: clamp(36px, 13.4cqi, 51px);
        --start-inset: clamp(14px, 6.2cqi, 25px);
        --end-inset: clamp(13px, 5.4cqi, 22px);
        --text-inset: clamp(7px, 3.4cqi, 14px);
        min-height: 96px;
    }
    .rh-tile--resume {
        --start-inset: clamp(16px, 6.8cqi, 27px);
        --end-inset: clamp(14px, 5.8cqi, 24px);
        --text-inset: clamp(8px, 3.8cqi, 16px);
    }
    .rh-action__words { font-size: clamp(1.125rem, 5.8cqi, 1.5rem); }
}

/* A separate optical rim catches light in two short arcs, fading into
   transparent and shadowed edges elsewhere. This layer never covers content. */
.rh-glass-edge {
    position: absolute;
    z-index: 0;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from 225deg,
        rgba(255, 255, 255, .95),
        rgba(255, 255, 255, .7) 38deg,
        rgba(255, 255, 255, .08) 78deg,
        rgba(54, 73, 108, .15) 115deg,
        transparent 145deg,
        rgba(255, 255, 255, .82) 180deg,
        rgba(255, 255, 255, .12) 225deg,
        rgba(54, 73, 108, .12) 270deg,
        transparent 310deg,
        rgba(255, 255, 255, .95));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.rh-score {
    text-align: right;
}

.rh-score strong {
    font-size: 32px;
    font-weight: 400;
}

.rh-score small {
    color: var(--rh-muted);
    font-size: 15px;
}

.rh-chart {
    position: relative;
    height: 170px;
    margin-top: auto;
}

.rh-chart__guide {
    position: absolute;
    right: 0;
    left: 0;
    border-top: 1px dashed var(--rh-line-strong);
}

.rh-chart__guide--10 { bottom: 40px; height: 120px; }
.rh-chart__guide--5  { bottom: 100px; border-top-color: var(--rh-line); }

.rh-chart__tick {
    position: absolute;
    left: 0;
    color: var(--rh-muted);
    font-size: 12px;
}

.rh-chart__cols {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.rh-col {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--rh-text-2);
}

.rh-col b {
    font-weight: 400;
    color: var(--rh-muted);
}

.rh-col i {
    display: block;
    width: 20px;
    height: calc(var(--v) * 12px);
    border-radius: 10px;
    background: var(--rh-line-strong);
    transform-origin: bottom;
}

.rh-col--top b { color: var(--rh-ink); }
.rh-col--top i { background: var(--rh-ink); }

.rh-ring {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.rh-pulse {
    position: relative;
}

.rh-pulse::after {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--rh-green);
    content: '';
    animation: rh-pulse 2s ease-out infinite;
}

@keyframes rh-pulse {
    from { opacity: .6; transform: scale(.8); }
    to   { opacity: 0;  transform: scale(2.6); }
}

/* ── Selected work ── */
.rh-work {
    margin-top: 120px;
}

.rh-work__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.rh-work__title {
    font-size: 20px;
    font-weight: 500;
}

.rh-work__title small {
    margin-left: 10px;
    color: var(--rh-text-2);
    font-size: 14px;
    font-weight: 400;
}

.rh-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 16px;
    border: 1px solid var(--rh-line-strong);
    border-radius: 999px;
    font-size: 14px;
    transition: background .2s;
}

.rh-all:hover { background: var(--rh-fill-hover); }

.rh-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Each project cover sits under a frosted veil. On hover the frost lifts
   and the text and arrow turn white over the photo. */
.rh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 18px;
    border: 0;
    border-radius: 24px;
    isolation: isolate;
    background: var(--rh-dark);
    transition: transform .2s;
}

.rh-card:hover { transform: translateY(-2px); }

.rh-card__img {
    position: absolute;
    z-index: -3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) saturate(150%);
    transform: scale(1.15);
    transition: filter .5s var(--rh-ease), transform .6s var(--rh-ease);
    pointer-events: none;
}

/* A pale veil softens the colours of the blurred photo. */
.rh-card::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: rgba(255, 255, 255, .6);
    box-shadow: inset 0 -110px 80px -40px rgba(17, 18, 20, 0);
    transition: background .5s var(--rh-ease), box-shadow .5s var(--rh-ease);
    content: '';
    pointer-events: none;
}

/* Highlights along the glass rim. */
.rh-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 28% -45%, rgba(255, 255, 255, .72), transparent 68%),
        linear-gradient(155deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .12) 38%, transparent 58%, rgba(255, 255, 255, .14));
    box-shadow:
        inset 1px 3px 7px rgba(255, 255, 255, .38),
        inset -1px -3px 6px rgba(56, 73, 106, .09);
    transition: opacity .5s var(--rh-ease);
    content: '';
    pointer-events: none;
}

.rh-card .rh-glass-edge { transition: opacity .5s var(--rh-ease); }

.rh-card .rh-lab,
.rh-card__title,
.rh-card__foot { transition: color .35s; }

.rh-card .rh-hub { transition: background .35s, color .35s; }

.rh-card:is(:hover, :focus-visible) {
    --rh-ink: #fff;
    --rh-bg: #111214;
    --rh-text-2: rgba(255, 255, 255, .78);
    color: var(--rh-ink);
}

.rh-card:is(:hover, :focus-visible) .rh-card__img {
    filter: none;
    transform: scale(1.02);
}

/* A soft shade from the bottom keeps the white text readable on the photo. */
.rh-card:is(:hover, :focus-visible)::before {
    background: transparent;
    box-shadow: inset 0 -110px 80px -40px rgba(17, 18, 20, .6);
}

.rh-card:is(:hover, :focus-visible)::after,
.rh-card:is(:hover, :focus-visible) .rh-glass-edge { opacity: 0; }

.rh-card:is(:hover, :focus-visible) :is(.rh-lab, .rh-card__title, .rh-card__foot) {
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.rh-card__title {
    font-size: 17px;
    font-weight: 500;
}

.rh-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--rh-text-2);
    font-size: 14px;
}

/* A project's halftone ink motif, built by rondeHome.js. */
.rh-motif {
    position: relative;
    height: 104px;
}

.rh-motif span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ink) 42%, transparent 47%) 0 0 / 5px 5px;
}

.rh-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* Margin decorations outside the page column, drawn by rondeDecor.js:
   halftone ring of six on the left edge, dotted cloud bottom right. */
.rh-deco {
    position: absolute;
    display: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease .5s;
}

/* Shown once the tiles open at the end of the landing animation. */
body:has(.rh-tile.is-open) .rh-deco { opacity: 1; }

/* ── Landing animation states (only with JS) ──
   .rh-fx fades in; tiles open from their icon circle (.is-open);
   motifs appear under the landed circles (.is-shown); the name and photo fade in (.is-in). */
.js .rh-fx {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .6s, transform .6s var(--rh-ease);
}

.js .rh-fx.is-in {
    opacity: 1;
    transform: none;
}

.js .rh-name {
    opacity: 0;
    transition: opacity .35s;
}

.js .rh-name.is-in { opacity: 1; }

/* The header builds from canvas dots in place, like the name, so it only fades. */
.js .rh-head.rh-fx {
    transform: none;
    transition: opacity .35s;
}

.js .rh-portrait img {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
    transition: opacity .7s, transform .9s var(--rh-ease);
}

.js .rh-portrait img.is-in {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.js .rh-tile {
    clip-path: circle(0 at var(--reveal-origin, 42px 42px));
    transition: clip-path .75s var(--rh-ease) calc(var(--i) * 80ms);
}

.js .rh-tile.is-open { clip-path: circle(160% at var(--reveal-origin, 42px 42px)); }

/* The shortcuts keep their hover lift beside the reveal. */
@media (prefers-reduced-motion: no-preference) {
    .js .rh-tile.rh-action {
        transition: clip-path .75s var(--rh-ease) calc(var(--i) * 80ms), transform .4s var(--rh-ease), box-shadow .4s var(--rh-ease);
    }
}

.js .rh-rise {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s, transform .5s var(--rh-ease);
}

.js .is-open .rh-rise {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * 80ms + 420ms);
}

.js .rh-col i {
    transform: scaleY(0);
    transition: transform .8s var(--rh-ease);
}

.js .is-open .rh-col i {
    transform: scaleY(1);
    transition-delay: calc(var(--i) * 80ms + 500ms + var(--c) * 70ms);
}

.js .rh-ring {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.1s var(--rh-ease);
}

.js .is-open .rh-ring {
    stroke-dashoffset: 0;
    transition-delay: calc(var(--i) * 80ms + 500ms);
}

.js .rh-pulse::after { animation-play-state: paused; opacity: 0; }
.js .is-open .rh-pulse::after { animation-play-state: running; }

/* No transition: the canvas circles land on these exact dots and hand over. */
.js .rh-motif { opacity: 0; }

.js .rh-motif.is-shown { opacity: 1; }

/* ── Small screens ── */
@media (max-width: 760px) {
    .rh-page { padding: 0 16px 32px; }

    .rh-hero { grid-template-columns: minmax(0, 1fr); }
    .rh-portrait { height: 300px; }
    .rh-portrait img { width: 120px; height: 120px; }

    .rh-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: minmax(132px, auto);
    }
    .rh-tile--lang { height: 278px; }
    .rh-tile--uni,
    .rh-tile--lang { grid-column: 1 / 3; grid-row: auto; }
    .rh-tile--lang { grid-row: span 2; }
    .rh-tile--stat { grid-column: 1; grid-row: auto; }
    .rh-tile--clr  { grid-column: 2; grid-row: auto; }

    .rh-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .rh-pulse::after { animation: none; }

    .js .rh-fx,
    .js .rh-name,
    .js .rh-portrait img,
    .js .rh-tile,
    .js .rh-rise,
    .js .rh-col i,
    .js .rh-ring,
    .js .rh-motif,
    .rh-card__img,
    .rh-card::before,
    .rh-card::after,
    .rh-card .rh-glass-edge,
    .rh-deco,
    .rh-action__arrow .icon,
    .rh-action__arrow::after { transition: none; }

    /* The shortcuts change colour on hover but don't move, and their
       light stays put. */
    .rh-action:is(:hover, :has(.rh-action__link:focus-visible)),
    .rh-action:is(:hover, :has(.rh-action__link:focus-visible)) .rh-action__arrow,
    .rh-action:is(:hover, :has(.rh-action__link:focus-visible))::after,
    .rh-action::after { transform: none; }
}

/* Returning to Home from another page skips the intro (rondeHome.js): the
   finished state appears at once, without its reveal transitions. */
.rh-instant *,
.rh-instant *::before,
.rh-instant *::after { transition: none !important; }
