/* Shared proportions and components across the portfolio. */
.navbar-brand { display:inline-flex; align-items:center; gap:8px; }
.rd-nav-avatar { width:40px; height:40px; flex:none; object-fit:cover; border:2px solid #69b589; border-radius:50%; padding:1px; background:#fff; }
.rd-card .rd-tags span,.rd-card.rd-showcase-card .rd-tags span,.redesign-case[data-project] .rd-case-sidebar .rd-tags span,.rd-service-areas li { border:1px solid color-mix(in srgb,currentColor 14%,transparent); border-radius:5px; background:#ffffff18; color:inherit; padding:5px 8px; font:500 9px/1.5 Inter,Arial,sans-serif; text-transform:uppercase; letter-spacing:.035em; }
.rd-branded-actions { gap:12px; }
.rd-hero h1 { font-size:clamp(3.2rem,5.2vw,5.5rem); }
.rd-branded-hero h1,.rd-services-hero h1 { font-size:clamp(3.1rem,5vw,5.2rem); }
.rd-about-copy h1,.rd-inner-hero h1 { font-size:clamp(3.1rem,4.8vw,5rem); }
.rd-section-head h2,.rd-approach h2,.rd-services-expertise h2,.rd-service-section-head h2,.rd-service-process h2,.section-title { font-size:clamp(2.2rem,3.7vw,3.8rem); }
.rd-about-interests h2 { font-size:clamp(2.15rem,3.1vw,3.15rem); }
.rd-card .rd-card-copy h3,.rd-card.rd-showcase-card .rd-card-copy h3 { font-size:clamp(1.75rem,2.45vw,2.6rem); }
.rd-engagement-copy h3 { font-size:clamp(1.8rem,2.5vw,2.7rem); }
.rd-process-line h3,.rd-steps h3,.rd-services-expertise .rd-steps h3 { font-size:clamp(1.4rem,1.6vw,1.7rem); }
.redesign-case .rd-case-sticky h1 { font-size:clamp(2.2rem,2.75vw,3.35rem); }
.redesign-case .rd-case-lead h2 { font-size:clamp(2.25rem,3.3vw,4rem); }
.redesign-case .rd-story-section h2 { font-size:clamp(1.9rem,2.6vw,3.1rem); }
.rd-contact h2 { font-size:clamp(2.7rem,4.1vw,4.5rem); }
.rd-contact.rd-service-footer h2 { font-size:clamp(2.5rem,3.3vw,3.6rem); }
.rd-experiment-grid { gap:20px; }
.rd-experiment.rd-prototype-card { border-radius:22px; }
.rd-prototype-card .rd-experiment-preview { aspect-ratio:1.65; }
.rd-prototype-caption { min-height:140px; padding:40px 22px 22px; gap:12px; }
.rd-prototype-caption h2,.rd-prototype-caption h3 { font-size:clamp(1.5rem,1.9vw,1.9rem); }
.rd-prototype-subtitle { font-size:11px; }
@media(hover:none) {
}
@media(max-width:767px) {
 .rd-nav-avatar { width:36px; height:36px; }
 .rd-hero h1,.rd-branded-hero h1,.rd-services-hero h1 { font-size:clamp(2.45rem,8.1vw,3.8rem); }
 .rd-about-copy h1,.rd-inner-hero h1 { font-size:clamp(2.5rem,8.2vw,3.8rem); }
 .rd-section-head h2,.rd-approach h2,.rd-services-expertise h2,.rd-service-section-head h2,.rd-service-process h2,.section-title,.rd-about-interests h2 { font-size:2.15rem; }
 .rd-card .rd-card-copy h3,.rd-card.rd-showcase-card .rd-card-copy h3 { font-size:1.85rem; }
 .rd-engagement-copy h3 { font-size:2rem; }
 .redesign-case .rd-case-sticky h1 { font-size:2.35rem; }
 .redesign-case .rd-case-lead h2 { font-size:2.15rem; }
 .redesign-case .rd-story-section h2 { font-size:1.85rem; }
 .rd-contact h2,.redesign-case .rd-contact h2 { font-size:2.4rem; }
 .rd-contact.rd-service-footer h2 { font-size:2.3rem; }
 .rd-experiment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .rd-experiment.rd-prototype-card { min-width:0; border-radius:16px; }
 .rd-prototype-card .rd-experiment-preview { aspect-ratio:.94; }
 .rd-prototype-caption { min-height:0; padding:28px 12px 14px; flex-wrap:nowrap; gap:6px; }
 .rd-prototype-caption>div { min-width:0; }
 .rd-prototype-caption h2,.rd-prototype-caption h3 { font-size:18px; letter-spacing:-.025em; }
 .rd-prototype-subtitle { font-size:9px; }
 .rd-prototype-context { display:none; }
}
@media(max-width:480px) {
 .navbar-identity { gap:8px; }
 .availability-badge { font-size:0; gap:0; padding:7px; }
}
.rd-playground-teaser .rd-section-head h2 { font-size:clamp(2.15rem,3.1vw,3.15rem); }
@media(max-width:767px) { .rd-playground-teaser .rd-section-head h2 { font-size:2rem; } }

/* Avatar greeting, shared by every navigation. */
.rd-main-nav .navbar-brand { display:inline-flex; align-items:center; gap:8px; overflow:visible; }
.rd-avatar-wrap { position:relative; display:inline-flex; flex:0 0 auto; align-items:center; }
.rd-main-nav .rd-nav-avatar { display:block; visibility:visible; opacity:1; max-width:none; }
.rd-avatar-bubble { position:absolute; left:0; top:calc(100% + 12px); display:flex; align-items:center; gap:3px; min-width:90px; padding:12px 16px; border:1px solid #ddd4eb; border-radius:0 16px 16px 16px; background:#fbf9ffed; color:#453553; box-shadow:0 8px 28px #35234012; backdrop-filter:blur(16px); font:500 13px/1.3 Inter,Arial,sans-serif; letter-spacing:0; white-space:nowrap; pointer-events:none; opacity:0; visibility:hidden; transform:translateY(-5px); transition:opacity .18s,transform .18s,visibility .18s; }
.rd-avatar-wrap:hover .rd-avatar-bubble,.navbar-brand:focus-visible .rd-avatar-bubble { opacity:1; visibility:visible; transform:translateY(0); }
.rd-greeting-caret { height:13px; width:1px; background:#8d63c5; animation:rd-caret-blink .8s steps(1) infinite; }
@keyframes rd-caret-blink { 50% { opacity:0; } }
/* A decorative follower: the native pointer remains visible everywhere. */
.rd-cursor-dot { position:fixed; left:0; top:0; width:0; height:0; pointer-events:none; z-index:2147483647; opacity:0; visibility:hidden; }
.rd-cursor-filter { position:fixed; width:0; height:0; pointer-events:none; }
.rd-cursor-dot::before {
  --cursor-glass-center:#ffffff08;
  content:"";
  position:absolute;
  left:-12px;
  top:-12px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:
    radial-gradient(ellipse at 30% 24%, #fff 0%, #fff9 9%, transparent 25%),
    radial-gradient(ellipse at 74% 80%, #ffffffc7 0%, transparent 20%),
    radial-gradient(ellipse at 48% 46%, var(--cursor-glass-center) 52%, #ffffff08 69%, #ffffff75 100%);
  border:1px solid #ab8be36e;
  border-left-color:#75c9de95;
  border-top-color:#fadac889;
  border-right-color:#e084c896;
  backdrop-filter:blur(.65px) saturate(1.25);
  box-shadow:inset 0 0 0 1px #fff8, inset 0 -2px 3px #39226640, 0 1px 4px #43247526;
  animation:cursor-gradient 7s ease-in-out infinite alternate paused;
  transition:width .2s, left .2s;
}
.rd-cursor-dot.has-refraction::before { backdrop-filter:url("#rd-cursor-refraction") saturate(1.35); }
.rd-cursor-dot.is-visible { opacity:1; visibility:visible; }
@media(hover:none),(pointer:coarse) { .rd-cursor-dot { display:none; } }
@media(prefers-reduced-motion:reduce) {
 .rd-avatar-bubble,.rd-cursor-dot::before { transition:none; }
 .rd-greeting-caret { animation:none; }
}
@media(max-width:767px) { .rd-prototype-caption h2,.rd-prototype-caption h3 { font-size:clamp(15px,4.3vw,17px); } }
@media(hover:none) { .rd-avatar-wrap:hover .rd-avatar-bubble { opacity:0; visibility:hidden; } }

/* Contact presence: either the portrait or the availability badge greets you. */
.rd-footer-presence { display:flex; align-items:center; gap:10px; width:fit-content; position:relative; margin-bottom:4px; }
.rd-footer-avatar-link { display:inline-flex; flex:none; border-radius:50%; text-decoration:none; }
.rd-footer-avatar { display:block; width:44px; height:44px; max-width:none; border:2px solid #8fc69c; border-radius:50%; padding:2px; background:#ffffff12; object-fit:cover; }
.rd-footer-presence .rd-avatar-bubble { top:auto; bottom:calc(100% + 12px); border-radius:16px 16px 16px 0; z-index:3; }
.rd-footer-presence:has(:focus-visible) .rd-avatar-bubble { opacity:1; visibility:visible; transform:translateY(0); }
@media(hover:hover) { .rd-footer-presence:hover .rd-avatar-bubble { opacity:1; visibility:visible; transform:translateY(0); } }
/* About uses the same expanding arrow action as the project cards. */
@media(hover:none) {
}

/* The whole menu identity shares the same greeting trigger. */
.navbar-identity:has(:focus-visible) .rd-avatar-bubble { opacity:1; visibility:visible; transform:translateY(0); }
@media(hover:hover) { .navbar-identity:hover .rd-avatar-bubble { opacity:1; visibility:visible; transform:translateY(0); } }
.redesign-case .rd-contact h2 { font-size:clamp(2.5rem,3.5vw,3.5rem); }
@media(max-width:767px) { .redesign-case .rd-contact h2 { font-size:2.4rem; } }

/* Only project surfaces reveal a View cue; ordinary links keep the small dot. */
.rd-cursor-dot.is-visible::before { animation-play-state:running; }
.rd-cursor-dot.is-project::before,
.rd-cursor-dot.is-portrait::before { --cursor-glass-center:#24133ce0; }
.rd-cursor-dot.is-project::before { left:-29px; width:58px; }
.rd-cursor-dot::after { content:"View"; position:absolute; left:-29px; top:-12px; display:grid; place-items:center; width:58px; height:24px; color:#fff; font:600 10px/1 Inter,Arial,sans-serif; letter-spacing:.015em; text-shadow:0 1px 2px #17072d; opacity:0; transition:opacity .15s; }
.rd-cursor-dot.is-project::after { opacity:1; }
@keyframes cursor-gradient {
 from { border-color:#fadac889 #e084c896 #ab8be36e #75c9de95; }
 to { border-color:#e084c896 #ab8be36e #75c9de95 #fadac889; }
}
@media(prefers-reduced-motion:reduce) { .rd-cursor-dot::before { animation:none; transition:none; } .rd-cursor-dot::after { transition:none; } }

.rd-cursor-dot.is-portrait::before { left:-49px; width:98px; }
.rd-cursor-dot.is-portrait::after { content:"Things I like"; left:-49px; width:98px; opacity:1; }

@media (max-width:991px) {
  html:has(.rd-mobile-nav-open) { overflow:hidden; }
  .rd-mobile-nav-open .rd-contact-dock { visibility:hidden; }
  .rd-main-nav.rd-menu-open {
    display:block;
    inset:0;
    height:100dvh;
    overflow:auto;
    overscroll-behavior:contain;
    background:#fbfaf9!important;
  }
  .rd-main-nav.rd-menu-open > .container-lg { align-items:center; }
  .rd-main-nav.rd-menu-open .navbar-toggler {
    min-height:44px;
    min-width:44px;
  }
  .rd-main-nav.rd-menu-open .navbar-toggler-icon::before { content:"×"; font-size:27px; }
  .rd-main-nav.rd-menu-open .navbar-collapse.rd-open {
    padding:clamp(26px, 8svh, 86px) 0 max(24px, env(safe-area-inset-bottom));
  }
  .rd-main-nav.rd-menu-open .navbar-nav {
    max-width:620px;
    margin-inline:auto!important;
    padding-inline:clamp(6px, 3vw, 28px);
  }
  .rd-main-nav.rd-menu-open .nav-link {
    display:flex;
    align-items:center;
    gap:12px;
    border-top:1px solid #ded8e4;
    color:#211c29;
    font:500 clamp(1.85rem, 7vw, 3.4rem)/1.06 Spectral,Georgia,serif;
    padding:clamp(13px, 2.6svh, 24px) 4px;
  }
  .rd-main-nav.rd-menu-open .nav-link.active { color:#8058aa; }
  .rd-main-nav.rd-menu-open .rd-nav-cv { margin-top:0!important; }
}
