/* RYBA LAB — shared participant profile (artists & scientists) */
.profile{color:var(--blue);background:var(--paper)}
.profile a{color:var(--blue)}
.profile-back{display:inline-flex;align-items:center;gap:8px;line-height:1;margin:28px 6% 0;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid transparent;transition:color .3s}
.profile-back:hover{color:#c34d00}
.profile-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding:28px 6% 56px}
.profile-head{display:flex;flex-direction:column;gap:14px}
.profile-role{margin:0;color:var(--blue)}
.profile-name{margin:0;font-size:clamp(42px,7.2vw,100px);font-weight:700;line-height:.98;letter-spacing:-.015em;text-wrap:balance;overflow-wrap:anywhere}
.profile-practice{margin:0;font-size:clamp(18px,1.6vw,23px);line-height:1.35;letter-spacing:-.015em;color:var(--ink);max-width:640px}
.profile-portrait{margin:0;max-width:340px}
.profile-portrait img{display:block;width:100%;height:auto}
.profile-portrait figcaption{font-size:12px;line-height:1.5;color:#555;margin-top:10px}
.profile-body{display:flex;flex-direction:column;gap:26px;max-width:640px}
.profile-bio p{margin:0 0 1.1em;font-size:18px;line-height:1.55;color:var(--ink)}
.profile-bio p:last-child{margin-bottom:0}
.profile-participation{margin:0;display:flex;flex-wrap:wrap;gap:6px 8px;font-size:16px;line-height:1.4;border-top:1px solid var(--line);padding-top:18px}
.profile-participation a{border-bottom:1px solid currentColor;padding-bottom:1px;transition:color .3s}
.profile-participation a:hover{color:#c34d00}
.profile-section{padding:40px 6% 56px}
.profile-section>h2{margin:0 0 32px;font-size:18px;font-weight:700;letter-spacing:-.02em;border-top:1px solid var(--line);padding-top:20px}
.profile-works{display:grid;grid-template-columns:minmax(0,1fr);gap:48px 40px}
.work-card{display:flex;flex-direction:column;gap:12px;min-width:0}
.work-image{display:block;overflow:hidden;background:#eee}
.work-image img{display:block;width:100%;height:auto;transition:transform .6s ease}
.work-image:hover img{transform:scale(1.02)}
.work-card h3{margin:6px 0 0;font-size:clamp(24px,2.3vw,34px);font-weight:700;line-height:1.1;letter-spacing:-.03em;text-wrap:balance}
.work-meta{margin:0;font-size:14px;line-height:1.5;color:#555}
.work-text{margin:0;font-size:17px;line-height:1.5;color:var(--ink);max-width:560px}
.work-link{align-self:flex-start;display:inline-flex;align-items:baseline;gap:10px;margin-top:4px;font-size:15px;border-bottom:1px solid currentColor;padding-bottom:2px;transition:color .3s}
.work-link:hover{color:#c34d00}
.profile-texts{list-style:none;margin:0;padding:0;max-width:760px}
.profile-texts a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:24px;row-gap:6px;border-bottom:1px solid var(--line);padding:18px 0;line-height:1.35;transition:color .3s}
.profile-texts a::after{content:"";grid-column:2;grid-row:1;align-self:center;width:15px;height:15px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat}
.profile-texts a:hover{color:#c34d00}
.text-title{font-size:18px;grid-column:1;grid-row:1}
.text-note{grid-column:1;grid-row:2;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#555}
@media(min-width:801px){
  .profile-back{margin:36px 5% 0}
  .profile-hero{grid-template-columns:minmax(260px,420px) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:7%;row-gap:40px;align-items:start;padding:44px 5% 80px}
  .profile-portrait{grid-column:1;grid-row:1/3;max-width:none}
  .profile-head{grid-column:2;grid-row:1}
  .profile-body{grid-column:2;grid-row:2}
  .profile-hero--text{grid-template-columns:minmax(0,1fr)}
  .profile-hero--text .profile-head,.profile-hero--text .profile-body{grid-column:1}
  .profile-hero--text .profile-head{grid-row:1}
  .profile-hero--text .profile-body{grid-row:2}
  .profile-section{padding:60px 5% 85px}
  .profile-section>h2{font-size:20px;margin-bottom:44px}
  .profile-works{grid-template-columns:repeat(auto-fill,minmax(340px,1fr));max-width:1200px}
  .profile-works[data-count="1"]{max-width:760px}
  .text-title{font-size:19px}
}
@media(min-width:1800px){.profile-back{margin-left:max(5%,calc((100vw - 1600px)/2))}.profile-hero,.profile-section{padding-left:max(5%,calc((100vw - 1600px)/2));padding-right:max(5%,calc((100vw - 1600px)/2))}}

/* Stroke arrows instead of glyphs */
.work-link span[aria-hidden],.profile-participation a .arrow{display:none}
.work-link::after{content:"";display:inline-block;width:14px;height:14px;margin-left:8px;vertical-align:-2px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat}
.profile-participation a{border-bottom:0}
.profile-participation a>span{border-bottom:1px solid currentColor;padding-bottom:1px}

/* Bio: the first paragraph reads as a lead; Sofia's education/residencies/grants become a fact list. */
.profile-bio p:first-child{font-size:clamp(19px,1.45vw,22px);line-height:1.5;letter-spacing:-.01em}
.profile-facts{margin:0;display:grid;gap:14px;border-top:1px solid var(--line);padding-top:18px}
.profile-facts div{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.profile-facts dt{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--blue)}
.profile-facts dd{margin:0;font-size:16px;line-height:1.5;color:var(--ink)}
@media(min-width:801px){.profile-facts div{grid-template-columns:150px minmax(0,1fr);gap:16px}}
.profile-portrait figcaption:empty{display:none}

.profile-photos{margin-top:clamp(48px,6vw,88px);max-width:1600px}
.profile-works[data-count="1"] .work-image img{max-height:min(80vh,900px);width:auto;max-width:100%;margin:0 auto}

/* Artist texts */
.artist-text{max-width:680px}
.artist-text p{margin:0 0 1.15em;font-size:18px;line-height:1.65;color:var(--ink)}
.artist-text p:first-child{font-size:clamp(20px,1.6vw,23px);line-height:1.5;letter-spacing:-.01em}
.artist-text p:last-child{margin:1.6em 0 0;font-size:clamp(20px,1.6vw,23px);line-height:1.45;font-weight:700;color:var(--blue);letter-spacing:-.015em}
.verse-note{max-width:640px;margin:0 0 36px;font-size:16px;line-height:1.5;color:#555}
.verses{columns:3 280px;column-gap:56px;max-width:1300px}
.verse{break-inside:avoid;margin:0 0 40px;padding-top:16px;border-top:1px solid var(--line)}
.verse p{margin:0 0 .9em;font-size:17px;line-height:1.6;color:var(--ink)}
.verse p:last-child{margin-bottom:0}
.visual-poem{margin:0;max-width:720px;border:1px solid var(--line);background:#fff}
.visual-poem img{display:block;width:100%;height:auto}
.profile-works[data-count="1"] .work-image{background:none}

/* Abyss work + lab interview on participant pages */
.abyss-work{max-width:720px}
.abyss-work+.abyss-work{margin-top:56px;padding-top:32px;border-top:1px solid var(--line)}
.abyss-work h3{margin:0;font-size:clamp(26px,2.6vw,38px);font-weight:700;line-height:1.08;letter-spacing:-.03em;text-wrap:balance}
.abyss-work .work-meta{margin-top:10px}
.work-with{margin:8px 0 0;font-size:15px;color:var(--blue)}
.work-body{margin-top:26px}
.work-body p{margin:0 0 1.1em;font-size:18px;line-height:1.65;color:var(--ink)}
.work-body h4{margin:2em 0 .6em;font-size:19px;font-weight:700;letter-spacing:-.01em;color:var(--blue)}
.work-divider{border:0;margin:1.6em 0;height:auto;text-align:left}
.work-divider::before{content:"* * *";letter-spacing:.4em;color:#8a93a3;font-size:14px}
.work-notes{margin:2em 0 0;padding:18px 0 0 1.2em;border-top:1px solid var(--line);font-size:14px;line-height:1.5;color:#555}
.section-note{max-width:640px;margin:-12px 0 32px;font-size:15px;line-height:1.5;color:#555}
.lab-interview{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;max-width:1200px}
.lab-cover{margin:0;max-width:340px}
.lab-cover img{display:block;width:100%;height:auto}
.qa{display:flex;flex-direction:column;gap:30px;max-width:720px}
.qa-item{border-top:1px solid var(--line);padding-top:16px}
.qa-q{margin:0 0 10px;font-size:19px;font-weight:700;line-height:1.3;letter-spacing:-.01em;color:var(--blue)}
.qa-a p{margin:0 0 .9em;font-size:17px;line-height:1.6;color:var(--ink)}
.qa-a p:last-child{margin-bottom:0}
@media(min-width:801px){.lab-interview{grid-template-columns:300px minmax(0,1fr);column-gap:7%}.lab-cover{position:sticky;top:100px;align-self:start}}
.profile-participation .sep{margin-left:-6px}
