:root {
  --portfolio-ink: #202020;
  --portfolio-border: #dddcd4;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--paper);
}
.top-nav a[aria-current=page] {color: var(--portfolio-ink)}
.top-nav a[aria-current=page]:after {height: 2px; background: var(--portfolio-ink)}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  margin: clamp(24px, 3.65vw, 58px) 0 clamp(34px, 4.3vw, 68px);
}
.hero-copy {min-width: 0}
.hero h1 {
  margin:0;
  font-size:clamp(1.42rem,2.75vw,3.15rem);
  font-weight: 840;
  letter-spacing:-.046em;
  line-height:1.21;
  color: var(--portfolio-ink);
}
.hero h1 > span {display:block}
.hero-copy > p {
  max-width:35ch;
  margin: clamp(18px, 1.8vw, 29px) 0 0;
  font-size: clamp(1rem, 1.23vw, 1.18rem);
  line-height: 1.72;
  color: #55534e;
}
.hero-exhibit {
  position: relative;
  aspect-ratio: 1.68;
  border:0;
  border-radius:0;
  overflow:visible;
  background:transparent;
  box-shadow:none;
  isolation:isolate;
}
.hero-art {position: absolute; inset: 0}

.workspace {
  grid-template-columns: clamp(166px, 14vw, 204px) minmax(0,1fr);
  gap: clamp(25px, 3.6vw, 56px);
  scroll-margin-top: 92px;
}
.sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100dvh - 113px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.side-heading {padding-bottom: 13px}
.nav-family {margin-top:7px;border-bottom:1px solid #e3e0d9;padding-bottom:5px}
.nav-family summary {display:flex;align-items:center;gap:7px;min-height:40px;padding:6px 5px;cursor:pointer;list-style:none;color:#5b5a53;font-size:.83rem;font-weight:650;user-select:none}
.nav-family summary::-webkit-details-marker {display:none}
.nav-family summary small {margin-left:auto;font:11px var(--mono);color:#7a766d}
.nav-family summary .ico {width:13px;height:13px;transition:rotate .16s}
.nav-family[open] summary {color:#30392c}
.nav-family[open] summary .ico {rotate:90deg}
.nav-family summary:hover {color:#352a49;background:#efede7;border-radius:5px}
.nav-children {padding:1px 0 6px 4px}
@media(prefers-reduced-motion:reduce){.nav-family summary .ico{transition:none}}
.side-link {min-height: 34px}
.side-link.active, .side-link.active .num {color: #2e3522}
.side-link.active {background: #e8efcc}

.works-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-top: 1px solid var(--portfolio-border);
  padding-top: 18px;
}
.works-heading h2 {
  margin: 0;
  color: var(--portfolio-ink);
  font-size: clamp(1.95rem, 3.15vw, 3.7rem);
  font-weight: 810;
  line-height: 1.15;
  letter-spacing: -.055em;
}
.works-en {
  margin: 5px 0 0;
  color: #68645d;
  font: italic clamp(.92rem, 1.5vw, 1.33rem) Georgia, "Times New Roman", serif;
}
.works-tools {display: flex; align-items: center; gap: 8px; padding-bottom: 2px; flex: none}
.work-lab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--portfolio-border);
  border-radius: 6px;
  color: #504e47;
  font-size: .83rem;
  white-space: nowrap;
}
.work-lab-link:hover {background: #efeee6}
.work-lab-link .ico {width: 15px; height: 15px}

.works-filters {margin: 20px 0 17px; gap: 7px}
.works-filters .filter-chip {font-size: .82rem; min-height: 33px; padding: 5px 13px}
.works-filters .filter-chip[aria-pressed=true] {color: white; background: #282826; border-color: #282826}
.works-grid {
  --work-gap: clamp(14px, 1.6vw, 22px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(15.75rem, calc((100% - 2 * var(--work-gap)) / 3))), 1fr));
  gap: clamp(20px, 2.4vw, 34px) var(--work-gap);
}
.work-card {
  --work-height: clamp(146px, 12vw, 176px);
  position: relative;
  min-width: 0;
}
.works-list {grid-template-columns: minmax(0, 36rem)}
.work-card[data-card^=buttons-] {--work-height: clamp(114px, 9.3vw, 144px)}
.work-card[data-card^=search-] {--work-height: clamp(124px, 9.7vw, 150px)}
.work-card .stage {
  height: auto;
  border-radius: 8px;
  border: 1px solid #302b4a16;
}
.work-card .stage-body {
  height: auto;
  min-height: var(--work-height);
  padding: 12px 14px;
  pointer-events: none;
}
.work-card[data-card^=buttons-] .stage-body:has(> :is(.sp-btn, .sp-stack)) {
  transform: scale(1.12);
  transition: transform .24s ease;
}
.work-card[data-card^=buttons-]:is(:hover, :focus-within) .stage-body:has(> :is(.sp-btn, .sp-stack)) {transform: scale(1.17)}
.work-card[data-card^=buttons-] .stage:has(.sp-glass):before {
  width: clamp(91px, 8.5vw, 125px);
  height: clamp(91px, 8.5vw, 125px);
}
.work-card[data-card^=buttons-] .stage:has(.sp-glass):after {
  width: clamp(65px, 6vw, 90px);
  height: clamp(65px, 6vw, 90px);
}
.work-open.detail-link {
  display: block;
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
.work-open span {
  position: absolute;
  right: 9px;
  top: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #37322d18;
  background: #faf9f4ef;
  color: #242420;
  transition: background .2s ease, color .2s ease;
}
.work-open .ico {width: 17px; height: 17px}
.work-open:hover span, .work-open:focus-visible span {background: #262624; color: white}
.work-caption {
  padding-top: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.work-caption h3 {margin: 0; font-size: clamp(1rem, 1.22vw, 1.25rem); font-weight: 720; line-height: 1.3; letter-spacing: -.025em}
.work-caption p {margin: 3px 0 0; color: #625e56; font-size: .79rem; line-height: 1.4}
.work-caption .bookmark {position: relative; z-index: 2; min-width: 36px; min-height: 36px; margin-top: -3px}
.work-revealed {animation: work-arrive .42s ease-out both}
@keyframes work-arrive {from {opacity: .57; transform: translateY(12px)} to {opacity: 1; transform: translateY(0)}}

@media (max-width: 940px) {
  .hero {gap: 18px}
  .works-heading h2 {font-size: clamp(1.9rem, 4.3vw, 3rem)}
}
@media (max-width: 700px) {
  .hero {display: flex; flex-direction: column; align-items: stretch; gap: 21px; margin: 25px 0 36px}
  .hero h1 {font-size:clamp(1.42rem,5.1vw,2.38rem)}
  .hero-copy > p {max-width: none; font-size: .96rem; margin-top: 12px}
  .hero-exhibit {aspect-ratio:1.5}
  .workspace {scroll-margin-top: 69px}
  .mobile-index {position: sticky; top: 55px; z-index: 6; margin-bottom: 17px; background: var(--paper)}
  .works-heading {padding-top: 13px}
  .works-heading h2 {font-size: clamp(1.7rem, 5.6vw, 2.4rem)}
}
@media (max-width: 500px) {
  .works-filters {margin: 14px 0 13px}
}
@media (max-width: 430px) {
  .workspace {scroll-margin-top: 79px}
  .mobile-index {top: 66px}
}
@media (prefers-reduced-motion: reduce) {
  .work-revealed {animation: none}
  .work-card .stage-body, .work-open span {transition: none}
}
