/* CloudDive component refinements. Load after page styles. */
.cd-header{--nav-home:#9f8bff;--nav-projects:#64b5ff;--nav-about:#74d79a;--logo-accent:var(--nav-home);align-items:center}
.cd-header[data-section="projects"]{--logo-accent:var(--nav-projects)}
.cd-header[data-section="about"]{--logo-accent:var(--nav-about)}
.cd-brand,.cd-brand:hover{transform:translateY(calc(-1 * var(--brand-scroll,0px)));transition:none;background:transparent;border-radius:0;box-shadow:none}
.cd-brand-word{transform:perspective(600px) rotateX(8deg);transform-origin:center;filter:none;line-height:1.15;letter-spacing:-.04em}
.cd-brand-word::before{content:none}
.cd-brand-cloudtext,.cd-brand-divetext{transform:none;-webkit-text-stroke:1px #111;text-shadow:0 1px 0 #111,0 2px 0 #111,1px 3px 0 #111,2px 4px 0 #111,3px 5px 0 rgba(17,17,17,.22)}
.cd-brand-cloudtext{color:var(--yellow)}
.cd-brand-divetext{color:var(--logo-accent)}
.cd-search-shell{min-width:48px}
.cd-search{width:48px;height:48px}
.cd-search-trigger{width:44px;min-width:44px;height:44px}
.cd-search-icon{width:22px;height:22px;border:0;border-radius:0;display:grid;place-items:center}
.cd-search-icon::after{content:none}
.cd-search-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.cd-search-dismiss{display:none}
.cd-search.is-open .cd-search-magnify{display:none}
.cd-search.is-open .cd-search-dismiss{display:block}
.cd-search-input::-webkit-search-cancel-button,.cd-search-input::-webkit-search-decoration{display:none;-webkit-appearance:none}
.cd-search-input::-ms-clear{display:none}
.cd-search-head{flex-wrap:wrap;line-height:1.4}
.cd-menu-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.cd-menu-btn{background:var(--pink);color:#111}
.cd-menu-dismiss{display:none}
.cd-menu-btn[aria-expanded="true"] .cd-menu-lines{display:none}
.cd-menu-btn[aria-expanded="true"] .cd-menu-dismiss{display:block}
/* The guide hit area covers the original card, without moving the footer. */
.library-project-card .project-card-link{position:static}
.library-project-card .project-card-link::after{content:"";position:absolute;inset:0}
.library-project-card .project-card-foot{pointer-events:none}
.library-project-card .project-quick-look{pointer-events:auto;position:relative;z-index:2}
.project-floating-filter-panel[inert]{pointer-events:none}
/* Original portrait positions; clearer contact controls. */
.cd-profile-links a.cd-profile-link{min-height:48px;font-family:inherit;font-size:.875rem;gap:8px;justify-content:center;padding-inline:10px;transform:none}
.cd-profile-links a.cd-profile-linkedin{background:#0a66c2;color:#fff}
.cd-profile-links a.cd-profile-email{background:#fffdf6;color:#111}
.profile-social-icon{width:20px;height:20px;flex:0 0 20px}
.cd-profile-email .profile-social-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Keep the original deck and control placement. Let answers grow safely. */
#homeHero .question-card{height:auto;min-height:420px;grid-template-rows:13px minmax(210px,auto) auto}
#homeHero .question-answer,#homeHero .question-answer.revealed{height:auto;min-height:138px;max-height:none}
#homeHero .question-answer-copy,#homeHero .question-answer.revealed .question-answer-copy{position:relative;inset:auto;padding:12px 18px;overflow:visible}
#homeHero .question-answer.revealed .question-reveal-label{position:relative;inset:auto;min-height:44px;height:44px}
#homeHero .question-card-back{height:calc(100% - 12px);max-height:none}
@media(min-width:768px) and (max-width:1100px){.cd-header.search-open .cd-nav-links{display:none}}
@media(max-width:767px){
 .cd-brand-word{font-size:1.5rem}
 .cd-header.search-open .cd-nav{position:static;width:auto;min-height:58px;padding-bottom:7px;backdrop-filter:none;-webkit-backdrop-filter:none;transform:none}
 .cd-header.search-open .cd-search-shell{min-width:0;width:0}
 .cd-search.is-open{position:absolute;left:0;right:0;top:calc(100% + 8px);bottom:auto;width:auto;max-width:none;height:48px}
 .cd-search-results{position:absolute;left:0;right:0;top:calc(100% + 64px);width:auto;max-height:min(430px,calc(100dvh - 156px))}
 #homeHero .question-card{min-height:340px;grid-template-rows:13px minmax(180px,auto) auto}
 #homeHero .question-answer-copy,#homeHero .question-answer.revealed .question-answer-copy{padding:12px 15px 10px}
}
@media(max-width:360px){.cd-brand-word{font-size:1.32rem}}

/* The transparent wordmark scrolls away; navigation remains sticky. */
.cd-brand.is-scrolled-away{visibility:hidden;pointer-events:none}
