/* A featured model, quieter supporting shelves, and a personal editorial spread. */
html { scroll-padding-top: var(--anchor-top,7.5rem); }
body[data-work-shelves='true'] #machine-learning { grid-column: 1 / -1; }
body[data-work-shelves='true'] #research { grid-column: auto; }
body[data-work-shelves='true'] #research .work-group__cards { grid-auto-columns: 86%; gap: 1.2rem; }
body[data-work-shelves='true'] #machine-learning .work-group__cards { grid-auto-columns: 100%; gap: 1.5rem; }
body[data-work-shelves='true'] #machine-learning .project-card { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid #ffffff70; border-radius: 8px; background: #203e50; }
body[data-work-shelves='true'] #machine-learning .concept-preview { display: grid; align-items: stretch; background: #e6eef0; }
body[data-work-shelves='true'] #machine-learning .concept-cover { height: 100%; min-height: 0; aspect-ratio: auto; }
body[data-work-shelves='true'] #machine-learning .concept-cover__drawing { object-fit: contain; }
body[data-work-shelves='true'] #machine-learning .experience-card__body { justify-content: center; padding: clamp(1.3rem,2vw,1.6rem); background: radial-gradient(ellipse at 100% 0,#42667555,transparent 65%),#203e50; color: #f3f5f1; }
body[data-work-shelves='true'] #machine-learning .project-card h4 { min-height: 0; margin-bottom: .85rem; font: 400 clamp(1.8rem,2.7vw,2.35rem)/1.12 Georgia,serif; letter-spacing: -.035em; }
body[data-work-shelves='true'] #machine-learning .project-card__meta { color: #d1e3e6; margin-bottom: .85rem; font-size: .7rem; }
body[data-work-shelves='true'] #machine-learning .project-card__meta > span { color: #b7ccd5; }
body[data-work-shelves='true'] #machine-learning .project-card__description { display: block; max-width: 46ch; color: #d9e5e7; font-size: .86rem; margin-bottom: 1rem; }
body[data-work-shelves='true'] #machine-learning .research-card__status { color: #b8d7d3; border-color: #a8cfc7; }
body[data-work-shelves='true'] #machine-learning .project-card__footer { margin-top: .25rem; gap: 1rem; }
body[data-work-shelves='true'] #machine-learning .tag-row span { color: #bdd1da; }
body[data-work-shelves='true'] #machine-learning .project-card__action { width: fit-content; min-height: 2.5rem; gap: 1.4rem; padding: .6rem .85rem; border: 1px solid #e2eced; border-radius: 4px; background: #f2f4ef; color: #1e4055; }
body[data-work-shelves='true'] #machine-learning .project-card__action:hover { background: #dcecf0; }
body[data-work-shelves='true'] #machine-learning .work-shelf__thumbnails button { width: 9rem; }
body[data-work-shelves='true'] #research .project-card h4 { font-size: 1.7rem; }
body[data-work-shelves='true'] #research .concept-cover { aspect-ratio: 760 / 420; }
body[data-work-shelves='true'] .work-shelf__thumbnails { align-items: flex-start; }

/* A little more space belongs to people and activity than to interface chrome. */
body[data-mode='animated'] .interest-board { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 1.3rem; }
body[data-mode='animated'] .interest-card { position: relative; order: 0; grid-row: auto; min-width: 0; padding: 1.7rem; border-radius: 6px; transition: box-shadow 300ms ease,transform 300ms ease; }
body[data-mode='animated'] .interest-card--theatre { grid-column: 1 / 8; grid-row: 1; padding: 1.8rem 2rem; border: 1px solid #c0a7a74d; border-top: 3px solid #a76c7e; background: linear-gradient(90deg,#eadfe133 0 12px,transparent 12px),#fffaf3; box-shadow: 0 8px 28px #52323a08; }
body[data-mode='animated'] .interest-card--theatre h3 { margin: .25rem 0 .45rem; font-size: 2.1rem; }
body[data-mode='animated'] .interest-card--theatre .interest-card__symbol { float: right; width: 2.8rem; height: 2.8rem; margin: 0; border-radius: 50%; overflow: hidden; }
body[data-mode='animated'] .interest-card--theatre .interest-card__eyebrow { margin-bottom: 0; font-size: .6rem !important; }
body[data-mode='animated'] .interest-card__credits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 1.5rem; row-gap: .7rem; margin-block: 1.5rem 1rem; }
body[data-mode='animated'] .interest-card__credits li { align-items: start; gap: .6rem; padding: .6rem 0 .7rem; border-block: 1px solid #b69b9a55; }
body[data-mode='animated'] .interest-card__credits li::before { display: none; }
body[data-mode='animated'] .interest-card__credits li > span:first-child { font-family: Georgia,'Songti SC','Noto Serif CJK SC',serif; font-size: 1.1rem; }
body[data-mode='animated'] .interest-card__credits li > span:last-child { color: #846675; font: italic .84rem Georgia,serif; }
body[data-mode='animated'] .interest-card__credits small { font: .6rem/1.5 -apple-system,BlinkMacSystemFont,sans-serif; }
body[data-mode='animated'] .interest-card--theatre .interest-card__note { margin: .8rem 0 1rem; max-width: 65ch; font-size: .78rem; }
body[data-mode='animated'] .interest-card--soula { grid-column: 8 / 13; grid-row: 1; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; border: 1px solid #aaa4c44d; background: linear-gradient(140deg,#e7e3f4,#edf3f2); }
body[data-mode='animated'] .interest-card--soula::before { display: none; }
body[data-mode='animated'] .interest-card--soula .interest-card__symbol { width: 2.5rem; height: 2.5rem; margin-bottom: .6rem; border-radius: 4px; overflow: hidden; }
body[data-mode='animated'] .interest-card--soula h3 { margin-top: 0; font-size: 1.8rem; }
body[data-mode='animated'] .interest-card--soula p { max-width: 36ch; margin-bottom: 1.3rem; font-size: .82rem; }
body[data-mode='animated'] .interest-card--soula a { width: fit-content; margin-top: auto; }
.soula-staff { position: absolute; z-index: -1; right: -1rem; bottom: 1rem; width: 110%; height: auto; color: #8e91b0; opacity: .24; pointer-events: none; }
body[data-mode='animated'] .interest-card--running { grid-column: 1 / 6; grid-row: 2; display: flex; flex-direction: column; gap: .5rem; overflow: hidden; border: 1px solid #a1b7a14d; background: #eff4e9; }
body[data-mode='animated'] .interest-card--running::after { position: absolute; top: 0; left: 1.4rem; right: 1.4rem; height: 4px; content: ''; background: repeating-linear-gradient(90deg,#7d967b 0 3px,transparent 3px 8px); opacity: .55; }
body[data-mode='animated'] .interest-card--running .interest-card__symbol { float: right; margin: 0; }
body[data-mode='animated'] .interest-card--running h3 { margin-bottom: .45rem; font-size: 1.7rem; }
body[data-mode='animated'] .interest-card__running-route { margin-bottom: 1.15rem; }
body[data-mode='animated'] .running-stats { gap: .8rem 1.6rem; }
body[data-mode='animated'] .running-stats > div:nth-child(2) dd { font-size: clamp(2.5rem,4vw,3.5rem); }
body[data-mode='animated'] .running-preview { display: block !important; align-self: auto; width: 100%; margin-top: auto; padding-top: 1rem; aspect-ratio: auto; border-radius: 0; border-top: 1px dashed #829b8770; box-shadow: none; background: none; }
body[data-mode='animated'] .running-preview img { display: none; }
body[data-mode='animated'] .running-preview__caption { position: static; padding: 0; background: none; color: #45664d; font-size: .67rem; text-align: left; }
body[data-mode='animated'] .interest-card--gaming { grid-column: 6 / 10; grid-row: 2; border: 1px solid #59617d; background: radial-gradient(ellipse at 50% 48%,#49537455,transparent 70%),#292f47; }
body[data-mode='animated'] .interest-card--gaming h3 { margin-top: .35rem; }
body[data-mode='animated'] .interest-card__symbol--valorant { top: 1.7rem; right: 1.5rem; width: 2.3rem; height: 1.3rem; }
body[data-mode='animated'] .interest-card__stats { gap: .7rem; margin-top: 1.5rem; }
body[data-mode='animated'] .interest-card__stats dd { font-size: .86rem; }
body[data-mode='animated'] .interest-card__rank-badge { width: 4.2rem; height: 4.2rem; }
body[data-mode='animated'] .interest-card--chess { grid-column: 10 / 13; grid-row: 2; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #c7bba74d; color: #514c44; background-color: #f5eee3; background-image: linear-gradient(45deg,#a7937620 25%,transparent 25%),linear-gradient(-45deg,#a7937620 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#a7937620 75%),linear-gradient(-45deg,transparent 75%,#a7937620 75%); background-size: 3rem 3rem; background-position: 0 0,0 1.5rem,1.5rem -1.5rem,-1.5rem 0; }
body[data-mode='animated'] .interest-card--chess h3 { margin-top: .3rem; font-size: 1.7rem; }
body[data-mode='animated'] .interest-card--chess { min-height: 0; }
body[data-mode='animated'] .interest-card--chess::before { display: none; }
body[data-mode='animated'] .interest-card--chess .interest-card__symbol { position: static; order: -1; width: 3rem; height: 3rem; margin: 0 0 .8rem; mix-blend-mode: multiply; }
body[data-mode='animated'] .interest-card--chess .chess-rating { margin: .4rem 0 0; font: 400 2.3rem/1.15 Georgia,serif; letter-spacing: -.04em; }
body[data-mode='animated'] .interest-card--chess .chess-caption { margin: .45rem 0 1rem; font-size: .73rem; }
body[data-mode='animated'] .interest-card--chess a { margin-top: auto; font-size: .69rem; }
@media(hover:hover) {
  body[data-mode='animated'] .interest-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px #193d5b0e; }
  body[data-mode='animated'] .interest-card--gaming:hover { box-shadow: 0 12px 26px #15213c25; }
}
@media(max-width:1000px) {
  body[data-mode='animated'] .interest-card--theatre { grid-column: 1 / 8; }
  body[data-mode='animated'] .interest-card--soula { grid-column: 8 / 13; }
  body[data-mode='animated'] .interest-card--running { grid-column: 1 / 7; }
  body[data-mode='animated'] .interest-card--gaming { grid-column: 7 / 13; }
  body[data-mode='animated'] .interest-card--chess { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 1rem; padding: 1.2rem 1.7rem; }
  body[data-mode='animated'] .interest-card--chess .interest-card__symbol { margin: 0; }
  body[data-mode='animated'] .interest-card--chess h3 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
  body[data-mode='animated'] .interest-card--chess .chess-rating,body[data-mode='animated'] .interest-card--chess .chess-caption,body[data-mode='animated'] .interest-card--chess a { margin: 0; }
}
@media(max-width:760px) {
  body[data-work-shelves='true'] #machine-learning .project-card { grid-template-columns: 1fr; }
  body[data-work-shelves='true'] #machine-learning .concept-cover { height: auto; min-height: 0; aspect-ratio: 760 / 420; }
  body[data-work-shelves='true'] #machine-learning .project-card h4 { font-size: 1.9rem; }
  body[data-work-shelves='true'] #machine-learning .experience-card__body { padding: 1.5rem; }
  body[data-work-shelves='true'] #machine-learning .project-card__description { font-size: .82rem; }
  body[data-mode='animated'] .interest-card { padding: 1.5rem; }
  body[data-mode='animated'] .interest-card--theatre { grid-column: 1 / -1; grid-row: 1; }
  body[data-mode='animated'] .interest-card--soula { grid-column: 1 / -1; grid-row: 2; min-height: 17rem; }
  body[data-mode='animated'] .interest-card--running { grid-column: 1 / 7; grid-row: 3; }
  body[data-mode='animated'] .interest-card--gaming { grid-column: 7 / 13; grid-row: 3; }
  body[data-mode='animated'] .interest-card--chess { grid-row: 4; }
}
@media(max-width:520px) {
  body[data-work-shelves='true'] #research { grid-column: 1 / -1; }
  body[data-mode='animated'] .interest-board { grid-template-columns: 1fr; }
  body[data-mode='animated'] .interest-card { grid-column: 1 / -1; grid-row: auto; }
  body[data-mode='animated'] .interest-card--theatre { padding: 1.5rem; }
  body[data-mode='animated'] .interest-card__credits { column-gap: 1rem; }
  body[data-mode='animated'] .interest-card__credits li > span:first-child { font-size: 1rem; }
  body[data-mode='animated'] .interest-card--chess { grid-template-columns: auto 1fr auto; gap: .8rem; }
  body[data-mode='animated'] .interest-card--chess .chess-caption { grid-column: 2; }
  body[data-mode='animated'] .interest-card--chess a { grid-column: 3; grid-row: 1 / 3; }
  body[data-mode='animated'] .interest-card--chess .chess-rating { font-size: 2rem; }
  body[data-mode='animated'] .interest-card--chess .interest-card__symbol { grid-row: 1 / 3; }
}
@media(max-width:380px) {
  body[data-mode='animated'] .interest-card__credits { grid-template-columns: 1fr; row-gap: .4rem; }
  body[data-mode='animated'] .interest-card--theatre h3 { font-size: 1.7rem; }
}
