/* A quiet information column beside an open field of work. */
button.team-portrait{width:100%;padding:0;border:0;text-align:left;cursor:pointer;font:inherit}
.team-profile-more{margin-top:20px;border:0;border-bottom:1px solid currentColor;padding:0 0 6px;background:none;color:inherit;font:inherit;font-size:13px;cursor:pointer}
body:has(#teamProfile[open]){overflow:hidden}
#teamProfile{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--cream);color:var(--blue);overflow:hidden}
#teamProfile::backdrop{background:#000a}#teamProfile[open]{animation:profile-arrive .6s cubic-bezier(.16,1,.3,1)}
@keyframes profile-arrive{from{opacity:0;transform:translateX(4vw)}to{opacity:1;transform:none}}
.profile-shell{display:grid;grid-template-columns:minmax(290px,33.333%) minmax(0,1fr);height:100%}
.profile-fixed{position:relative;z-index:2;background:var(--cream);border-right:1px solid color-mix(in srgb,currentColor 24%,transparent);padding:clamp(24px,3.2vw,54px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.profile-photo{display:block;width:100%;height:clamp(170px,32dvh,390px);object-fit:cover;object-position:center 40%;filter:grayscale(1);transition:filter .6s}.profile-photo:hover{filter:none}
.profile-fixed .team-name{padding:24px 0 20px}.profile-fixed .team-name h3{font-size:clamp(28px,3vw,48px)}
.profile-tabs{display:flex;gap:22px;border-bottom:1px solid color-mix(in srgb,currentColor 20%,transparent);margin:0 0 22px}
.profile-tabs button{color:inherit;background:none;border:0;border-bottom:1px solid transparent;padding:10px 0 12px;font:inherit;font-size:12px;opacity:.5;cursor:pointer;white-space:nowrap}
.profile-tabs button[aria-selected=true]{opacity:1;border-bottom-color:currentColor}
.profile-side-panel[hidden]{display:none}.profile-side-panel p,.profile-side-panel li{font-size:clamp(13px,1.05vw,16px);line-height:1.7;margin:0 0 16px}.profile-side-panel h4{font-size:22px;font-weight:500;letter-spacing:-.035em;margin:0 0 18px}.profile-side-panel ul{padding-left:16px;margin:0}
.profile-source-links{display:flex;gap:16px;flex-wrap:wrap;margin:24px 0 0;font-size:12px}.profile-source-links a{text-decoration:underline;text-underline-offset:4px}
.profile-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#faf9f6;isolation:isolate}
.profile-toolbar{height:80px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 30px;font-size:10px;letter-spacing:.1em;border-bottom:1px solid color-mix(in srgb,currentColor 12%,transparent);z-index:2}
.profile-toolbar>div{display:flex;gap:22px}.profile-toolbar button,.profile-controls button{background:none;border:0;color:inherit;font:inherit;cursor:pointer;padding:10px 0;letter-spacing:0}.profile-toolbar button{font-size:12px}.profile-toolbar b{font-weight:400}
.profile-field{position:relative;flex:1;min-height:0;overflow:hidden}
.profile-grid{position:absolute;inset:-20%;pointer-events:none;opacity:.42;background-image:linear-gradient(color-mix(in srgb,var(--blue) 16%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--blue) 16%,transparent) 1px,transparent 1px);background-size:64px 64px;transform:perspective(1000px) rotateX(12deg) rotateZ(-7deg) scale(1.15);mask-image:radial-gradient(ellipse,#000 20%,transparent 74%)}
.profile-field::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#faf9f6 0%,transparent 5%,transparent 95%,#faf9f6 100%)}
.profile-rail{position:relative;height:100%;display:grid;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-auto-columns:clamp(220px,20vw,310px);gap:26px 40px;align-items:center;padding:32px 44px 38px;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;scrollbar-width:none;box-sizing:border-box;outline-offset:-5px;touch-action:pan-x}
.profile-rail::-webkit-scrollbar{display:none}
.profile-float-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;max-height:100%;min-height:150px;padding:24px;text-align:left;background:#faf9f6ed;color:inherit;border:1px solid color-mix(in srgb,currentColor 15%,transparent);box-shadow:0 10px 32px #00000007;border-radius:2px;cursor:pointer;font:inherit;animation:profile-float 15s ease-in-out infinite;animation-delay:var(--float-delay);transition:box-shadow .3s,border-color .3s;overflow:hidden}
.profile-float-card:nth-child(4n+2){margin-left:24px}.profile-float-card:nth-child(4n+3){margin-left:-10px}
.profile-float-card:hover{border-color:color-mix(in srgb,currentColor 45%,transparent);box-shadow:0 14px 40px #00000010}
.profile-kicker{display:block;font-size:9px;letter-spacing:.1em;text-transform:uppercase;opacity:.55;margin:0 0 13px}
.profile-card-title{font-size:clamp(23px,2.1vw,33px);font-weight:500;letter-spacing:-.05em;line-height:1.08;display:block;padding-right:5px}
.profile-card-excerpt{font-size:12px;line-height:1.55;opacity:.7;margin-top:14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.profile-card-arrow{font-size:17px;margin-top:14px;align-self:flex-end;opacity:.55}
.profile-perspective{background:var(--blue);color:var(--cream);min-height:210px}.profile-perspective .profile-card-title{font-size:clamp(28px,2.6vw,40px)}
.profile-image-card{padding:0 0 17px;justify-content:flex-start}.profile-image-card>.profile-kicker{margin:14px 18px 8px}.profile-image-card>.profile-card-title{font-size:21px;padding:0 30px 0 18px}.profile-image-card>.profile-card-arrow{position:absolute;right:13px;bottom:14px;margin:0}
.profile-card-media{display:block;flex-shrink:1;min-height:65px;height:clamp(100px,16dvh,175px);width:100%;background:#f0eeea;overflow:hidden}.profile-card-media img{width:100%;height:100%;display:block;object-fit:contain}.profile-card-media.is-cover img{object-fit:cover}
.profile-controls{display:flex;justify-content:space-between;align-items:center;padding:0 30px;height:60px;flex-shrink:0;font-size:10px;border-top:1px solid color-mix(in srgb,currentColor 12%,transparent);z-index:2}.profile-controls>div{display:flex;gap:25px}.profile-controls button{font-size:22px;min-width:30px}
@keyframes profile-float{0%,100%{transform:translateY(-5px) rotate(var(--float-angle))}50%{transform:translateY(5px) rotate(calc(var(--float-angle)*-1))}}
.motion-paused .profile-float-card,.hover-paused .profile-float-card{animation-play-state:paused}
#profileNote{margin:auto;width:min(620px,calc(100vw - 32px));max-height:85dvh;padding:64px 44px 40px;border:1px solid color-mix(in srgb,var(--blue) 20%,transparent);border-radius:6px;background:var(--cream);color:var(--blue);overflow:auto;box-shadow:0 20px 80px #0002}
#profileNote::backdrop{background:#10101033;backdrop-filter:blur(7px)}.profile-note-close{position:absolute;right:22px;top:18px;background:none;border:0;font:inherit;font-size:12px;color:inherit;cursor:pointer;padding:8px}.profile-note-content h2{font-size:clamp(30px,4vw,48px);font-weight:500;letter-spacing:-.05em;line-height:1.05;margin:0 0 28px}.profile-note-content>p:not(.profile-kicker){font-size:16px;line-height:1.75}
@media(max-width:740px){
 .profile-shell{grid-template-columns:1fr;grid-template-rows:34dvh minmax(0,1fr)}
 .profile-fixed{display:grid;grid-template-columns:82px 1fr;gap:0 18px;padding:18px 22px;border-right:0;border-bottom:1px solid color-mix(in srgb,currentColor 24%,transparent)}
 .profile-photo{height:104px;width:82px;grid-row:1/3}.profile-fixed .team-name{padding:0 0 8px}.profile-fixed .team-name h3{font-size:27px}.profile-fixed .team-role{font-size:8px;margin-bottom:5px}.profile-tabs{gap:15px;margin-bottom:12px;align-self:start}.profile-tabs button{font-size:10px;padding:7px 0 9px}.profile-side-panels{grid-column:1/-1;padding-top:13px}.profile-side-panel p,.profile-side-panel li{font-size:12px;line-height:1.55}.profile-side-panel h4{font-size:19px}
 .profile-toolbar{height:48px;padding:0 20px;font-size:8px}.profile-toolbar>div{gap:16px}.profile-toolbar button{font-size:10px}
 .profile-rail{grid-auto-columns:220px;gap:20px 25px;padding:20px 24px;grid-template-rows:1fr}.profile-float-card{max-height:90%;padding:20px;min-height:180px}.profile-image-card{padding:0 0 18px}.profile-card-media{height:150px}.profile-card-title{font-size:27px}.profile-controls{height:44px;padding:0 20px;font-size:8px}.profile-float-card:nth-child(n){margin-left:0}
 #profileNote{padding:58px 24px 28px}.profile-note-content>p:not(.profile-kicker){font-size:14px}
}
@media(prefers-reduced-motion:reduce){#teamProfile[open],.profile-float-card{animation:none}.profile-photo{transition:none}}
body:has(#profileNote[open]) .profile-float-card,body:has(#projectDialog[open]) .profile-float-card{animation-play-state:paused}

.team-credits[hidden],.profile-float-card[hidden]{display:none!important}
.profile-filter-label{display:flex;align-items:center;gap:12px}.profile-filter-label>span{opacity:.5;text-transform:uppercase;font-size:9px}
.profile-filter{font:inherit;font-size:12px;letter-spacing:0;border:0;border-bottom:1px solid color-mix(in srgb,currentColor 25%,transparent);background:transparent;color:inherit;padding:8px 18px 8px 0;max-width:160px;cursor:pointer}.profile-filter option{color:#111;background:#faf9f6}
@media(max-width:740px){.profile-filter-label>span{display:none}.profile-filter{font-size:10px;max-width:125px}.profile-toolbar>div{gap:12px}}
/* Three motion studies share the same content and the fixed biography. */
.profile-main{position:relative}.profile-field{isolation:isolate}
.profile-grid{inset:0;transform:none;opacity:1;background:none;mask-image:radial-gradient(ellipse,#000 40%,#0006 100%);z-index:-2}
.profile-grain{position:absolute;inset:-15%;background:url('assets/hero-corner-grain.svg') repeat;background-size:150px;opacity:.15;pointer-events:none;mix-blend-mode:multiply;animation:profile-grain .6s steps(1) infinite;z-index:-1}
@keyframes profile-grain{0%,100%{transform:translate(0,0)}20%{transform:translate(-2%,3%)}40%{transform:translate(3%,-1%)}60%{transform:translate(-3%,-2%)}80%{transform:translate(1%,2%)}}
.profile-rail{display:block;padding:0;overflow:hidden;touch-action:pan-y;isolation:isolate}
.profile-float-card{position:absolute;left:0;top:0;padding:18px;max-height:28%;min-height:125px;animation:none;will-change:transform;transform-origin:center;border-color:color-mix(in srgb,currentColor 19%,transparent);box-shadow:0 6px 25px #00000008}
.profile-float-card:nth-child(n){margin:0}.profile-card-title{font-size:23px;line-height:1.08}.profile-kicker{font-size:8px;margin-bottom:9px}.profile-card-excerpt{font-size:11px;margin-top:10px;line-height:1.35}.profile-card-arrow{font-size:15px;margin-top:8px}
.profile-perspective{min-height:155px}.profile-perspective .profile-card-title{font-size:26px}
.profile-image-card{padding:0 0 14px}.profile-card-media{height:90px;min-height:65px}.profile-image-card>.profile-card-title{font-size:16px;padding-left:14px}.profile-image-card>.profile-kicker{margin:12px 14px 7px}
.profile-controls{height:66px}.profile-controls .profile-variants{gap:7px}.profile-variants button{font-size:11px;padding:8px 10px;border:1px solid transparent;border-radius:20px;opacity:.55;white-space:nowrap}.profile-variants button[aria-pressed=true]{border-color:color-mix(in srgb,currentColor 30%,transparent);opacity:1}
.profile-selected-category{display:block;font-size:10px;opacity:.6;text-transform:uppercase;letter-spacing:.09em;margin:5px 0 18px}
#profileNote{position:absolute;inset:80px 0 66px;margin:0;width:auto;max-width:none;max-height:none;border:0;border-radius:0;padding:86px clamp(25px,6vw,95px) 45px;background:#faf9f6f5;backdrop-filter:blur(14px);box-shadow:none;z-index:5;overflow:auto;overscroll-behavior:contain}
#profileNote[hidden]{display:none}#profileNote:not([hidden]){animation:profile-detail-arrive .35s ease both}
@keyframes profile-detail-arrive{from{opacity:0;transform:translateX(25px)}to{opacity:1;transform:none}}
#profileNote .profile-note-close{left:clamp(25px,6vw,95px);right:auto;top:24px}#profileNote .profile-note-content{max-width:900px;margin:auto}#profileNote .profile-note-content>h2{font-size:clamp(40px,5vw,72px);margin-top:35px}#profileNote .profile-note-content>p{max-width:48ch;font-size:18px}
#profileNote:has(.case-study){padding:30px 0 0}#profileNote .case-sheet{grid-template-columns:1fr;grid-template-areas:'heading' 'media' 'body' 'footer';padding:55px clamp(25px,4vw,65px) 35px}#profileNote .case-media{max-height:45dvh;height:40dvh;min-height:220px}#profileNote .case-media.diptych{height:auto;max-height:none}#profileNote .case-body{grid-template-columns:1fr 1fr;gap:30px}
.detail-open .profile-controls,.detail-open .profile-toolbar .profile-filter-label,.detail-open .profile-play{visibility:hidden}
.field-resting .profile-grain{animation-play-state:paused}
@media(max-height:650px) and (min-width:741px){.profile-float-card{max-height:43%}}
@media(max-width:740px){.profile-float-card{max-height:44%;min-height:110px;padding:13px}.profile-card-title{font-size:19px}.profile-perspective .profile-card-title{font-size:21px}.profile-perspective{min-height:130px}.profile-image-card{padding:0 0 10px}.profile-card-media{height:72px;min-height:40px}.profile-image-card>.profile-card-title{font-size:14px}.profile-card-arrow{margin-top:4px}.profile-controls{height:56px;padding:0 12px}.profile-controls .profile-variants{gap:0}.profile-controls .profile-variants button{font-size:9px;padding:8px}.profile-controls>div{gap:8px}.profile-controls button{min-width:24px}#profileNote{inset:48px 0 56px;padding:60px 24px 25px}#profileNote .profile-note-close{left:24px;top:15px}#profileNote .profile-note-content>h2{font-size:36px;margin-top:10px}#profileNote .profile-note-content>p{font-size:15px}#profileNote .case-body{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.profile-grain,#profileNote:not([hidden]){animation:none}.profile-float-card{will-change:auto}}

/* The selected profile direction: Drift, with linked work in the left column. */
.profile-field-label{font-size:10px;letter-spacing:.09em;text-transform:uppercase;opacity:.5}
.profile-selected-list{list-style:none;padding:0!important;margin:0!important}.profile-selected-list li{margin:0!important;border-bottom:1px solid color-mix(in srgb,currentColor 15%,transparent)}
.profile-selected-link{position:relative;display:block;width:100%;padding:16px 28px 12px 0;background:none;border:0;color:inherit;text-align:left;font:inherit;cursor:pointer}
.profile-selected-link strong{font-weight:500;font-size:17px}.profile-selected-link .profile-selected-category{margin:5px 0 0;font-size:9px;line-height:1.5}.profile-selected-arrow{position:absolute;right:1px;top:18px;opacity:.5}.profile-selected-link:hover .profile-selected-arrow{opacity:1}.profile-selected-link:focus-visible{outline:1px solid currentColor;outline-offset:3px}

#profileNote .profile-note-content>.profile-detail-descriptor{font-size:11px;line-height:1.6;letter-spacing:.09em;text-transform:uppercase;opacity:.65;margin:26px 0 16px;max-width:none}#profileNote .profile-detail-descriptor+h2{margin-top:0}

/* One stable control: return from a piece, then close the whole profile. */
#teamProfile[open]{animation:profile-arrive-opacity .25s ease}
@keyframes profile-arrive-opacity{from{opacity:0}to{opacity:1}}
#profileNote:not([hidden]){animation:profile-arrive-opacity .2s ease}
#profileNote{padding-top:28px;bottom:0}
#profileNote .profile-note-content>h2{margin-top:0}
#profileNote:has(.case-study){padding-top:0}
#profileNote .case-sheet{padding-top:28px}
.profile-toolbar>div{margin-left:auto}
@media(max-width:740px){
 #teamProfile{height:100svh}
 .profile-shell{grid-template-rows:58% minmax(0,1fr)}
 .profile-fixed{padding:48px 20px 18px;grid-template-columns:68px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);align-content:start;gap:0 14px}
 .profile-photo{width:68px;height:84px}
 .profile-fixed .team-name h3{font-size:25px}
 .profile-side-panels{padding-top:8px}
 .profile-side-panel p,.profile-side-panel li{font-size:13px;line-height:1.55}
 .profile-close{position:fixed;top:10px;right:20px;z-index:10;background:var(--cream)!important;padding:10px!important}
 .profile-toolbar{height:40px;padding:0 20px}
 .profile-controls{height:38px}
 #profileNote{inset:40px 0 0;padding:22px 20px}
 #profileNote .case-sheet{padding:22px 20px 28px}
 #profileNote .case-media{height:30svh;min-height:160px}
 #profileNote .profile-note-content>h2{font-size:30px}
 .profile-float-card{min-height:90px;max-height:85%}
}
@media(prefers-reduced-motion:reduce){#teamProfile[open],#profileNote:not([hidden]){animation:none}}

/* Keep the shared close/back control above both profile columns. */
.profile-close{position:absolute;top:24px;right:30px;z-index:10;border:0;background:var(--cream);color:inherit;font:inherit;font-size:12px;padding:10px;cursor:pointer}
.profile-toolbar{padding-right:165px}
@media(max-width:740px){.profile-toolbar{padding-right:20px}.profile-close{position:absolute;top:8px;right:10px;font-size:11px}}
/* A selected piece replaces the moving field without compositing it underneath. */
#profileNote{background:#faf9f6;backdrop-filter:none}
@media(max-width:740px){.detail-open #profileNote{inset:0}}

/* Keep the global close distinct from the mobile piece-level back action. */
@media(max-width:740px){.detail-open #profileNote{inset:40px 0 0}.detail-open .profile-toolbar{position:relative;z-index:4;background:#faf9f6}.detail-open .profile-filter-label{visibility:hidden}}

@media(max-width:740px){.detail-open .profile-play{visibility:visible}}

/* Profile links retain their person and colour edition, including from local previews. */
.profile-share{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 5px;font-size:11px}
.profile-share-button{appearance:none;background:none;border:0;border-bottom:1px solid currentColor;padding:5px 0;color:inherit;font:inherit;cursor:pointer}
.profile-share-button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.profile-share-status{opacity:.65}.profile-share-url{width:100%;box-sizing:border-box;font:inherit;color:inherit;background:transparent;border:1px solid currentColor;padding:8px}
.profile-share-url[hidden]{display:none}
