:root {
  --ink: #1a1a1a;
  --magenta: #bb257d;
  --magenta-hot: #d85aa3;
  --footer: #7b0e4e;
  --sage: #e6eeea;
  --pine: #14382c;
  --line: #e4e4e4;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --slab: "Zilla Slab", "Palatino Linotype", Palatino, serif;
  --header-h: 104px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input { font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 20, 0.28);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.scrim.show { opacity: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding: 12px 28px 12px 18px;
  background: #fff;
}

.logo-link { flex: 0 0 auto; }

.logo-link img {
  height: 78px;
  width: auto;
}

.menu-toggle:focus-visible,
.btn:focus-visible,
.weave-back:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.menu-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.menu-loom {
  --loom: 46px;
  position: relative;
  width: var(--loom);
  height: var(--loom);
  flex: 0 0 auto;
  overflow: hidden;
  background: #f6f3ee;
}

.loom-ribbon {
  position: absolute;
  pointer-events: none;
}

.loom-ribbon.h {
  left: 0;
  width: 100%;
  height: 28%;
  top: calc(var(--i) * 36%);
}

.loom-ribbon.v {
  top: 0;
  height: 100%;
  width: 28%;
  left: calc(var(--i) * 36%);
}

.loom-seg {
  position: absolute;
  background: var(--cloth);
  animation-duration: 4.8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: calc(var(--lag) * -1s);
}

.loom-ribbon.h .loom-seg { top: 0; height: 100%; }
.loom-ribbon.v .loom-seg { left: 0; width: 100%; }

.loom-ribbon.h .loom-seg:nth-child(1) { left: 0; width: 28%; }
.loom-ribbon.h .loom-seg:nth-child(2) { left: 28%; width: 8%; }
.loom-ribbon.h .loom-seg:nth-child(3) { left: 36%; width: 28%; }
.loom-ribbon.h .loom-seg:nth-child(4) { left: 64%; width: 8%; }
.loom-ribbon.h .loom-seg:nth-child(5) { left: 72%; width: 28%; }

.loom-ribbon.v .loom-seg:nth-child(1) { top: 0; height: 28%; }
.loom-ribbon.v .loom-seg:nth-child(2) { top: 28%; height: 8%; }
.loom-ribbon.v .loom-seg:nth-child(3) { top: 36%; height: 28%; }
.loom-ribbon.v .loom-seg:nth-child(4) { top: 64%; height: 8%; }
.loom-ribbon.v .loom-seg:nth-child(5) { top: 72%; height: 28%; }

.loom-seg.under { z-index: 1; }
.loom-seg.gap { z-index: 2; }
.loom-seg.over { z-index: 4; }

.loom-ribbon.h .loom-seg.over,
.loom-ribbon.h .loom-seg.gap { box-shadow: 0 2px 3px rgba(28, 18, 22, 0.28); }

.loom-ribbon.v .loom-seg.over,
.loom-ribbon.v .loom-seg.gap { box-shadow: 2px 0 3px rgba(28, 18, 22, 0.28); }

.loom-ribbon.from-left .loom-seg { animation-name: loom-left; }
.loom-ribbon.from-right .loom-seg { animation-name: loom-right; }
.loom-ribbon.from-top .loom-seg { animation-name: loom-top; }
.loom-ribbon.from-bottom .loom-seg { animation-name: loom-bottom; }

@keyframes loom-left {
  0% { transform: translate3d(calc(var(--loom) * -1.2), 0, 0); animation-timing-function: cubic-bezier(0.32, 0.04, 0.14, 1); }
  26% { transform: translate3d(0, 0, 0); animation-timing-function: linear; }
  64% { transform: translate3d(0, 0, 0); animation-timing-function: cubic-bezier(0.5, 0.05, 0.35, 1); }
  90%, 100% { transform: translate3d(calc(var(--loom) * -1.2), 0, 0); }
}

@keyframes loom-right {
  0% { transform: translate3d(calc(var(--loom) * 1.2), 0, 0); animation-timing-function: cubic-bezier(0.32, 0.04, 0.14, 1); }
  26% { transform: translate3d(0, 0, 0); animation-timing-function: linear; }
  64% { transform: translate3d(0, 0, 0); animation-timing-function: cubic-bezier(0.5, 0.05, 0.35, 1); }
  90%, 100% { transform: translate3d(calc(var(--loom) * 1.2), 0, 0); }
}

@keyframes loom-top {
  0% { transform: translate3d(0, calc(var(--loom) * -1.2), 0); animation-timing-function: cubic-bezier(0.32, 0.04, 0.14, 1); }
  26% { transform: translate3d(0, 0, 0); animation-timing-function: linear; }
  64% { transform: translate3d(0, 0, 0); animation-timing-function: cubic-bezier(0.5, 0.05, 0.35, 1); }
  90%, 100% { transform: translate3d(0, calc(var(--loom) * -1.2), 0); }
}

@keyframes loom-bottom {
  0% { transform: translate3d(0, calc(var(--loom) * 1.2), 0); animation-timing-function: cubic-bezier(0.32, 0.04, 0.14, 1); }
  26% { transform: translate3d(0, 0, 0); animation-timing-function: linear; }
  64% { transform: translate3d(0, 0, 0); animation-timing-function: cubic-bezier(0.5, 0.05, 0.35, 1); }
  90%, 100% { transform: translate3d(0, calc(var(--loom) * 1.2), 0); }
}

.weave-stage {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #f6f3ee;
  overflow: auto;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.weave-stage.is-shown { opacity: 1; }

.weave-stage[hidden] { display: none; }

.weave-toolbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0 22px;
  background: #f6f3ee;
}

.weave-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pine);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 14px 0 0;
}

.weave-back[hidden] { display: none; }

.weave-back::before { content: "‹  "; }

.weave-back:hover { color: var(--magenta); }

.weave-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.weave {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
}

.ribbon {
  position: absolute;
  inset: 0;
  color: var(--ink, var(--pine));
  text-decoration: none;
  pointer-events: none;
}

.seg,
.ribbon .label {
  transition:
    transform var(--travel, 1.05s) cubic-bezier(0.32, 0.04, 0.14, 1),
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
  transition-delay: var(--delay, 0ms);
}

.weave.is-closing .seg,
.weave.is-closing .label {
  transition-duration: 0.95s;
  transition-delay: var(--close-delay, 0ms);
  transition-timing-function: cubic-bezier(0.5, 0.05, 0.35, 1);
  pointer-events: none;
}

.ribbon.from-left .seg,
.ribbon.from-left .label { transform: translate3d(calc(var(--slide, 100%) * -1), 0, 0); }
.ribbon.from-right .seg,
.ribbon.from-right .label { transform: translate3d(var(--slide, 100%), 0, 0); }
.ribbon.from-top .seg,
.ribbon.from-top .label { transform: translate3d(0, calc(var(--slide, 100%) * -1), 0); }
.ribbon.from-bottom .seg,
.ribbon.from-bottom .label { transform: translate3d(0, var(--slide, 100%), 0); }

.weave.is-in .seg,
.weave.is-in .label { transform: translate3d(0, 0, 0); }

.seg {
  position: absolute;
  box-sizing: border-box;
  background: var(--cloth, var(--sage));
  pointer-events: auto;
  cursor: pointer;
}

.ribbon.h .seg {
  box-shadow: 0 8px 16px rgba(28, 18, 22, 0.22);
}

.ribbon.v .seg {
  box-shadow: 8px 0 16px rgba(28, 18, 22, 0.22);
}

.ribbon.h .seg.over {
  box-shadow: 0 12px 22px rgba(28, 18, 22, 0.34);
}

.ribbon.v .seg.over {
  box-shadow: 12px 0 22px rgba(28, 18, 22, 0.34);
}

.seg.under { z-index: 1; pointer-events: none; }

.ribbon.h .seg.under,
.ribbon.v .seg.under { box-shadow: none; }
.seg.gap { z-index: 2; }
.seg.over { z-index: 4; }

.ribbon .label {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  overflow: hidden;
  text-align: center;
  font-family: var(--slab);
  font-size: clamp(30px, 2.5vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.ribbon:hover .seg,
.ribbon:focus-visible .seg {
  background: var(--edge, var(--pine));
}

.ribbon:hover .label,
.ribbon:focus-visible .label {
  color: #fff8f3;
}

.ribbon:focus-visible {
  outline: none;
}

.ribbon:focus-visible .label {
  outline: 2px solid var(--magenta);
  outline-offset: -4px;
}

button.ribbon {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}

.hero img {
  width: 100%;
  height: clamp(210px, 30vw, 390px);
  object-fit: cover;
  object-position: center 42%;
}

.band {
  padding: 54px 24px 18px;
  text-align: center;
}

.band.narrow {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 36px;
}

.hours-band {
  padding-top: 72px;
  padding-bottom: 28px;
}

.hours-band p { margin: 0.2em 0; }

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, .exhibit-title {
  font-family: var(--slab);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.exhibit-title { margin-bottom: 8px; }

.exhibit-dates {
  margin: 0 0 28px;
  font-size: 19px;
  font-weight: 600;
}

.band p { margin: 0 auto 8px; }

.cta { margin-top: 26px !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 28px;
  border: 2px solid var(--magenta);
  border-radius: 999px;
  color: var(--magenta);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:hover {
  background: var(--magenta);
  color: #fff;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  width: min(920px, calc(100% - 80px));
  margin: 18px auto;
}

.exhibit-art {
  width: min(460px, 100%);
  height: auto;
  margin: 12px auto 24px;
}

.gallery {
  width: min(1040px, calc(100% - 48px));
  margin: 10px auto 28px;
}

.gallery-frame {
  position: relative;
  background: #f3f3f3;
}

.gallery-frame img {
  width: 100%;
  height: min(62vw, 560px);
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 64px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.gallery-arrow svg { width: 34px; height: 34px; }

.gallery-arrow.prev { left: 4px; }
.gallery-arrow.next { right: 4px; }

.gallery-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 6px;
  scroll-behavior: smooth;
}

.thumbs button {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.45;
}

.thumbs button[aria-current="true"],
.thumbs button:hover { opacity: 1; }

.thumbs img {
  height: 74px;
  width: auto;
  max-width: none;
}

.sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 36px;
  padding: 54px 24px 20px;
  background: #f6f6f6;
}

.sponsors img {
  height: 72px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.subscribe {
  background: #f6f6f6;
  text-align: center;
  padding: 28px 20px 64px;
}

.subscribe h2 {
  color: var(--magenta-hot);
  font-family: var(--slab);
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 8px;
}

.subscribe form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.subscribe input {
  width: min(280px, 100%);
  border: 1px solid #cfcfcf;
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
}

.subscribe button {
  border: 0;
  border-radius: 999px;
  background: var(--magenta-hot);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
}

.subscribe button:hover { background: var(--magenta); }

.form-note {
  margin: 18px 0 0;
  color: #4d4d4d;
  font-size: 15px;
}

.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 54px 32px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 28px 48px;
  max-width: 920px;
  margin: 0 auto 36px;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}

.site-footer h3 a { color: #fff; }

.site-footer .phone { margin-top: 22px; }

.site-footer p { margin: 0; font-weight: 700; }

.site-footer ul {
  margin: 0;
  padding-left: 18px;
}

.site-footer li {
  margin: 7px 0;
  font-weight: 700;
}

.social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--footer);
  display: grid;
  place-items: center;
}

.social svg { width: 22px; height: 22px; }

.copyright {
  text-align: center;
  font-size: 14px;
  font-weight: 400 !important;
  opacity: 0.95;
}

.copyright a { color: #fff; }

@media (max-width: 1180px) {
  .logo-link img { height: 64px; }
  :root { --header-h: 88px; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  h1, h2, .exhibit-title, .subscribe h2 { font-size: 26px; }
  .bar { padding: 10px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .rule { width: calc(100% - 40px); }
  .ribbon .label { font-size: 29px; padding: 6px 8px; }
  .gallery { width: calc(100% - 24px); }
  .hours-band { padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .weave-stage { opacity: 1; transition: none; }
  .scrim,
  .seg,
  .ribbon .label { transition: none !important; }
  .ribbon.from-left .seg,
  .ribbon.from-left .label,
  .ribbon.from-right .seg,
  .ribbon.from-right .label,
  .ribbon.from-top .seg,
  .ribbon.from-top .label,
  .ribbon.from-bottom .seg,
  .ribbon.from-bottom .label,
  .weave.is-in .seg,
  .weave.is-in .label,
  .loom-seg { transform: none; animation: none; }
}
