:root {
  color-scheme: light;
  --ink: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.58);
  --soft: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.12);
  --paper: #fbfbfa;
  --white: #ffffff;
  --water: rgba(118, 128, 136, 0.18);
  --water-strong: rgba(91, 104, 116, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 28% 8%, rgba(0, 0, 0, 0.025), transparent 32rem),
    linear-gradient(180deg, #fff 0%, var(--paper) 64%);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cursor-water {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.7);
  transition: opacity 260ms var(--ease), transform 380ms var(--ease);
}

.cursor-water::before,
.cursor-water::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.54rem;
  height: 0.54rem;
  border: 0.75px solid rgba(28, 28, 32, 0.34);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25);
}

body.is-moving .cursor-water {
  opacity: 0;
  background: transparent;
  filter: none;
}

body.is-over-interactive .cursor-water {
  opacity: 1;
  background: transparent;
  filter: none;
}

body.is-over-interactive .cursor-water::before {
  animation: cursor-ring 1400ms var(--ease) infinite;
}

body.is-over-interactive .cursor-water::after {
  animation: cursor-ring 1400ms var(--ease) 360ms infinite;
}

.pointer-ripple {
  position: fixed;
  left: var(--x);
  top: var(--y);
  z-index: 19;
  width: var(--size, 4rem);
  height: var(--size, 4rem);
  border: 0.75px solid rgba(28, 28, 32, var(--alpha, 0.26));
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.08);
  animation: pointer-ripple var(--duration, 900ms) var(--ease) forwards;
}

.pointer-ripple::before,
.pointer-ripple::after {
  content: "";
  position: absolute;
  border: 0.75px solid rgba(28, 28, 32, var(--inner-alpha, 0.18));
  border-radius: 50%;
}

.pointer-ripple::before {
  inset: 23%;
}

.pointer-ripple::after {
  inset: 39%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-areas: "brand nav faculty";
  grid-template-columns: minmax(9rem, 12rem) 1fr minmax(8rem, 13rem);
  align-items: center;
  gap: 2rem;
  padding: 1.15rem clamp(1rem, 3vw, 3rem);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.faculty {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand {
  grid-area: brand;
  gap: 0.75rem;
}

.brand img {
  width: 2.85rem;
  height: 2.85rem;
  object-fit: contain;
}

.brand span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.faculty {
  grid-area: faculty;
  justify-content: end;
}

.faculty img {
  width: min(100%, 11.5rem);
  height: auto;
  opacity: 0.88;
}

.main-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.nav-item,
.menu-link,
.mosaic-tab,
.mosaic-card,
.subfond,
.work-trigger,
.materials a {
  -webkit-tap-highlight-color: transparent;
}

.menu-group,
.menu-branch {
  position: relative;
}

.menu-group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.75rem;
}

.nav-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0.72rem 0.96rem;
  color: rgba(0, 0, 0, 0.72);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 220ms var(--ease), filter 220ms var(--ease), transform 220ms var(--ease);
}

.nav-item:focus,
.menu-link:focus {
  outline: none;
}

.nav-item:focus-visible,
.menu-link:focus-visible {
  color: #000;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.46);
}

.nav-item.is-water-text,
.menu-link.is-water-text {
  filter: url("#water-text-filter");
}

.nav-item::before,
.nav-item::after {
  display: none;
}

.nav-item::after {
  display: none;
}

.nav-item:hover {
  color: var(--ink);
}

.menu-link {
  display: block;
  width: 100%;
  border: 0;
  padding: 0.66rem 0.82rem;
  color: rgba(0, 0, 0, 0.7);
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  transition: color 220ms var(--ease), filter 220ms var(--ease), transform 220ms var(--ease);
}

.menu-link:hover {
  color: #000;
}

.submenu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  min-width: 13.5rem;
  padding: 0.42rem 0;
  border: 1px solid rgba(0, 0, 0, 0.11);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  backdrop-filter: blur(18px);
}

.submenu .submenu {
  left: calc(100% + 0.18rem);
  top: -0.42rem;
}

.menu-branch::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 0.35rem;
  height: 100%;
}

.menu-group:hover > .submenu,
.menu-group:focus-within > .submenu,
.menu-branch:hover > .submenu,
.menu-branch:focus-within > .submenu,
.menu-group.is-open > .submenu,
.menu-branch.is-open > .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-branch > .menu-link::after {
  content: "";
  float: right;
  width: 0.38rem;
  height: 0.38rem;
  margin: 0.22rem 0 0 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.42);
  border-right: 1px solid rgba(0, 0, 0, 0.42);
  transform: rotate(45deg);
}

.nav-item:hover::before {
  animation: none;
}

.nav-item:hover::after {
  animation: none;
}

.nav-item.is-active {
  color: #000;
}

.nav-item.is-active::before {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  background: transparent;
}

.nav-item.is-pressing::after {
  animation: none;
}

main {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 7.5rem) clamp(1rem, 4vw, 4.5rem) 3rem;
}

.hero {
  max-width: 58rem;
  margin: 0 auto clamp(3rem, 8vw, 6.8rem);
  text-align: center;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 8.6rem);
  font-weight: 400;
  line-height: 0.92;
}

.intro {
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.68);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.mosaic-section {
  max-width: 72rem;
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.mosaic-header {
  display: grid;
  grid-template-columns: minmax(14rem, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: 1.8rem;
}

.mosaic-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
}

.mosaic-header p:last-child {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.mosaic-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin-bottom: 1.1rem;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.mosaic-tabs::-webkit-scrollbar {
  display: none;
}

.mosaic-tab {
  flex: 0 0 auto;
  border: 0;
  padding: 0.66rem 0.82rem;
  color: rgba(0, 0, 0, 0.62);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.mosaic-tab:hover,
.mosaic-tab.is-selected {
  color: #000;
}

.mosaic-tab.is-selected {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.works-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.mosaic-card {
  min-height: 12.5rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mosaic-card:hover,
.mosaic-card.is-selected {
  color: #000;
}

.mosaic-card.is-selected {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.mosaic-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.5vw, 1.42rem);
  font-weight: 400;
  line-height: 1.1;
}

.mosaic-card span,
.mosaic-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.mosaic-card small {
  margin-top: 1.1rem;
  font-size: 0.78rem;
}

.archive-sheet {
  grid-column: span 2;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  background: rgba(255, 255, 255, 0.58);
}

.archive-sheet-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.archive-sheet-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
}

.archive-sheet-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.archive-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.archive-field {
  display: grid;
  grid-template-columns: minmax(7rem, 0.72fr) minmax(0, 1fr);
  gap: 0.65rem;
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.58rem 0.65rem;
}

.archive-field dt {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.archive-field dd {
  min-width: 0;
  margin: 0;
  color: rgba(0, 0, 0, 0.82);
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.archive-full-button {
  margin-top: 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0.68rem 0.86rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.archive-full-button:hover {
  border-color: rgba(0, 0, 0, 0.42);
}

.archive-shell {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(18rem, 1.18fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  max-width: 72rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.collection-panel {
  align-self: start;
  position: sticky;
  top: 7rem;
  padding-right: 1rem;
}

.collection-panel h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.collection-panel p:not(.panel-kicker) {
  max-width: 26rem;
  color: var(--muted);
  line-height: 1.7;
}

.subfonds {
  display: grid;
  gap: 0.2rem;
  margin-top: 2.4rem;
}

.subfond {
  position: relative;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
  color: rgba(0, 0, 0, 0.66);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 220ms var(--ease), padding-left 220ms var(--ease);
}

.subfond::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-50%) scale(0.4);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.subfond:hover,
.subfond.is-selected {
  color: var(--ink);
  padding-left: 1rem;
}

.subfond:hover::before,
.subfond.is-selected::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.works {
  display: grid;
  gap: 0.8rem;
}

.work-card {
  border-top: 1px solid var(--line);
  transition: background 260ms var(--ease);
}

.work-card:last-child {
  border-bottom: 1px solid var(--line);
}

.work-card:hover {
  background: transparent;
}

.work-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  padding: 1.35rem 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.work-trigger strong {
  display: block;
  margin-bottom: 0.32rem;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 450;
}

.work-trigger small,
.work-year,
dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.work-detail {
  display: grid;
  gap: 1.5rem;
  padding: 0 0 1.6rem;
}

.work-card:not(.is-open) .work-detail {
  display: none;
}

dl {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
}

dd {
  margin: 0;
  color: rgba(0, 0, 0, 0.76);
}

.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.materials a {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0.55rem 0.74rem;
  color: rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.48);
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}

.materials a::before {
  display: none;
}

.materials a:hover {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.24);
}

.materials a:hover::before {
  animation: none;
}

body.is-over-interactive .nav-item:hover,
body.is-over-interactive .menu-link:hover,
body.is-over-interactive .subfond:hover,
body.is-over-interactive .work-trigger:hover,
body.is-over-interactive .materials a:hover {
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 3vw, 3rem);
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

@keyframes ripple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.85);
  }
}

@keyframes ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  55% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.85);
  }
}

@keyframes ring-strong {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
}

@keyframes cursor-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.28);
  }
  24% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.75);
  }
}

@keyframes pointer-ripple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-areas:
      "brand faculty"
      "nav nav";
    grid-template-columns: 1fr auto;
    row-gap: 0.9rem;
    column-gap: 1rem;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    padding: 0.1rem 0 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .faculty img {
    width: 9.5rem;
  }

  .archive-shell {
    grid-template-columns: 1fr;
  }

  .mosaic-header {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .works-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-sheet {
    grid-column: 1 / -1;
  }

  .archive-fields {
    grid-template-columns: 1fr;
  }

  .collection-panel {
    position: static;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.85rem 1rem 0.95rem;
    row-gap: 0.75rem;
  }

  .brand span {
    display: inline;
    max-width: 4.8rem;
    font-size: 0.62rem;
  }

  .faculty img {
    width: min(38vw, 8.4rem);
  }

  .brand img {
    width: 2.65rem;
    height: 2.65rem;
  }

  main {
    padding-top: 3rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  .nav-item {
    flex: 0 0 auto;
    padding: 0.58rem 0.78rem;
    font-size: clamp(0.86rem, 3.8vw, 0.98rem);
  }

  .submenu {
    min-width: 12.5rem;
  }

  .works-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-card {
    min-height: 9.8rem;
  }

  .archive-field {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
