:root {
  --paper: #ffffff;
  --ink: #21131d;
  --muted: #1f1b1e;
  --line: #eee8ed;
  --accent: #9c1717;
  --accent-soft: #f8f2f2;
  --panel: #ffffff;
  --focus: #315f85;
  --body-font: "Spectral", Georgia, "Times New Roman", serif;
  --display-font: var(--body-font);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  line-height: 1.55;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 42px;
}

.masthead {
  padding-bottom: 38px;
  text-align: left;
}

.mobile-topbar {
  display: none;
}

.kicker {
  display: none;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 2.65vw, 2.35rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand-home-link {
  color: inherit;
  text-decoration: none;
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: min(100%, 760px);
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
  margin-top: 1px;
}

.brand-text {
  padding-top: 0;
}

.tagline {
  max-width: min(100%, 760px);
  margin: 10px 0 0;
  color: #000000;
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  font-weight: 400;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: start;
  padding-top: 0;
}

.sidebar {
  position: sticky;
  top: 28px;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 0;
  padding-right: 0;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-link {
  min-height: auto;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--display-font);
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: transparent;
  transform: translateX(4px);
}

.nav-link:focus-visible,
.icon-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.social-links {
  display: flex;
  gap: 12px;
  padding-top: 44px;
}

.icon-link {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.icon-link:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.icon-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.com-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.page-panel {
  min-height: 320px;
  padding: 0;
  border: 0;
  background: transparent;
}

.page-label {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-panel h2 {
  max-width: 780px;
  margin: 0 0 22px;
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.02;
}

.page-panel p {
  max-width: 720px;
  margin: 0 0 9px;
  color: #000000;
  font-size: 1.08rem;
  text-align: justify;
}

.bio-link {
  color: var(--accent);
  text-decoration: none;
}

.bio-link:hover {
  color: var(--accent);
}

.page-panel .page-intro-large {
  max-width: 840px;
  margin: 0 0 clamp(42px, 7vw, 76px);
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.08;
}

.home-logo-stage {
  width: min(230px, 48vw);
  margin: 0 auto clamp(26px, 4vw, 42px);
  opacity: 0;
  transform: translateY(10px) scale(0.965);
  animation: homeLogoReveal 1800ms ease-out 180ms forwards;
}

.home-logo-stage img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes homeLogoReveal {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.955);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transform: translateY(28px);
}

.home-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(300px, 34vw);
  max-height: min(330px, 56vh);
  object-fit: contain;
}

.home-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.home-doodle {
  display: flex;
  justify-content: center;
  margin: 0 auto clamp(12px, 2vw, 20px);
}

.home-doodle svg {
  width: min(520px, 76vw);
  height: auto;
  display: block;
}

.doodle-line,
.doodle-accent {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle-line {
  stroke: #151313;
  stroke-width: 4.2;
}

.doodle-accent {
  stroke: var(--accent);
  stroke-width: 5;
}

.doodle-line path,
.doodle-accent path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawDoodle 2600ms ease forwards;
}

.doodle-slow path {
  animation-duration: 3200ms;
}

.doodle-line path:nth-child(2n) {
  animation-delay: 140ms;
}

.doodle-line path:nth-child(3n) {
  animation-delay: 280ms;
}

.doodle-line path:nth-child(4n) {
  animation-delay: 420ms;
}

.doodle-accent path {
  animation-delay: 980ms;
  animation-duration: 1800ms;
}

@keyframes drawDoodle {
  to {
    stroke-dashoffset: 0;
  }
}

#page-content.is-home-page {
  display: flex;
  min-height: clamp(300px, 48vh, 500px);
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

#page-content.is-home-page .home-logo-stage {
  width: min(118px, 28vw);
  margin: 0 auto 26px;
  opacity: 1;
  transform: none;
  animation: none;
}

.page-panel .home-intro {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--display-font);
  font-size: clamp(1.22rem, 1.7vw, 1.58rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}

.page-panel .home-intro + .home-intro {
  max-width: 680px;
  margin-top: 24px;
  font-family: var(--body-font);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.58;
}

.home-section-links {
  display: grid;
  max-width: 780px;
  margin-top: clamp(42px, 7vw, 72px);
  border-top: 1px solid var(--line);
}

.home-section-link {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, padding-left 160ms ease;
}

.home-section-link span {
  font-family: var(--display-font);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-section-link small {
  align-self: center;
  color: #000000;
  font-size: 0.98rem;
  line-height: 1.35;
}

.home-section-link:hover {
  padding-left: 8px;
  color: var(--accent);
}

.selected-work {
  display: grid;
  gap: 22px;
  max-width: 980px;
  padding-top: clamp(8px, 2vw, 18px);
  border-top: 1px solid var(--line);
}

.selected-work-header h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.selected-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.selected-work-item {
  border-bottom: 1px solid var(--line);
}

.selected-work-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.selected-work-link {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
  min-height: 210px;
  border: 0;
  padding: clamp(18px, 3vw, 28px);
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.selected-work-link:hover strong,
.selected-work-link:hover em {
  color: var(--accent);
}

.selected-work-image {
  display: block;
  align-self: stretch;
  min-height: 150px;
  background: #fbfaf8;
  overflow: hidden;
}

.selected-work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03);
}

.selected-work-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.selected-work-text strong {
  font-family: var(--display-font);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.02;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.selected-work-text small {
  max-width: 24rem;
  color: #000000;
  font-size: 0.98rem;
  line-height: 1.38;
}

.selected-work-text em {
  color: var(--accent);
  font-size: 0.92rem;
  font-style: normal;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.inline-link {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.inline-link:hover {
  color: var(--accent);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 940px;
  margin-top: 30px;
  align-items: stretch;
}

.book-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  border: 1px solid #eee9ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(33, 19, 29, 0.045);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.book-card:hover {
  box-shadow: 0 14px 34px rgba(33, 19, 29, 0.08);
  transform: translateY(-2px);
}

.book-cover-frame {
  display: grid;
  aspect-ratio: 2 / 3;
  min-height: 0;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #fbfaf9;
  padding: 16px;
}

.book-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-details {
  display: flex;
  flex: 1;
  min-height: 400px;
  flex-direction: column;
  padding: 16px;
}

.book-details h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.08;
}

.page-panel .book-authors {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.book-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.book-meta div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.book-meta dt {
  color: var(--accent);
  font: 700 0.64rem var(--body-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.32;
}

.com-project-logo-link {
  display: inline-block;
  margin-top: 34px;
  text-decoration: none;
}

.com-project-logo {
  display: block;
  width: min(290px, 74vw);
  height: auto;
}

.museum-page {
  max-width: 980px;
}

.museum-intro {
  margin-bottom: clamp(42px, 7vw, 76px);
}

.page-panel .museum-intro p {
  max-width: 840px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.08;
}

.museum-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  margin-bottom: clamp(54px, 8vw, 92px);
  padding: clamp(24px, 4vw, 42px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.museum-feature-preview,
.museum-preview {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 320px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(156, 23, 23, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(33, 19, 29, 0.08) 1px, transparent 1px),
    #fbfaf8;
  background-size: 34px 34px;
  overflow: hidden;
}

.museum-feature-preview:has(.museum-leaflet-stack) {
  place-items: center;
  min-height: 0;
  padding: 14px;
  background: #fbfaf8;
}

.museum-preview:has(.museum-leaflet-stack) {
  place-items: center;
  min-height: 0;
  padding: 12px;
  background: #fbfaf8;
}

.museum-leaflet-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: 100%;
}

.museum-leaflet-stack img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(33, 19, 29, 0.12);
  background: #f6f1eb;
  box-shadow: 0 10px 26px rgba(33, 19, 29, 0.08);
}

.museum-feature-preview::before,
.museum-preview::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(156, 23, 23, 0.18);
}

.museum-feature-preview:has(.museum-leaflet-stack)::before,
.museum-feature-preview:has(.museum-leaflet-stack)::after,
.museum-preview:has(.museum-leaflet-stack)::before,
.museum-preview:has(.museum-leaflet-stack)::after {
  display: none;
}

.museum-feature-preview::after,
.museum-preview::after {
  content: "";
  position: absolute;
  top: 34px;
  right: 34px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(156, 23, 23, 0.45);
  border-radius: 50%;
}

.museum-feature-preview span,
.museum-preview span {
  position: relative;
  color: var(--accent);
  font-family: var(--body-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.museum-feature-text h2 {
  margin-bottom: 18px;
}

.museum-feature-text h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  letter-spacing: 0.02em;
}

.museum-eyebrow {
  color: var(--accent);
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-panel .museum-eyebrow {
  margin-bottom: 12px;
}

.museum-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.museum-meta div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.museum-meta dt {
  color: var(--accent);
  font: 700 0.64rem var(--body-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.museum-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.35;
}

.museum-meta-link {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.museum-meta-link:hover {
  color: var(--ink);
}

.museum-story {
  display: grid;
  gap: clamp(38px, 6vw, 68px);
  margin-bottom: clamp(58px, 8vw, 90px);
}

.museum-entry {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.museum-entry-reverse {
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
}

.museum-entry-reverse .museum-preview {
  order: 1;
}

.museum-entry-reverse .museum-entry-text {
  order: 2;
}

.museum-preview {
  min-height: 220px;
}

.museum-entry-text h3 {
  margin: 0 0 14px;
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.museum-entry-sequence {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin: clamp(10px, 2vw, 20px) 0;
}

.museum-sequence-header {
  display: grid;
  gap: 14px;
  align-items: start;
}

.museum-sequence-header h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.02;
}

.museum-sequence-header .museum-meta {
  max-width: 620px;
}

.museum-sequence-header p {
  max-width: 720px;
  margin: 0;
}

.museum-sequence-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fbfaf8;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(33, 19, 29, 0.06);
}

.museum-sequence-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 23, 23, 0.55) transparent;
}

.museum-sequence-track::-webkit-scrollbar {
  height: 8px;
}

.museum-sequence-track::-webkit-scrollbar-thumb {
  background: rgba(156, 23, 23, 0.5);
}

.museum-sequence-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 8.6;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  background: #f6f2ee;
}

.museum-sequence-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.94) contrast(1.02);
}

.museum-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(33, 19, 29, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--display-font);
  font-size: 2.2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.museum-carousel-button:hover {
  color: var(--accent);
  background: #ffffff;
  transform: translateY(-50%) scale(1.03);
}

.museum-carousel-prev {
  left: 12px;
}

.museum-carousel-next {
  right: 12px;
}

.entry-list {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.entry-list li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.entry-title {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contributions-archive {
  max-width: 860px;
}

.contribution-entry {
  padding: 0 0 clamp(34px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
}

.contribution-header {
  margin-bottom: 24px;
}

.contribution-header h2 {
  max-width: 760px;
  margin: 0 0 10px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: none;
}

.contribution-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contribution-image {
  display: block;
  width: min(100%, 560px);
  margin: 0 0 24px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contribution-image-contain {
  aspect-ratio: 1 / 1.08;
  object-fit: contain;
  background: #fbfaf8;
}

.contribution-details {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 0 26px;
}

.contribution-details div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
}

.contribution-details dt,
.contribution-tags span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contribution-details dd {
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.5;
}

.contribution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 24px;
}

.contribution-abstract {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.72;
}

.text-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}

.text-link:hover {
  color: var(--accent);
}

.contribution-link {
  display: inline-block;
  font-family: var(--display-font);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.collab-archive {
  display: grid;
  gap: clamp(42px, 7vw, 76px);
  max-width: 980px;
}

.collab-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  padding-bottom: clamp(42px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.collab-carousel-window {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfaf8;
}

.collab-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 23, 23, 0.55) transparent;
}

.collab-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.collab-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(156, 23, 23, 0.5);
}

.collab-carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  scroll-snap-align: start;
  background: #ffffff;
}

.collab-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collab-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(33, 19, 29, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-family: var(--display-font);
  font-size: 2.2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.collab-carousel-button:hover {
  color: var(--accent);
  background: #ffffff;
  transform: translateY(-50%) scale(1.03);
}

.collab-carousel-prev {
  left: 12px;
}

.collab-carousel-next {
  right: 12px;
}

.collab-text {
  display: grid;
  gap: 16px;
  max-width: 100%;
}

.collab-text h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2.15vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.08;
  text-transform: uppercase;
}

.collab-details {
  display: grid;
  gap: 9px;
  margin: 4px 0 0;
}

.collab-details div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.collab-details dt {
  color: var(--accent);
  font: 700 0.66rem var(--body-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collab-details dd {
  margin: 0;
  line-height: 1.36;
}

.page-panel .collab-text p {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-list a {
  width: fit-content;
  color: var(--accent);
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-shell {
    width: 100%;
    padding: 0 0 34px;
  }

  .masthead {
    padding-bottom: 0;
  }

  .mobile-topbar {
    position: relative;
    z-index: 1001;
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper);
  }

  .mobile-brand {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: var(--ink);
    font-family: var(--display-font);
    text-transform: uppercase;
  }

  .mobile-brand span {
    font-size: 1.04rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
  }

  .mobile-brand small {
    color: rgba(33, 19, 29, 0.72);
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.15;
  }

  .mobile-menu-toggle {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    position: absolute;
    width: 29px;
    height: 3px;
    border-radius: 999px;
    background: var(--ink);
    transition: opacity 160ms ease, transform 180ms ease;
  }

  .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(-8px);
  }

  .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(8px);
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .masthead > .kicker,
  .masthead > .brand-lockup {
    display: none;
  }

  .content-layout {
    display: block;
    width: min(100% - 32px, 640px);
    margin: 0 auto;
    padding-top: 42px;
  }

  .sidebar {
    display: none;
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 30px;
  }

  .mobile-menu-open .sidebar {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    overflow-y: auto;
    padding: 126px 30px 46px;
    border: 0;
    color: var(--ink);
    background: var(--paper);
  }

  .section-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 0;
    overflow-x: visible;
    padding: 0;
    border: 0;
  }

  .nav-link {
    display: block;
    min-height: 40px;
    border-left: 0;
    border-bottom: 0;
    padding: 0;
    color: var(--ink);
    font-size: 1.08rem;
    letter-spacing: 0.06em;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    transform: none;
  }

  .contribution-details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .social-links {
    gap: 10px;
    justify-content: center;
    padding-top: 32px;
  }

  .icon-link {
    color: var(--ink);
  }

  .com-link img {
    display: none;
  }

  .com-link::after {
    content: "COM";
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  .page-panel {
    padding: 0;
    min-height: 0;
  }

  .page-label {
    margin-bottom: 18px;
    font-size: 1.08rem;
  }

  .page-panel h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .page-panel p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.62;
    text-align: left;
  }

  .page-panel .page-intro-large,
  .page-panel .museum-intro p {
    font-size: clamp(1.42rem, 6.8vw, 1.95rem);
    line-height: 1.14;
    text-align: left;
  }

  #page-content.is-home-page {
    min-height: calc(100vh - 124px);
    min-height: calc(100svh - 124px);
    padding: 0 0 44px;
  }

  #page-content.is-home-page .home-logo-stage {
    display: none;
  }

  .home-image img {
    width: auto;
    max-width: min(240px, 72vw);
    max-height: min(420px, 56svh);
  }

  .page-panel .home-intro {
    max-width: 23.5rem;
    font-size: clamp(1.12rem, 5.4vw, 1.32rem);
    line-height: 1.42;
    text-align: center;
  }

  .home-section-link {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .selected-work-grid {
    grid-template-columns: 1fr;
  }

  .selected-work-item:nth-child(odd) {
    border-right: 0;
  }

  .selected-work-link {
    grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
    min-height: 180px;
  }

  .selected-work-image {
    min-height: 130px;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 620px;
    margin: 26px auto 0;
  }

  .book-card {
    display: grid;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    align-items: stretch;
    box-shadow: none;
    transform: none;
  }

  .book-card:hover {
    box-shadow: none;
    transform: none;
  }

  .book-cover-frame {
    min-height: 168px;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 10px;
  }

  .book-details {
    min-height: 0;
    padding: 12px;
  }

  .book-details h3 {
    font-size: 1.08rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .page-panel .book-authors {
    margin-bottom: 10px;
    font-size: 0.86rem;
  }

  .book-meta {
    gap: 6px;
  }

  .book-meta div {
    padding-top: 6px;
  }

  .book-meta dt {
    font-size: 0.6rem;
  }

  .book-meta dd {
    font-size: 0.84rem;
  }

  .com-project-logo {
    width: min(220px, 72vw);
  }

  .museum-feature,
  .museum-entry,
  .museum-entry-reverse,
  .collab-entry {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0;
  }

  .museum-entry-reverse .museum-preview,
  .museum-entry-reverse .museum-entry-text {
    order: initial;
  }

  .museum-feature-preview,
  .museum-preview {
    min-height: 220px;
  }

  .museum-sequence-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .museum-sequence-slide {
    aspect-ratio: 4 / 3;
  }

  .museum-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .collab-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .museum-feature-text h2,
  .contribution-header h2,
  .collab-text h2 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .site-shell {
    width: 100%;
    padding-top: 0;
  }

  .masthead {
    padding-bottom: 0;
  }

  .mobile-topbar {
    min-height: 78px;
    padding: 14px 20px;
  }

  .mobile-brand span {
    font-size: 0.98rem;
  }

  .mobile-brand small {
    font-size: 0.6rem;
  }

  .mobile-menu-open .sidebar {
    padding-top: 118px;
  }

  .section-nav {
    display: flex;
    gap: 17px;
  }

  h1 {
    font-size: clamp(1.62rem, 8.8vw, 1.95rem);
  }

  .content-layout {
    width: calc(100% - 28px);
    padding-top: 38px;
  }

  #page-content.is-home-page {
    min-height: calc(100vh - 116px);
    min-height: calc(100svh - 116px);
  }

  #page-content.is-home-page .home-logo-stage {
    display: none;
  }

  .page-panel .home-intro {
    max-width: 20.5rem;
    font-size: 1.16rem;
    line-height: 1.4;
  }

  .brand-lockup {
    gap: 12px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .selected-work-link {
    grid-template-columns: 1fr;
  }

  .selected-work-image {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .book-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .book-card {
    grid-template-columns: minmax(92px, 32%) minmax(0, 1fr);
  }

  .book-cover-frame {
    min-height: 158px;
  }
}
