/* The same optical language, expressed differently on each page. */
.rd-branded-page { border:0; background:#fbfaf9; color:#161824; font-family:Inter,Arial,sans-serif; }
.rd-branded-page h1,.rd-branded-page h2,.rd-branded-page h3 { font-family:Spectral,Georgia,serif; letter-spacing:-.045em; font-weight:500; }
.rd-branded-page .rd-main-nav { padding-top:1rem; padding-bottom:1rem; }
.rd-branded-page .rd-text-link { color:#282333; }
.rd-branded-page a:focus-visible,.rd-branded-page button:focus-visible { outline:3px solid #9271c4; outline-offset:4px; }
.rd-branded-hero { padding:0; min-height:740px; height:min(900px,94svh); justify-content:center; }
.rd-branded-hero .rd-hero-content { padding-top:110px; padding-bottom:95px; }
.rd-branded-hero h1 { font:500 clamp(4.2rem,6.7vw,7rem)/1.02 Spectral,Georgia,serif; letter-spacing:-.045em; max-width:750px; margin:0 0 26px; }
.rd-branded-hero h1 em { display:block; font-weight:400; background:linear-gradient(100deg,#c65aaf 5%,#8f6ac9 50%,#4a9bd5); background-clip:text; -webkit-background-clip:text; color:transparent; }
.rd-branded-hero .rd-hero-content>p:not(.rd-kicker) { max-width:495px; color:#585261; font:400 16px/1.8 Inter,Arial,sans-serif; }
.rd-branded-hero .rd-hero-content>p.rd-context-note { max-width:410px; font-size:11px; line-height:1.6; color:#86798e; margin-bottom:0; }
.rd-branded-hero .rd-hero-content>p.rd-branded-caption { margin:28px 0 0; text-transform:uppercase; letter-spacing:.15em; font-size:9px; color:#86798e; }
.rd-branded-actions { display:flex; flex-wrap:wrap; align-items:center; gap:22px 34px; margin-top:28px; }
.rd-branded-actions .rd-secondary-action { font-size:12px; font-weight:500; color:#75687d; }
.rd-branded-actions a { pointer-events:auto; }
.rd-service-areas { display:flex; flex-wrap:wrap; max-width:490px; gap:7px; margin:20px 0 0; padding:0; list-style:none; }
.rd-service-areas li { color:#796587; font-size:10px; border:1px solid #dcd3e5; border-radius:20px; padding:4px 10px; background:#ffffff50; }
.rd-services-hero h1 { font-size:clamp(4.2rem,6.6vw,6.7rem); }
.rd-playground-hero { min-height:720px; height:80svh; max-height:820px; margin-bottom:60px; }
.rd-playground-hero[data-hero-shape="cube"] .rd-glass-fallback .rd-glass-orb { border-radius:24px; width:clamp(300px,34vw,520px); transform:rotate(-14deg) skewY(8deg); left:61%; top:23%; filter:blur(5px); box-shadow:inset -40px -35px 65px #32205f77,0 25px 80px #9b82ba33; }
/* A glass frame keeps the About page personal and preserves the portrait. */
.rd-about-hero { position:relative; overflow:hidden; padding:154px 0 76px; background:radial-gradient(ellipse at 86% 30%,#e9dff480,transparent 55%),#fbfaf9; }
.rd-about-hero-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:70px; align-items:center; }
.rd-about-copy h1 { font:500 clamp(4rem,6.3vw,6.5rem)/1.02 Spectral,Georgia,serif; letter-spacing:-.045em; margin:0 0 26px; }
.rd-about-copy h1 em { font-weight:400; background:linear-gradient(100deg,#c65aaf,#8f6ac9 55%,#4a9bd5); background-clip:text; -webkit-background-clip:text; color:transparent; }
.rd-about-copy>p:not(.rd-kicker) { color:#605867; font-size:15px; line-height:1.85; max-width:510px; margin-bottom:20px; }
.rd-about-copy .rd-text-link { font-size:12px; margin-top:12px; }
.rd-portrait-glass { margin:0; position:relative; padding:20px; border:1px solid #ffffffc0; border-radius:28px; background:linear-gradient(145deg,#ffffffa0,#cab0e92a); box-shadow:inset 0 1px 0 white,0 24px 80px #6b4c9320; }
.rd-portrait-frame { position:relative; overflow:hidden; border-radius:16px; height:510px; background:#e6dced; }
.rd-portrait-frame img { width:100%; height:100%; object-fit:cover; object-position:50% 55%; }
.rd-portrait-glass::before { content:""; position:absolute; width:80px; top:-18px; bottom:44px; left:-28px; border:1px solid #ffffffd0; background:linear-gradient(90deg,#e3cef245,#ffffff30); backdrop-filter:blur(5px); border-radius:14px; transform:rotate(-4deg); pointer-events:none; }
.rd-portrait-glass figcaption { font-size:10px; color:#8a7895; margin:16px 2px 0; }
.rd-about-interests { padding:64px 0; background:#f0edf4; }
.rd-about-interests-grid { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:80px; }
.rd-about-interests h2 { font-size:clamp(2.6rem,4vw,4rem); line-height:1.05; margin:0 0 22px; }
.rd-about-interests p:not(.rd-kicker) { font-size:14px; color:#6b6273; line-height:1.8; max-width:440px; }
.rd-about-interests .rd-text-link { font-size:12px; margin-top:8px; }
.rd-playlist-label { font:600 10px/1.5 Inter,Arial,sans-serif!important; text-transform:uppercase; letter-spacing:.14em!important; color:#8d759c; margin:0 0 16px; }
/* Small planes of glass tie the archive to the same system. */
.rd-archive-crystal { position:relative; isolation:isolate; overflow:hidden; min-height:530px; padding-bottom:80px; }
.rd-archive-crystal>.container-lg { position:relative; z-index:1; }
.rd-archive-crystal .rd-inner-deck { max-width:550px; }
.rd-archive-art { position:absolute; width:480px; height:360px; right:max(4vw,calc((100vw - 1320px)/2)); top:140px; pointer-events:none; z-index:0; }
.rd-archive-art::before { content:""; position:absolute; inset:-60px -70px; border-radius:50%; background:radial-gradient(ellipse,#ba9ce92c,transparent 65%); filter:blur(20px); }
.rd-archive-art span { position:absolute; width:255px; height:280px; top:25px; left:110px; border-radius:24px; border:1px solid #fff; background:linear-gradient(130deg,#ffffff90,#a98ada35 55%,#8abbe626); box-shadow:inset 0 1px 0 white,0 20px 70px #9473b417; backdrop-filter:blur(9px); transform:rotate(-14deg); }
.rd-archive-art span:nth-child(2) { left:160px; top:52px; transform:rotate(2deg); opacity:.85; }
.rd-archive-art span:nth-child(3) { left:210px; top:80px; transform:rotate(16deg); opacity:.6; }
@media(min-width:768px) and (max-width:991px) { .rd-branded-hero h1 { font-size:5rem; } .rd-branded-hero .rd-hero-content>p:not(.rd-kicker) { max-width:400px; } .rd-about-hero-grid { gap:38px; } .rd-portrait-frame { height:440px; } .rd-about-copy h1 { font-size:4.5rem; } .rd-archive-art { right:-110px; opacity:.55; } }
@media(max-width:767px) {
 .rd-branded-page .rd-main-nav { padding:.7rem 0; }
 .rd-branded-hero { min-height:0; max-height:none; height:auto; justify-content:flex-start; }
 .rd-branded-hero .rd-hero-content { padding-top:126px; padding-bottom:380px; }
 .rd-branded-hero h1 { font-size:clamp(3.3rem,10.5vw,5rem); max-width:600px; margin-bottom:24px; }
 .rd-branded-hero .rd-hero-content>p:not(.rd-kicker) { font-size:15px; line-height:1.8; max-width:38ch; }
 .rd-branded-hero .rd-hero-content>p.rd-context-note { font-size:10px; max-width:34ch; }
 .rd-branded-hero .rd-hero-content>p.rd-branded-caption { font-size:9px; margin-top:22px; }
 .rd-branded-hero .rd-hero-foot { bottom:18px; }
 .rd-branded-actions { gap:24px; margin-top:24px; }
 .rd-service-areas { max-width:350px; gap:6px; }
 .rd-service-areas li { font-size:9px; }
 .rd-playground-hero { margin-bottom:40px; }
 .rd-playground-hero[data-hero-shape="cube"] .rd-glass-fallback .rd-glass-orb { left:24%; top:auto; bottom:8%; width:280px; }
 .rd-about-hero { padding:126px 0 44px; }
 .rd-about-hero-grid { grid-template-columns:1fr; gap:38px; }
 .rd-about-copy h1 { font-size:clamp(3.5rem,11vw,5rem); }
 .rd-about-copy>p:not(.rd-kicker) { font-size:14px; }
 .rd-portrait-glass { max-width:460px; width:calc(100% - 24px); margin:0 auto; padding:14px; }
 .rd-portrait-frame { height:400px; }
 .rd-portrait-glass::before { left:-15px; width:45px; }
 .rd-about-interests { padding:46px 0; }
 .rd-about-interests-grid { grid-template-columns:1fr; gap:32px; }
 .rd-about-interests h2 { font-size:2.8rem; }
 .rd-archive-crystal { padding-bottom:240px; min-height:0; }
 .rd-archive-crystal .rd-inner-deck { max-width:34ch; }
 .rd-archive-art { width:340px; height:210px; top:auto; bottom:26px; right:-15px; }
 .rd-archive-art span { width:145px; height:160px; left:45px; top:0; border-radius:14px; }
 .rd-archive-art span:nth-child(2) { left:85px; top:14px; }
 .rd-archive-art span:nth-child(3) { left:125px; top:28px; }
}
@media(prefers-reduced-motion:reduce) { .rd-portrait-glass,.rd-archive-art span { transition:none; } }
.rd-branded-actions .rd-text-link:hover>span { transform:translateX(4px); }
.rd-branded-actions .rd-secondary-action:hover>span { transform:translateY(4px); }
@media(prefers-reduced-motion:reduce) { .rd-branded-actions .rd-text-link>span { transition:none; } }
/* The portrait sits in a shallow 3D glass frame; only the optical layer drifts. */
.rd-portrait-glass { transform:perspective(1200px) rotateY(-7deg) rotateX(2deg); transform-style:preserve-3d; box-shadow:inset 0 1px 0 white,10px 18px 0 -8px #d6c6e635,24px 30px 80px #6b4c9328; }
.rd-portrait-frame { transform:translateZ(15px); }
.rd-portrait-glass::after { content:""; position:absolute; inset:8px -8px -8px 8px; border:1px solid #ffffff90; border-radius:28px; transform:translateZ(-15px); pointer-events:none; }
@keyframes portrait-reeds { from { transform:translateX(0); } to { transform:translateX(-24px); } }
@media(max-width:767px) { .rd-portrait-glass { transform:perspective(1000px) rotateY(-4deg) rotateX(1deg); } }
@media(prefers-reduced-motion:reduce) { }

/* Italic glyphs extend past their advance width: keep gradient ink in the paint box. */
.rd-playground-hero h1 em { padding:.08em .18em .12em .06em; margin:-.08em -.18em -.12em -.06em; }

/* Wider frosted reeds follow the pointer across the portrait. */
.rd-portrait-glass { --portrait-x:0; --portrait-y:0; transform:perspective(1200px) rotateY(calc(-7deg + var(--portrait-x)*3deg)) rotateX(calc(2deg - var(--portrait-y)*2deg)); }
.rd-portrait-frame img { transform:translate(calc(var(--portrait-x)*-5px),calc(var(--portrait-y)*-4px)) scale(1.035); }
@media(max-width:767px) { .rd-portrait-glass { transform:perspective(1000px) rotateY(-4deg) rotateX(1deg); } }
@media(prefers-reduced-motion:reduce) { .rd-portrait-glass { transform:perspective(1200px) rotateY(-7deg) rotateX(2deg); } .rd-portrait-frame img { transform:scale(1.035); } }

/* A personal introduction unfolds from behind the portrait. */
.rd-portrait-glass { isolation:isolate; }
.rd-portrait-glass:focus-visible { outline:2px solid #9271c4; outline-offset:8px; }
.rd-portrait-frame { z-index:2; }
.rd-portrait-interests { position:absolute; inset:20px; pointer-events:none; z-index:1; transform:translateZ(0); }
.rd-interest-card { position:absolute; top:50%; left:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; width:76px; height:90px; border:1px solid #fff9; border-radius:16px; background:linear-gradient(135deg,#ffffffed,#e9def6ed); box-shadow:0 8px 24px #3c245c1c,inset 0 1px 0 #fff; color:#625273; transform-origin:100% 50%; transform:translate(12px,-50%) rotate(0); opacity:0; transition:transform .5s cubic-bezier(.2,.8,.2,1),opacity .22s; transition-delay:calc((3 - var(--interest-index)) * 35ms); }
.rd-interest-card>span { font-size:29px; line-height:1; }
.rd-interest-card small { font:500 9px/1.2 Inter,Arial,sans-serif; }
.rd-portrait-glass.is-introducing .rd-interest-card { opacity:1; transition-delay:calc(var(--interest-index)*65ms); transform:translate(calc(-94px - (1 - min(1,abs(var(--interest-index) - 1.5)))*12px),calc(-50% + (var(--interest-index) - 1.5)*74px)) rotate(calc((var(--interest-index) - 1.5)*10deg)); }
.rd-portrait-greeting { position:absolute; z-index:3; left:43%; top:17%; width:min(200px,calc(57% - 14px)); max-width:230px; min-height:60px; padding:12px 14px; border:1px solid #ffffffbf; border-radius:16px 16px 16px 0; color:#342a42; background:#fbf8fff0; box-shadow:0 10px 28px #39234f22; backdrop-filter:blur(16px); font:500 12px/1.5 Inter,Arial,sans-serif; opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .2s,transform .25s,visibility .2s; pointer-events:none; }
.rd-portrait-glass.is-introducing .rd-portrait-greeting { opacity:1; visibility:visible; transform:translateY(0); }
.rd-portrait-caret { display:inline-block; width:1px; height:1em; margin-left:2px; background:#8e64b0; vertical-align:-.1em; animation:portrait-caret .85s step-end infinite; }
@keyframes portrait-caret { 50% { opacity:0; } }
@media(max-width:767px) {
 .rd-portrait-interests { inset:14px; }
 .rd-interest-card { width:50px; height:72px; border-radius:13px; gap:5px; }
 .rd-interest-card>span { font-size:24px; }
 .rd-interest-card small { font-size:7px; }
 .rd-portrait-glass.is-introducing .rd-interest-card { transform:translate(calc(-40px - (1 - min(1,abs(var(--interest-index) - 1.5)))*4px),calc(-50% + (var(--interest-index) - 1.5)*62px)) rotate(calc((var(--interest-index) - 1.5)*8deg)); }
 .rd-portrait-greeting { left:40%; width:calc(60% - 10px); max-width:230px; padding:10px 12px; font-size:11px; min-height:54px; }
}
@media(prefers-reduced-motion:reduce) { .rd-interest-card,.rd-portrait-greeting { transition:none; } .rd-portrait-caret { animation:none; } }

.rd-portrait-glass:has(.rd-portrait-bubbles)::before { content:none; }

.rd-portrait-bubbles { position:absolute; inset:0; pointer-events:none; }
.rd-portrait-bubbles span {
 position:absolute;
 left:var(--bubble-x);
 top:var(--bubble-y);
 width:var(--bubble-width);
 aspect-ratio:1;
 border-radius:50%;
 background:
   radial-gradient(ellipse at 26% 23%, #ffffffe0, #fff4 8%, transparent 18%),
   radial-gradient(circle, transparent 52%, #a786cb20 66%, #c6caf878 71%);
 box-shadow:inset 0 0 0 1px #ffffffae, inset -3px -2px 10px #7850b446, 0 9px 28px #1b0f3b19;
 backdrop-filter:blur(3px) saturate(1.22);
 transform:translate(-50%, -50%);
 transition:transform 1.35s cubic-bezier(.22,.65,.2,1);
}
.rd-portrait-bubbles span::before {
 content:"";
 position:absolute;
 inset:0;
 border-radius:inherit;
 background:conic-gradient(from 145deg, #849cff87, #8ddad180, #e9b9dc7a, #aa8cdb94, #849cff87);
 mask-image:radial-gradient(circle, transparent 62%, #000 71%);
}
body:has(#rd-cursor-refraction) .rd-portrait-bubbles span {
 backdrop-filter:url("#rd-cursor-refraction") blur(2px) saturate(1.22);
}
.rd-portrait-bubbles span:nth-child(1) {
 --bubble-x:54%; --bubble-y:39%; --bubble-width:61%; --reveal-x:31%; --reveal-y:-27%;
}
.rd-portrait-bubbles span:nth-child(2) {
 --bubble-x:84%; --bubble-y:18%; --bubble-width:32%; --reveal-x:3%; --reveal-y:-10%;
}
.rd-portrait-bubbles span:nth-child(3) {
 --bubble-x:24%; --bubble-y:74%; --bubble-width:39%; --reveal-x:-30%; --reveal-y:14%;
}
.rd-portrait-glass.is-introducing .rd-portrait-bubbles span {
 transform:translate(calc(var(--reveal-x) + var(--portrait-x)*12px), calc(var(--reveal-y) + var(--portrait-y)*12px)) scale(.87);
}
@media(prefers-reduced-motion:reduce) { .rd-portrait-bubbles span { transition:none; } }
