/* Shared editorial frame; company fields and arrival colours come from brand-fields.json. */
:root{--paper:#f4f1eb;--ink:#1d2e42;--muted:#56606a;--copper:#1d2e42;--accent:#d8c9b5;--scene-ease:cubic-bezier(.16,1,.3,1)}
.portfolio-world,.world-stage,.world-controls,.world-baseline{background:#f4f1eb;color:#1d2e42}
body:has(.portfolio-world) .header{background:#f4f1eb;border-color:#c7c6c2}
.world-tile{border:1px solid #22334718}
.world-tile::after{content:'';position:absolute;left:10px;right:10px;bottom:0;height:2px;background:var(--brand-accent);opacity:.75;pointer-events:none}
.world-tile-label{font-weight:650;letter-spacing:.045em}
.menu-logo-surface{border:1px solid #2233470d}
.world-controls .world-enter{background:#1d2e42;color:#ffffff;letter-spacing:.025em}
.world-controls .world-reset{color:#1d2e42;border-color:#1d2e42}
.world-dock{border-color:#c7c6c2}
.world-dock-start{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:11px;line-height:1.15;font-weight:650;color:#1d2e42;letter-spacing:.02em}
.world-swipe-arrow{display:block;font-size:24px;line-height:.9;text-align:center;font-weight:500;animation:swipe-cue 1.5s ease-in-out 2}
.world-ready .world-dock-start{display:none}
.world-dock-ready,.world-controls .world-direct{color:#1d2e42}
.world-cover{border-color:#1d2e42;color:#1d2e42}
.world-stage::before,.world-stage::after{background:#1d2e42}
.world-role{letter-spacing:.075em}
.world-tile:has(.menu-company-logo){border-top:3px solid var(--transition-bg)}
.world-tile:has(.menu-company-logo)::after{height:4px;opacity:1}
.world-shape .utility-icon,.world-shape .utility-icon path,.world-shape .utility-icon rect,.world-shape .utility-icon circle{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
/* Supporting cases show their subject before the visitor opens them. */
.supporting-links .healthcare-case-link{display:block;padding:0;overflow:hidden;background:#f4f1eb}
.support-preview{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;background:#fff;isolation:isolate}
.support-preview .support-preview-image{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.support-preview-label{position:absolute;bottom:10px;left:10px;right:auto;max-width:calc(100% - 20px);padding:5px 8px;background:#f4f1eb;color:#1d2e42;font:500 9px/1.4 'DM Sans',Arial,sans-serif;box-sizing:border-box;text-decoration:none}
.support-preview.sail-preview{background:#eed9df;color:#792b4a}
.support-preview .sail-preview-name{position:absolute;z-index:1;left:8%;top:45%;transform:translateY(-50%);font:400 clamp(36px,4.4vw,64px)/.95 'Instrument Serif',Georgia,serif;letter-spacing:-.04em;color:#792b4a}
.support-preview .sail-preview-symbol{position:absolute;right:0;bottom:0;height:150%;width:54%;object-fit:contain;object-position:center bottom}
.support-story{padding:25px}
.support-story>strong{display:block;margin-bottom:14px}
.support-story .support-open{display:inline-flex;align-items:center;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:4px;margin-top:15px}
.health-next>.next-project-preview{max-width:590px;margin-bottom:26px}
.project-transition .transition-preview{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);width:76%;height:36%;max-width:700px;max-height:330px;aspect-ratio:auto;background:#fff;animation:preview-arrival 1s .25s cubic-bezier(.4,0,.2,1) both}
.project-transition .transition-preview .support-preview-image{object-fit:contain}
.project-transition .transition-preview.sail-preview{background:#eed9df}
.project-transition .transition-preview .sail-preview-name{font-size:clamp(42px,7vw,90px)}
@keyframes preview-arrival{from{opacity:0;transform:translate(-50%,-50%) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
/* A personal introduction fills this panel rather than a small generic symbol. */
.world-person{grid-template-rows:auto minmax(0,1fr)}
.world-person .person-identity{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;width:100%;height:100%;text-align:left;overflow:hidden}
.person-identity-name{display:block;font:400 clamp(32px,5vw,76px)/.95 'Instrument Serif',Georgia,serif;letter-spacing:-.035em;color:inherit}
.person-identity-intro{display:block;font:500 12px/1.35 'DM Sans',Arial,sans-serif;letter-spacing:0;color:inherit;max-width:28ch}
.project-transition .person-identity-name{font-size:clamp(48px,10vw,92px)}
.project-transition .person-identity-intro{display:none}
/* Bottom panels have different rhythms: a career trail and a direct invitation. */
.world-cv,.world-contact{grid-template-rows:auto minmax(0,1fr)}
.world-cv .career-panel,.world-contact .contact-panel{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;height:100%;min-height:0}
.career-mini-timeline{position:relative;list-style:none;display:grid;gap:22px;margin:0;padding:0 0 0 20px;width:100%;box-sizing:border-box;color:inherit}
.career-mini-timeline::before{content:'';position:absolute;left:3px;top:10px;bottom:10px;border-left:1px solid currentColor;opacity:.45}
.career-mini-timeline li{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:10px;position:relative}
.career-mini-timeline li::before{content:'';position:absolute;left:-20px;top:calc(50% - 3.5px);width:7px;height:7px;border-radius:50%;background:currentColor}
.career-mini-timeline strong{font:500 clamp(17px,2.2vw,32px)/1.2 'DM Sans',Arial,sans-serif;letter-spacing:-.035em;overflow-wrap:anywhere}
.career-mini-dates{font:500 11px/1.2 'DM Sans',Arial,sans-serif;white-space:nowrap}
.world-contact .contact-panel{gap:12px;text-align:left}
.contact-panel-title{font:400 clamp(30px,4.6vw,72px)/.94 'Instrument Serif',Georgia,serif;letter-spacing:-.035em;color:inherit}
.contact-panel-note{font:500 12px/1.3 'DM Sans',Arial,sans-serif;color:inherit}
.project-transition .career-mini-timeline{width:min(100%,430px)}
.project-transition .contact-panel-title{font-size:clamp(50px,12vw,110px)}
.project-transition .contact-panel-note{display:none}
@media(max-width:991px){
 .world-person .person-identity{gap:6px}
 .world-person .person-identity-name{font-size:clamp(28px,7.2vw,44px)}
 .world-person .person-identity-intro{font-size:10px;line-height:1.3}
 .career-mini-timeline{gap:10px;padding-left:14px}
 .career-mini-timeline::before{left:2px;top:7px;bottom:7px}
 .career-mini-timeline li{grid-template-columns:43px minmax(0,1fr);gap:7px}
 .career-mini-timeline li::before{left:-14px;width:5px;height:5px;top:calc(50% - 2.5px)}
 .career-mini-timeline strong{font-size:clamp(12px,3.3vw,20px)}
 .career-mini-dates{font-size:9px}
 .world-contact .contact-panel{gap:8px}
 .world-contact .contact-panel-title{font-size:clamp(28px,7.4vw,45px)}
 .world-contact .contact-panel-note{font-size:10px}
}
@media(max-width:991px) and (max-height:700px){
 .world-person .person-identity-name{font-size:clamp(18px,5vw,27px);line-height:1}
 .world-person .person-identity-name br{display:none}
 .world-person .person-identity-intro{display:none}
 .career-mini-timeline{gap:4px}
 .career-mini-timeline strong{font-size:12px;line-height:1.1}
 .career-mini-dates{font-size:8px;line-height:1.1}
 .world-contact .contact-panel-title{font-size:clamp(18px,4.2vw,24px)}
 .world-contact .contact-panel-note{display:none}
}
@keyframes swipe-cue{0%,100%{transform:translateY(2px)}50%{transform:translateY(-2px)}}
/* Overlapping motion and a soft arrival bridge replace the navigation cut. */
body.sequence-leaving .world-tile{transition:opacity .65s ease-in-out}
#career{scroll-margin-top:110px}
html.route-arriving::after{content:"";position:fixed;inset:0;z-index:600;background:var(--arrival-field);pointer-events:none;opacity:1}
html.route-arriving.route-arrival-ready::after{animation:route-arrival-fade .9s cubic-bezier(.4,0,.2,1) both}
@keyframes route-arrival-fade{from{opacity:1}to{opacity:0}}
.project-transition{color:var(--tile-ink)}
.project-transition .transition-geometry{position:absolute;inset:0;z-index:0;opacity:.32;pointer-events:none}
.project-transition .transition-h,.project-transition .transition-v{position:absolute;display:block;background:currentColor}
.project-transition .transition-h{left:0;right:0;height:1px;transform-origin:left;animation:opening-grid-h 1s .3s cubic-bezier(.4,0,.2,1) both}
.project-transition .transition-h-one{top:22%}.project-transition .transition-h-two{bottom:22%;animation-delay:.4s}
.project-transition .transition-v{top:0;bottom:0;width:1px;transform-origin:top;animation:opening-grid-v 1s .35s cubic-bezier(.4,0,.2,1) both}
.project-transition .transition-v-one{left:12%}.project-transition .transition-v-two{right:12%;animation-delay:.4s}
.project-transition .transition-geometry svg{position:absolute;width:42%;height:auto;aspect-ratio:1;right:-10%;top:15%;fill:none;stroke:currentColor;stroke-width:.6}
.project-transition .transition-geometry circle{stroke-dasharray:500;animation:scene-stroke 1.5s .4s ease-in-out both}
.project-transition .transition-brand{position:absolute;z-index:2;left:50%;top:42%;width:70%;height:26%;max-width:540px;max-height:195px;transform:translate(-50%,-50%);background:#ffffff;border:1px solid #ffffff66;animation:brand-enter 1s .3s cubic-bezier(.16,1,.3,1) both}
.project-transition .transition-brand .transition-mark-image{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);min-width:0;min-height:0;max-width:none;max-height:none;object-fit:contain;object-position:center;mix-blend-mode:normal;filter:none}
.project-transition .transition-motif{position:absolute;inset:25% 20% 37%;z-index:1;animation:motif-arrival 1s .3s cubic-bezier(.16,1,.3,1) both}
.project-transition .transition-motif>.world-shape{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none}
.project-transition .transition-eyebrow{position:absolute;top:16%;left:12%;right:12%;z-index:3;font:500 11px/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;text-align:left;animation:director-rise .85s .45s cubic-bezier(.16,1,.3,1) both}
.project-transition .transition-name{position:absolute;inset:auto 12% 15%;z-index:3;display:block;padding:0;text-align:left;font:400 clamp(28px,4.5vw,66px)/1.08 'Instrument Serif',Georgia,serif;letter-spacing:-.025em;animation:director-rise .85s .55s cubic-bezier(.16,1,.3,1) both}
@keyframes brand-enter{from{opacity:0;transform:translate(-50%,-50%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes motif-arrival{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
@keyframes director-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* Opening the destination continues the sequence instead of starting an unrelated effect. */
.case-scene{min-height:calc(100svh - 110px)}
.case-scene .scene-line-h,.case-scene .scene-line-v{opacity:.28;animation-duration:1.4s;animation-timing-function:cubic-bezier(.4,0,.2,1)}
.case-scene .scene-ring circle{animation:scene-stroke 1.5s .25s cubic-bezier(.6,0,.6,1) both}
.case-scene .scene-bezier path{animation:scene-stroke 1.5s .4s ease-in-out both}
.case-scene .brand-heading{animation:director-rise 1.1s .25s cubic-bezier(.16,1,.3,1) both}
.case-scene h1{animation:director-rise 1.2s .5s cubic-bezier(.16,1,.3,1) both;letter-spacing:-.045em}
.case-scene .intro{animation:director-rise 1.2s .72s cubic-bezier(.16,1,.3,1) both}
.case-scene .button,.case-scene .text-button{animation:director-rise 1.2s .85s cubic-bezier(.16,1,.3,1) both}
.case-scene>.case-hero-art,.case-scene>figure{animation:work-arrival 1.3s .85s cubic-bezier(.16,1,.3,1) both}
@keyframes work-arrival{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
/* Profile motion clears the reading surface; text never waits behind a drawing. */
#about.destination-surface{--scene-bg:#f4f1eb;--scene-ink:#1d2e42;--muted:#495866;--line:#c5cbd0;background:var(--scene-bg);color:var(--scene-ink);scroll-margin-top:90px}
#about h2,#about h3,#about h4,#about .intro,#about>div>p:not(.eyebrow),#about dd,#about a{color:#1d2e42}
#about .eyebrow,#about dt,#about .small,#about .career-dates,#about .career-list p{color:#495866}
#about .profile-panel{background:#e6edf0;color:#1d2e42}
#about .profile-actions .button{background:#1d2e42;color:#fff;border-color:#1d2e42}
#about h2{animation:none}
#about>.scene-geometry{opacity:0;visibility:hidden}
#about.about-reading>.scene-geometry{animation:bio-clear 1.8s ease-out both}
#about.about-reading .scene-ring{animation:bio-ring-away 1.8s cubic-bezier(.16,1,.3,1) both}
#about.about-reading .scene-line-h{animation:bio-line-away 1.65s cubic-bezier(.16,1,.3,1) both}
#about.about-reading .scene-line-v{animation:bio-line-down 1.65s cubic-bezier(.16,1,.3,1) both}
@keyframes bio-clear{0%{opacity:.16;visibility:visible}45%{opacity:.07}100%{opacity:0;visibility:hidden}}
@keyframes bio-ring-away{from{transform:translate(0,0) scale(1)}to{transform:translate(60vw,-20vh) scale(1.5)}}
@keyframes bio-line-away{from{transform:translateX(0)}to{transform:translateX(110%)}}
@keyframes bio-line-down{from{transform:translateY(0)}to{transform:translateY(110%)}}
/* Contact is an invitation to write; CV and social links stay secondary. */
footer.destination-surface{align-items:flex-start;gap:45px 7%;scroll-margin-top:90px}
footer.destination-surface>.contact-invitation{flex:1 1 310px;min-width:0}
footer#contact>.scene-geometry{display:none}
footer.destination-surface h2{font-size:clamp(46px,6.2vw,88px);line-height:1.02}
footer.destination-surface .contact-actions{flex:1 1 410px;width:100%;max-width:640px;position:relative;z-index:1;gap:25px}
.contact-form{width:100%;background:#f4f1eb;color:#1d2e42;padding:clamp(22px,3vw,36px);display:grid;gap:18px}
.contact-form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.contact-form label{display:grid;gap:8px;font:500 12px/1.5 'DM Sans',Arial,sans-serif;color:#1d2e42}
.contact-form input,.contact-form textarea{font:400 16px/1.5 'DM Sans',Arial,sans-serif;width:100%;min-width:0;box-sizing:border-box;border:1px solid #7b8791;border-radius:0;background:#fff;color:#1d2e42;padding:11px 12px;min-height:46px}
.contact-form textarea{resize:vertical;min-height:120px}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#56606a;opacity:1}
.contact-form input:focus-visible,.contact-form textarea:focus-visible,.contact-submit:focus-visible{outline:3px solid #1e426e;outline-offset:3px}
.contact-form .contact-submit{margin:0;background:#1d2e42;color:#fff;border:1px solid #1d2e42;min-height:48px;justify-content:space-between;cursor:pointer}
footer.destination-surface .contact-form p{color:#495866;font-size:12px;line-height:1.65;margin:0}
.contact-form-status:empty{display:none}
.contact-alternatives{display:flex;gap:10px 22px;flex-wrap:wrap;align-items:center}
.contact-alternatives .contact-email{width:100%;font-size:clamp(17px,2vw,25px);overflow-wrap:anywhere}
.contact-alternatives .contact-link{font-size:12px;min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
footer.destination-surface .footer-base{color:var(--scene-ink);border-color:color-mix(in srgb,var(--scene-ink) 35%,transparent)}
/* One optional challenge, specific evidence, then a direct message. */
footer.destination-surface .contact-invitation h2{font-size:clamp(42px,5.2vw,74px);max-width:15ch;line-height:1.03}
footer.destination-surface .contact-invitation>p:not(.eyebrow){max-width:39ch;line-height:1.7}
footer.destination-surface .contact-invitation .contact-context{font-size:12px;margin-top:28px;line-height:1.8}
.conversation-choices{display:grid;gap:10px;width:100%}
.conversation-choices[hidden],.conversation-response[hidden]{display:none}
footer.destination-surface .conversation-choice-label{font-size:12px;margin:0 0 4px}
.conversation-choice{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:65px;padding:18px 20px;border:1px solid #ffffff80;background:transparent;color:#fff;text-align:left;font:500 15px/1.4 'DM Sans',Arial,sans-serif;cursor:pointer;transition:background .3s,color .3s,border-color .3s}
.conversation-choice>span:last-child{font-size:23px;flex:none}
.conversation-choice:hover{background:#ffffff12}
.conversation-choice[aria-pressed="true"]{background:#f4f1eb;color:#1d2e42;border-color:#f4f1eb}
.conversation-choice:focus-visible,.conversation-compose>summary:focus-visible{outline:3px solid #fff;outline-offset:4px}
.conversation-response{width:100%;padding:clamp(22px,3vw,32px);background:#f4f1eb;color:#1d2e42;box-sizing:border-box;animation:conversation-arrival .65s cubic-bezier(.4,0,.2,1) both}
footer.destination-surface .conversation-response .eyebrow{font-size:10px;color:#495866;margin:0 0 14px}
.conversation-response h3{font:400 clamp(28px,3vw,38px)/1.1 'Instrument Serif',Georgia,serif;margin:0 0 16px;color:#1d2e42}
footer.destination-surface .conversation-response p{color:#374c5d;font-size:14px;line-height:1.75}
footer.destination-surface .conversation-response .conversation-insight{font-size:17px;line-height:1.5;font-weight:500;color:#1d2e42;margin-bottom:18px}
.conversation-proof{display:inline-flex;min-height:44px;align-items:center;color:#1d2e42;font-size:13px;text-decoration:underline;text-underline-offset:4px;margin-top:8px}
.conversation-proof:focus-visible,.conversation-continue:focus-visible{outline:3px solid #1e426e;outline-offset:4px}
footer.destination-surface .conversation-continue{display:flex;width:100%;min-height:48px;justify-content:space-between;margin:18px 0 0;background:#1d2e42;color:#fff;border-color:#1d2e42;cursor:pointer}
.conversation-compose{width:100%;margin:0}
.conversation-compose>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:52px;padding:12px 0;font-size:13px;font-weight:500;line-height:1.5;cursor:pointer;list-style:none;border-bottom:1px solid #ffffff80}
.conversation-compose>summary::-webkit-details-marker{display:none}
.conversation-compose>summary::after{content:'+';font-size:26px;font-weight:400;flex:none}
.conversation-compose[open]>summary::after{content:'−'}
.conversation-compose[open]>.contact-form{margin-top:18px}
footer.destination-surface .contact-form .conversation-thought{padding:0;border:0;color:#374c5d;font-size:13px;line-height:1.65}
.contact-writing .portfolio-guide:not(.pg-open) .pg-mini-stage{visibility:hidden;pointer-events:none}
@keyframes conversation-arrival{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:700px){
 .world-tile-label{font-size:8px;letter-spacing:.025em}
 .world-dock-start{font-size:10px;line-height:1.2}.world-swipe-arrow{font-size:23px}
 .world-role{font-size:8px;letter-spacing:.035em}
 .project-transition .transition-eyebrow{font-size:10px;top:15%;left:10%;right:10%}
 .project-transition .transition-name{font-size:clamp(29px,8vw,46px);left:10%;right:10%;bottom:16%;line-height:1.08}
 .project-transition .transition-brand{width:76%;height:25%}
 .project-transition .transition-geometry svg{width:68%;right:-25%;top:21%}
 .case-scene{min-height:calc(100svh - 100px)}
 #about.destination-surface{padding-left:22px;padding-right:22px}
 .contact-form-row{grid-template-columns:1fr}
 footer.destination-surface .contact-actions{max-width:none;margin-top:30px}
 footer.destination-surface .contact-submit{margin-top:0}
 footer.destination-surface .contact-invitation h2{font-size:42px;max-width:16ch}
 .conversation-choice{font-size:14px;padding:16px;gap:15px}
 .support-story{padding:22px}
 .support-preview .sail-preview-name{font-size:clamp(36px,11vw,58px)}
 .project-transition .transition-preview{width:82%;height:33%}
}
@media(prefers-reduced-motion:reduce){
 .world-swipe-arrow,.case-scene *,.project-transition *{animation:none!important;transition:none!important;clip-path:none!important}
 html.route-arriving::after{display:none!important}
 #about>.scene-geometry{display:none!important;animation:none!important}
 .conversation-response{animation:none!important}
 .conversation-choice{transition:none!important}
}
