/* Shared expressive design and progressive motion across Rhi's portfolio. */
@view-transition{navigation:auto}
:root{--rhi-ink:#19191b;--rhi-pink:#f6a1cf;--rhi-lime:#daf04a;--rhi-blue:#6ba8f3;--rhi-orange:#ff9e64}
body{overflow-wrap:break-word}
.topbar .brand{font-size:28px;letter-spacing:-.055em;transition:transform .3s cubic-bezier(.2,.8,.3,1.3)}
.nav a:not(.contact){position:relative;padding:9px 3px;text-decoration:none}
.nav a:not(.contact)::after{content:'';position:absolute;left:0;right:0;bottom:4px;height:4px;background:var(--rhi-pink);transform:scaleX(0);transform-origin:left;transition:transform .25s ease;border-radius:3px}
.nav a:hover::after,.nav a[aria-current='page']::after{transform:scaleX(1)}
.nav a[aria-current='page']{text-decoration:none}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #2159bc;outline-offset:5px}
.contact,.pill,.feature-link,.next a,.closing a,.prototype-links a{transition:transform .25s cubic-bezier(.2,.8,.3,1.3),box-shadow .25s,background .25s}
body:not(.home-polished) .hero{position:relative;padding:38px 0 48px;background:var(--accent,var(--rhi-pink))}
body:not(.home-polished) .hero h1{font-size:clamp(3rem,7.2vw,7rem);line-height:1.06;letter-spacing:-.055em;margin:18px 0 24px}
body:not(.home-polished) .hero .eyebrow{display:table;max-width:100%;margin:32px 0 20px;border:2px solid var(--rhi-ink);background:#faf8f3;border-radius:5px;padding:7px 12px;transform:rotate(-1.5deg);line-height:1.6;font-size:13px}
body:not(.home-polished) .back{display:inline-block;text-underline-offset:5px;transition:transform .25s}
body:not(.home-polished) .subtitle{max-width:900px;line-height:1.4}
body:not(.home-polished) .scope{box-shadow:3px 3px var(--rhi-ink);transform:rotate(-1deg)}
body:not(.home-polished) .story article{padding-top:36px;padding-bottom:44px}
body:not(.home-polished) .story .step{justify-self:start;align-self:start;background:var(--accent,var(--rhi-lime));border:2px solid var(--rhi-ink);padding:7px 12px;border-radius:4px;transform:rotate(-2deg);line-height:1.5}
body:not(.home-polished) .gallery figure,body:not(.home-polished) .evidence figure,body:not(.home-polished) .decision figure{border-radius:7px;overflow:hidden}
body:not(.home-polished):not([data-rhi-page='art-gallery']) .gallery figcaption{background:#faf8f3;line-height:1.5}
body:not(.home-polished):not([data-rhi-page='art-gallery']) .gallery figure:nth-child(even) figcaption{background:var(--accent,var(--rhi-pink))}
.image-trigger img,.art img{transition:transform .55s cubic-bezier(.2,.65,.3,1),filter .3s}
.image-trigger::after{border-radius:30px;background:var(--rhi-lime);padding:8px 13px;transition:transform .25s,background .25s}
body:not(.home-polished) .next a,body:not(.home-polished) .closing a{box-shadow:4px 4px var(--rhi-pink);border-color:var(--rhi-ink);white-space:normal;text-align:center}
body:not(.home-polished) .next p,body:not(.home-polished) .closing p{max-width:850px}
body[data-rhi-page='somewhere-nowhere']{--accent:#daf04a}
body[data-rhi-page='scents-of-art']{--accent:#6ba8f3}
body[data-rhi-page='ourbit']{--accent:#ff9e64}
body[data-rhi-page='proprhome']{--accent:#daf04a}
body[data-rhi-page='totm']{--accent:#f6a1cf}
body[data-rhi-page='onara']{--accent:#ff9e64}
body[data-rhi-page='onu']{--accent:#6ba8f3}
body[data-rhi-page='bedroom-athletics']{--accent:#f6a1cf}
body[data-rhi-page='invisible']{--accent:#6ba8f3}
body[data-rhi-page='about'] .about-hero{background:linear-gradient(90deg,transparent 68%,#f6a1cf 68%);padding-top:62px}
body[data-rhi-page='about'] .label{display:table;background:var(--rhi-pink);border:2px solid var(--rhi-ink);padding:7px 12px;border-radius:30px;transform:rotate(-3deg)}
body[data-rhi-page='about'] .item{border-radius:6px;box-shadow:4px 4px var(--rhi-ink)}
body[data-rhi-page='about'] .callout{border-radius:6px}
body[data-rhi-page='art-gallery'] .intro h1 span{color:#be306d}
body[data-rhi-page='art-gallery'] .kicker{display:table;border:2px solid var(--rhi-ink);background:var(--rhi-lime);padding:7px 12px;transform:rotate(-2deg);border-radius:4px}
body[data-rhi-page='art-gallery'] .art a{border:2px solid var(--rhi-pink);border-radius:6px}
body[data-rhi-page='art-gallery'] .caption strong{color:var(--rhi-lime)}
.rhi-reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.65,.3,1)}
.rhi-reveal.rhi-visible{opacity:1;transform:none}
.lightbox[open] .lightbox-frame{animation:rhi-image-in .25s ease both}
.lightbox-close{transition:transform .2s,background .2s}
@keyframes rhi-image-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@keyframes rhi-page-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes rhi-page-out{to{opacity:0;transform:translateY(-6px)}}
::view-transition-old(root){animation:rhi-page-out .16s ease both}
::view-transition-new(root){animation:rhi-page-in .25s ease both}
@media(hover:hover) and (pointer:fine){
.topbar .brand:hover{transform:rotate(-5deg)}
.contact:hover,.pill:hover,.feature-link:hover,.next a:hover,.closing a:hover,.prototype-links a:hover{transform:translate(2px,2px);box-shadow:2px 2px var(--rhi-ink)}
body:not(.home-polished) .image-trigger:hover img{transform:scale(1.018);filter:none}
.image-trigger:hover::after{transform:translateY(-3px);background:var(--rhi-pink)}
.back:hover{transform:translateX(-3px)}
.lightbox-close:hover{background:var(--rhi-pink);transform:rotate(-3deg)}
}
@media(max-width:760px){
body:not(.home-polished) .hero{padding:28px 0 38px}
body:not(.home-polished) .hero h1{font-size:clamp(2.7rem,10.3vw,4.5rem)}
body:not(.home-polished) .hero .eyebrow{margin-top:26px;transform:none}
body:not(.home-polished) .story article{padding:26px 0 34px}
body:not(.home-polished) .story .step{margin-bottom:10px;transform:none}
body[data-rhi-page='about'] .about-hero{background:transparent;padding-top:42px}
body:not(.home-polished) .next .wrap,body:not(.home-polished) .closing .wrap{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto!important}
*,*::before,*::after{animation:none!important;transition:none!important}
.rhi-reveal{opacity:1;transform:none}
::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
@media print{.rhi-reveal{opacity:1;transform:none}}

/* C treatment: readable horizontal labels over a deliberate angled backing. */
:is(.home-polished .feature-n,.hero .sticker,body:not(.home-polished) .hero .eyebrow,body:not(.home-polished) .scope,body:not(.home-polished) .story .step,body[data-rhi-page='about'] .label,body[data-rhi-page='art-gallery'] .kicker){
 position:relative;isolation:isolate;transform:none!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:4px;max-width:100%;line-height:1.6;overflow:visible;
 --label-backing:var(--rhi-lime);--label-angle:-3.5deg;
}
:is(.home-polished .feature-n,.hero .sticker,body:not(.home-polished) .hero .eyebrow,body:not(.home-polished) .scope,body:not(.home-polished) .story .step,body[data-rhi-page='about'] .label,body[data-rhi-page='art-gallery'] .kicker)::before,
:is(.home-polished .feature-n,.hero .sticker,body:not(.home-polished) .hero .eyebrow,body:not(.home-polished) .scope,body:not(.home-polished) .story .step,body[data-rhi-page='about'] .label,body[data-rhi-page='art-gallery'] .kicker)::after{
 content:'';position:absolute;inset:0;pointer-events:none;border:1.5px solid var(--rhi-ink);border-radius:4px;
}
:is(.home-polished .feature-n,.hero .sticker,body:not(.home-polished) .hero .eyebrow,body:not(.home-polished) .scope,body:not(.home-polished) .story .step,body[data-rhi-page='about'] .label,body[data-rhi-page='art-gallery'] .kicker)::before{
 z-index:-2;inset:-3px -5px;background:var(--label-backing);transform:rotate(var(--label-angle));
}
:is(.home-polished .feature-n,.hero .sticker,body:not(.home-polished) .hero .eyebrow,body:not(.home-polished) .scope,body:not(.home-polished) .story .step,body[data-rhi-page='about'] .label,body[data-rhi-page='art-gallery'] .kicker)::after{
 z-index:-1;background:#faf8f3;
}
.home-polished .feature-n{padding:8px 12px;font-size:13px;margin:8px 0 12px}
.home-polished .feature:nth-child(even) .feature-n{--label-backing:var(--rhi-pink)}
body:not(.home-polished) .story .step{margin-top:8px;margin-bottom:16px}
body:not(.home-polished) .scope{margin:8px 5px 12px 0}
body[data-rhi-page='about'] .label{margin-bottom:30px}
body[data-rhi-page='art-gallery'] .kicker{margin-bottom:24px}
.home-polished .hero-playful{position:relative;isolation:isolate;transform:none;background:transparent;border-radius:5px}
.home-polished .hero-playful::before{content:'';position:absolute;inset:3px -4px;z-index:-1;background:var(--rhi-lime);border-radius:5px;transform:rotate(-3deg);pointer-events:none}
@media(max-width:760px){
 :is(.home-polished .feature-n,.hero .sticker,body:not(.home-polished) .hero .eyebrow,body:not(.home-polished) .scope,body:not(.home-polished) .story .step,body[data-rhi-page='about'] .label,body[data-rhi-page='art-gallery'] .kicker){--label-angle:-2deg;max-width:calc(100% - 10px)}
 .home-polished .feature-n{font-size:13px;line-height:1.6;margin-bottom:16px}
}

/* Fixed monochrome brand mark; never rendered as a platform emoji. */
.topbar .brand-mark{display:inline-block;width:.8em;height:.8em;margin-left:.08em;vertical-align:-.025em;color:inherit;overflow:visible}

/* Consistent vector icons across desktop and mobile. */
.ui-icon{display:inline-block;width:1em;height:1em;vertical-align:-.12em;flex-shrink:0;color:inherit;overflow:visible}
.ticker .ui-icon{margin-left:.3em}
.lightbox-close .ui-icon{margin-left:.25em}

/* Dedicated portfolio resources and a reliable, script-free return to top. */
.portfolio-resource-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:22px}
.portfolio-resource-links a{display:inline-flex;align-items:center;padding:12px 18px;min-height:44px;border:2px solid var(--rhi-ink);border-radius:30px;background:var(--rhi-cream);font-weight:700;text-decoration:none}
.portfolio-resource-links a:hover{background:var(--rhi-lime)}
.page-end-nav{background:#19191b;color:#faf8f3;border-top:1px solid #777;padding:20px 0}
.page-end-nav .wrap{display:flex;justify-content:flex-end}
.back-to-top{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 16px;font:700 16px/1.4 'DM Sans',Arial,sans-serif;text-decoration:none;border:1px solid #faf8f3;border-radius:30px}
.back-to-top:hover{background:#daf04a;color:#19191b;border-color:#daf04a}
.back-to-top:focus-visible{outline:3px solid #daf04a;outline-offset:4px}
@media(max-width:520px){.portfolio-resource-links{flex-direction:column;align-items:flex-start}}

/* Gallery labels: quiet, high-contrast exhibition typography. */
body[data-rhi-page='art-gallery'] .art .caption{background:transparent;color:#faf8f3;display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:18px 0 4px;border-top:1px solid #69666a;margin-top:14px;line-height:1.5}
body[data-rhi-page='art-gallery'] .art .caption strong{color:#faf8f3;font-size:clamp(1.25rem,1.7vw,1.5rem);font-weight:600;letter-spacing:-.025em;line-height:1.3}
body[data-rhi-page='art-gallery'] .art .caption span{color:#d3d0c9;font-size:1rem;line-height:1.5;text-align:left}
body[data-rhi-page='art-gallery'] .art{border-radius:0}

/* Gallery hierarchy: four featured works followed by a compact studio selection. */
body[data-rhi-page='art-gallery'] .featured-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:56px 36px;align-items:start}
body[data-rhi-page='art-gallery'] .featured-grid .art{grid-column:span 7;padding:0;margin:0}
body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(2),body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(3){grid-column:span 5}
body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(2){padding-top:64px}
body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(4){padding-top:0;grid-column:span 7}
body[data-rhi-page='art-gallery'] .featured-grid .art img{aspect-ratio:auto;height:auto}
body[data-rhi-page='art-gallery'] .series-head{border-top:1px solid #69666a;padding-top:40px;margin:72px 0 32px}
body[data-rhi-page='art-gallery'] .series-head h2{font-size:clamp(2rem,3.3vw,3.5rem)}
body[data-rhi-page='art-gallery'] .studio-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 28px}
body[data-rhi-page='art-gallery'] .studio-grid .art{grid-column:auto;padding:0;margin:0}
body[data-rhi-page='art-gallery'] .studio-grid .art a{aspect-ratio:4/5;display:flex;align-items:center;justify-content:center;background:#e9e5de}
body[data-rhi-page='art-gallery'] .studio-grid .art img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
body[data-rhi-page='art-gallery'] .studio-grid .art .caption{gap:5px;padding-top:14px}
body[data-rhi-page='art-gallery'] .studio-grid .art .caption strong{font-size:1.2rem}
@media(max-width:860px){
body[data-rhi-page='art-gallery'] .featured-grid{grid-template-columns:1fr;gap:40px}
body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(n){grid-column:1;padding:0;margin:0}
body[data-rhi-page='art-gallery'] .studio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 18px}
body[data-rhi-page='art-gallery'] .series-head{margin-top:54px}
}
@media(max-width:520px){body[data-rhi-page='art-gallery'] .studio-grid{grid-template-columns:1fr;gap:36px}body[data-rhi-page='art-gallery'] .studio-grid .art a{aspect-ratio:auto}body[data-rhi-page='art-gallery'] .studio-grid .art img{height:auto}}

/* Red Rupture anchors the gallery with an independent, larger presentation. */
body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(n){padding-top:0}
body[data-rhi-page='art-gallery'] .featured-grid .art.art-spotlight{grid-column:1/-1;width:min(100%,1080px);justify-self:center;margin:0 0 12px}
body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(2){grid-column:span 7}
body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(3){grid-column:span 5}
body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(4){grid-column:1/-1;width:min(100%,820px);justify-self:center}
body[data-rhi-page='art-gallery'] .art-spotlight .caption strong{font-size:clamp(1.6rem,2.6vw,2.3rem)}
@media(max-width:860px){body[data-rhi-page='art-gallery'] .featured-grid .art:nth-child(n){grid-column:1;width:100%;margin:0}}
