:root {
  --ink: #1a2420;
  --ink-soft: #4a5650;
  --wall: #f2f5f3;
  --wall-2: #e6ece8;
  --paper: #f7faf8;
  --line: rgba(26, 36, 32, 0.12);
  --line-strong: rgba(26, 36, 32, 0.2);
  --sea: #2f6b5c;
  --sea-deep: #1e4a3f;
  --sea-soft: rgba(47, 107, 92, 0.12);
  --accent: var(--sea);
  --font-display: "Instrument Serif", "Noto Sans TC", Georgia, serif;
  --font-body: "Manrope", "Noto Sans TC", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 3.4rem;
  --pad: clamp(1.1rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  background:
    radial-gradient(900px 500px at 8% -5%, #d5e6df 0%, transparent 55%),
    radial-gradient(700px 420px at 100% 10%, #e4ebe4 0%, transparent 50%),
    var(--wall);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  cursor: none;
}

body[data-lang="zh"] {
  letter-spacing: 0.02em;
}

body.is-touch {
  cursor: auto;
}

body.is-touch .cursor {
  display: none !important;
}

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

a,
button {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

body.is-touch a,
body.is-touch button {
  cursor: pointer;
}

button {
  font: inherit;
  border: 0;
  background: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.4;
  animation: drift 16s var(--ease) infinite alternate;
}

.orb-a {
  width: 380px;
  height: 380px;
  background: #b7d4c8;
  top: 8%;
  left: -6%;
}

.orb-b {
  width: 320px;
  height: 320px;
  background: #c9ddd4;
  bottom: 12%;
  right: -5%;
  animation-delay: -7s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(36px, -28px) scale(1.08); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--sea);
  z-index: 70;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sea);
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease);
}

.cursor-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--sea);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.2s ease, opacity 0.2s ease;
  opacity: 0.7;
}

.cursor-label {
  position: absolute;
  top: 22px;
  left: 0;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-deep);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  background: var(--sea-soft);
}

body.cursor-view .cursor-ring {
  width: 72px;
  height: 72px;
  background: rgba(47, 107, 92, 0.18);
}

body.cursor-view .cursor-label {
  opacity: 1;
}

body.cursor-view .cursor-dot {
  transform: translate(-50%, -50%) scale(0);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.75rem var(--pad);
  background: rgba(242, 245, 243, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(242, 245, 243, 0.95);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  font-weight: 400;
  transition: color 0.25s ease;
}

.nav-brand:hover {
  color: var(--sea);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--sea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--sea);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  border-bottom: 1px solid var(--line);
}

.lang-btn {
  min-width: 2rem;
  min-height: 1.8rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.lang-btn.is-active {
  color: var(--sea);
  border-bottom: 1.5px solid var(--sea);
  margin-bottom: -1px;
}

.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5faf8;
  background: var(--sea);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--sea-deep);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2.5rem) var(--pad) 2rem;
  max-width: 52rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 1.25rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
  background: linear-gradient(120deg, var(--ink) 40%, var(--sea) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 0.85rem;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 300;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--sea-deep);
  border-bottom: 1px solid var(--sea);
  padding-bottom: 0.2rem;
  transition: gap 0.3s var(--ease), color 0.25s ease;
}

.text-link:hover {
  gap: 0.65rem;
  color: var(--sea);
}

.featured {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--wall-2), #dfeae4);
  margin-bottom: 0.5rem;
}

.featured-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem var(--pad) 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-head > span:first-child {
  color: var(--sea);
  font-weight: 500;
}

.featured-hint {
  color: var(--ink-soft);
}

.featured-track {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem var(--pad) 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.featured-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.featured-track::-webkit-scrollbar {
  display: none;
}

.featured-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(42vw, 260px);
  scroll-snap-align: start;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.featured-track figure:hover,
.featured-track figure:focus-visible {
  border-color: var(--sea);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(47, 107, 92, 0.15);
  outline: none;
}

.featured-track img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.featured-track figure:hover img {
  transform: scale(1.05);
}

.featured-track figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.75rem 0.65rem;
  background: linear-gradient(transparent, rgba(30, 74, 63, 0.85));
  color: #f5faf8;
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.featured-track figure:hover figcaption,
.featured-track figure:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-section {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vh, 4rem) var(--pad) 3rem;
}

.exhibit-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sea);
}

.exhibit-head h2,
.partner h2,
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
}

.section-lead {
  margin: 0;
  max-width: 28ch;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 300;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.75rem;
}

.filter {
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.filter:hover {
  color: var(--sea);
  border-color: var(--sea);
  transform: translateY(-1px);
}

.filter.is-active {
  color: #f5faf8;
  background: var(--sea);
  border-color: var(--sea);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(0.85rem, 2vw, 1.5rem);
}

.card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.65s var(--ease) forwards;
  transition: transform 0.35s var(--ease);
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card.is-hidden {
  display: none;
}

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--wall-2);
  aspect-ratio: 1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(30, 74, 63, 0);
  color: #f5faf8;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.card:hover .card-media img,
.card:focus-visible .card-media img {
  transform: scale(1.06);
}

.card:hover .card-overlay,
.card:focus-visible .card-overlay {
  opacity: 1;
  background: rgba(30, 74, 63, 0.42);
}

.card:hover .card-name,
.card:focus-visible .card-name {
  color: var(--sea);
}

.card-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  padding: 0.85rem 0.1rem 0;
  align-items: baseline;
}

.card-index {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--sea);
  font-variant-numeric: tabular-nums;
}

.card-text {
  min-width: 0;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  transition: color 0.25s ease;
}

.card-role {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.4;
}

.partner {
  position: relative;
  z-index: 1;
  margin: 0 var(--pad);
  padding: clamp(2.5rem, 7vw, 4rem);
  border-radius: 22px;
  background: linear-gradient(135deg, #1e4a3f 0%, #2a5f52 50%, #3a7260 100%);
  color: #f2f7f5;
  overflow: hidden;
}

.partner::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.partner-inner {
  position: relative;
  max-width: 38rem;
}

.partner .eyebrow {
  color: #b7d4c8;
}

.partner p {
  color: rgba(242, 247, 245, 0.82);
  font-weight: 300;
  margin: 1rem 0 0;
}

.partner-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.partner-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: rgba(242, 247, 245, 0.88);
}

.partner-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #9fd4bf;
}

.contact {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vh, 5rem) var(--pad);
  max-width: 40rem;
}

.contact .eyebrow {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--sea);
  text-transform: none;
}

.contact h2 {
  margin: 0.5rem 0 0.85rem;
}

.contact p {
  color: var(--ink-soft);
  font-weight: 300;
  margin: 0 0 1.4rem;
  max-width: 34ch;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.modal {
  border: 0;
  padding: 0;
  max-width: min(1100px, calc(100vw - 1.5rem));
  width: 100%;
  background: transparent;
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(18, 36, 30, 0.72);
  backdrop-filter: blur(8px);
}

.modal-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  background: var(--paper);
  position: relative;
  max-height: min(90vh, 860px);
  overflow: auto;
  animation: modalIn 0.35s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 1.1rem;
  border: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  background: var(--sea);
  color: #f5faf8;
  border-color: var(--sea);
}

.modal-media {
  background: var(--wall-2);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.modal-media > img {
  width: 100%;
  flex: 1;
  object-fit: contain;
  background: var(--wall-2);
  min-height: 360px;
  padding: 1.5rem;
  transition: opacity 0.25s ease;
}

.modal-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}

.modal-thumbs button {
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid transparent;
  opacity: 0.55;
  padding: 0;
}

.modal-thumbs button.is-active,
.modal-thumbs button:hover {
  opacity: 1;
  border-color: var(--sea);
}

.modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-copy {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-left: 1px solid var(--line);
}

.modal-index {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--sea);
  font-variant-numeric: tabular-nums;
}

.modal-collection {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.modal-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin: 0.15rem 0 0;
  line-height: 1.05;
}

.modal-role {
  margin: 0;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.modal-blurb {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

.modal-story {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tags span {
  font-size: 0.7rem;
  color: var(--sea-deep);
  background: var(--sea-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.modal-pitch {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--sea-deep);
  line-height: 1.55;
}

.modal-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.modal-prev,
.modal-next {
  flex: 1;
  min-height: 2.6rem;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.modal-prev:hover,
.modal-next:hover {
  background: var(--sea);
  border-color: var(--sea);
  color: #f5faf8;
}

@media (max-width: 960px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-inner {
    grid-template-columns: 1fr;
  }

  .modal-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .modal-media > img {
    min-height: 240px;
    max-height: 48vh;
    padding: 1rem;
  }

  .modal-close {
    left: auto;
    right: 0.75rem;
  }
}

@media (max-width: 720px) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
  }

  .hero-brand {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

  .featured-track figure {
    width: 58vw;
  }

  .exhibit-head {
    flex-direction: column;
    align-items: start;
  }

  .section-lead {
    max-width: none;
  }

  .gallery {
    gap: 1.4rem 0.7rem;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter {
    flex-shrink: 0;
  }

  .partner {
    margin: 0 1rem;
    padding: 1.6rem 1.2rem;
  }

  .modal {
    max-width: calc(100vw - 0.75rem);
  }
}

@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}
