:root {
  --bg: #090909;
  --panel: #141414;
  --panel-soft: #1b1b1b;
  --text: #f4f0e6;
  --muted: #bcb5a4;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #dbc398;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  --shell: min(1280px, 92vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 8%, #2a271d 0%, #090909 40%, #090909 100%);
}

body.lightbox-open,
body.menu-open,
body.project-expand-open,
body.project-intro-open {
  overflow: hidden;
}

.site-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0.6px, transparent 0.6px);
  background-size: 6px 6px;
  z-index: 1;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.tracks-header {
  padding: 2rem 0 0;
  position: relative;
  z-index: 60;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  padding: 2rem 0 0;
  background: #080808;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.01);
  animation: heroDrift 18s ease-in-out infinite alternate;
  transition: opacity 1.15s ease;
  will-change: transform, opacity;
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.36) 46%, rgba(0, 0, 0, 0.82));
  z-index: 1;
}

.hero-nav {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 45;
}

.brand,
.nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  text-transform: none;
}

.hero-nav > .brand,
.about-nav > .brand {
  transition: opacity 0.2s ease;
}

.brand-fixed {
  position: fixed;
  top: 2rem;
  left: max(1rem, calc((100vw - var(--shell)) / 2));
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.24s ease, transform 0.24s ease, color 0.24s ease;
}

.brand-fixed.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mega {
  position: fixed;
  top: 1.6rem;
  right: max(1rem, calc((100vw - var(--shell)) / 2));
  z-index: 60;
}

.nav-link {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-family: inherit;
}

.nav-link::after {
  content: "▾";
  font-size: 0.64rem;
  transform: translateY(-1px) rotate(0deg);
  transition: transform 0.24s ease;
}

.nav-trigger[aria-expanded="true"]::after {
  transform: translateY(-1px) rotate(180deg);
}

.nav-trigger-icon,
.nav-top-link {
  width: 2.5rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-trigger-icon {
  flex-direction: column;
  gap: 0.2rem;
}

.nav-trigger-icon::after {
  content: none;
}

.nav-trigger-icon span {
  width: 1.2rem;
  height: 1px;
  display: block;
  background: rgba(255, 255, 255, 0.94);
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-top-link {
  position: fixed;
  top: calc(1.6rem + 2.2rem + 0.55rem);
  right: max(1rem, calc((100vw - var(--shell)) / 2));
  z-index: 60;
  font-size: 1.08rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.nav-top-link::after {
  content: none;
}

.nav-top-link.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-top-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.52);
}

.nav-trigger-icon[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.3rem) rotate(45deg);
}

.nav-trigger-icon[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-trigger-icon[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.3rem) rotate(-45deg);
}

body.menu-open .brand,
body.menu-open .nav-link {
  color: #1a1c20;
}

body.menu-open .hero-nav > .brand,
body.menu-open .about-nav > .brand {
  opacity: 0;
  pointer-events: none;
}

body.menu-open .nav-trigger-icon {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.24);
}

body.menu-open .nav-trigger-icon span {
  background: rgba(0, 0, 0, 0.78);
}

body.menu-open .nav-top-link {
  color: #1a1c20;
  border-color: rgba(0, 0, 0, 0.24);
}

body.menu-open .nav-top-link:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.4);
}

body.menu-open .nav-top-link {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(6px) !important;
}

.project-panel {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 36;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-14px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease,
    visibility 0s linear 0.26s;
}

.project-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease,
    visibility 0s linear 0s;
}

.project-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  height: min(68vh, 560px);
  background: rgba(244, 244, 246, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.project-panel-shell {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  padding: 4.8rem 0 2.4rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.panel-col {
  color: #1e1f22;
}

.panel-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d6f75;
}

.panel-main-headings {
  margin: 0.45rem 0 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: clamp(1.8rem, 3.6vw, 3.2rem);
  position: relative;
}

.panel-main-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.panel-main-title.is-active {
  color: #1b1c1f;
}

.panel-about {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.panel-main-static {
  color: #1b1c1f;
}

.panel-about-link {
  display: inline-block;
  width: auto;
  position: absolute;
  left: 0;
  top: calc(100% + 1.2rem);
  color: #181a1d;
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease;
}

.panel-about-link:hover {
  color: #000;
  transform: translateX(4px);
}

.panel-traces-link {
  top: calc(100% + 1.2rem + 1.02em + 0.75rem);
}

.panel-newyear-link {
  top: calc(100% + 1.2rem + (1.02em + 0.75rem) * 2);
}

.panel-project-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.panel-project-list li {
  width: fit-content;
}

.panel-project-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #181a1d;
  text-decoration: none;
  padding: 0;
  border-bottom: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.panel-project-list a:hover {
  color: #000;
  transform: translateX(4px);
}

.menu-project-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.02;
}

.project-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(7, 7, 8, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.project-panel-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-content {
  width: var(--shell);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 0;
  animation: riseIn 0.9s ease both;
}

body[data-page="tracks"] .tracks-hero-content {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: clamp(1.6rem, 3.2vw, 2.4rem);
}

body[data-page="tracks"] .tracks-title {
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 0.92;
}

.hero-collection-title {
  margin: 0;
  font-size: clamp(3rem, 9.6vw, 9rem);
  line-height: 0.92;
  font-weight: 500;
  font-family: "Cormorant Garamond", serif;
  color: rgba(244, 240, 230, 0.96);
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}

.hero-title-row {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.hero-new-badge {
  position: absolute;
  top: 0.18rem;
  right: -1.3rem;
  display: inline-block;
  color: rgba(245, 241, 232, 0.96);
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(0.72rem, 1.25vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  padding: 0;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

.hero-new-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  margin-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  padding: 0.72rem 1.1rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  line-height: 1;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.66);
}

.gallery {
  margin-top: 0;
  padding-top: 2.2rem;
  padding-bottom: 4rem;
}

.gallery.section-shell {
  width: min(1180px, 88vw);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.project-block {
  margin-bottom: 2.8rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}

.project-head {
  margin-bottom: 1.8rem;
  text-align: center;
}

.project-year-head {
  margin-bottom: 1.2rem;
}

.project-year-title {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.project-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
}

.project-expand-trigger {
  border: 0;
  background: transparent;
  color: rgba(236, 231, 220, 0.86);
  cursor: pointer;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1;
  padding: 0.08rem 0.22rem;
  transform: translateY(1px);
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-expand-trigger:hover {
  color: #fff;
  transform: translate(2px, 1px);
}

.project-period {
  margin: 0.28rem 0 0;
  color: #cfc7b6;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-summary {
  margin: 0.5rem 0 0;
  color: #b9b19f;
  max-width: 58ch;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

.project-intro-trigger {
  margin-top: 0.62rem;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(10, 10, 10, 0.78);
  color: #efe8d9;
  font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.5rem 0.86rem;
  text-transform: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.project-intro-trigger:hover {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(16, 16, 16, 0.9);
  transform: translateY(-1px);
}

.project-intro-modal {
  position: fixed;
  inset: 0;
  z-index: 76;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(6, 6, 7, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.project-intro-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-intro-dialog {
  width: min(640px, calc(100vw - 2.4rem));
  background: #f3f4f6;
  color: #1b1d20;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
  padding: 1.06rem 1.2rem;
  position: relative;
}

.project-intro-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #f3f4f6;
  color: rgba(30, 32, 36, 0.8);
  width: 2rem;
  height: 2rem;
  line-height: 1;
  cursor: pointer;
  font-size: 1.1rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.project-intro-close:hover {
  background: #eceef2;
  border-color: rgba(0, 0, 0, 0.34);
  color: #15171b;
}

.project-intro-header {
  text-align: center;
  padding: 0;
}

.project-intro-content {
  display: grid;
  grid-template-columns: minmax(215px, 255px) minmax(0, 1fr);
  gap: 1.08rem 1.22rem;
  align-items: stretch;
  margin-top: 0;
}

.project-intro-dialog.is-text-only .project-intro-content {
  grid-template-columns: 1fr;
}

.project-intro-dialog.is-text-only .project-intro-gallery {
  display: none;
}

.project-intro-dialog.is-text-only .project-intro-gallery-controls {
  display: none;
}

.project-intro-gallery {
  display: block;
}

.project-intro-image-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #dde2ea;
  border: 0;
  overflow: hidden;
  position: relative;
}

.project-intro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-intro-image-empty {
  margin: 0;
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #69707a;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.project-intro-gallery.is-empty .project-intro-image {
  display: none;
}

.project-intro-gallery.is-empty .project-intro-image-empty {
  display: grid;
}

.project-intro-gallery-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.34rem;
}

.project-intro-nav {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.24);
  background: #f3f4f6;
  color: #202228;
  line-height: 1;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project-intro-nav:hover:not(:disabled) {
  background: #e9edf3;
  border-color: rgba(0, 0, 0, 0.38);
}

.project-intro-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.project-intro-counter {
  min-width: 3rem;
  text-align: center;
  font-size: 0.72rem;
  color: #5a616b;
  letter-spacing: 0.06em;
}

.project-intro-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.34rem;
  min-width: 0;
  align-self: stretch;
}

.project-intro-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.project-intro-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d727b;
  text-align: center;
}

.project-intro-title {
  margin: 0.18rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.62rem, 2.7vw, 2.08rem);
  line-height: 1.02;
  font-weight: 600;
  text-align: center;
}

.project-intro-overview {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.72;
  color: #272b31;
  max-width: none;
  align-self: center;
  padding: 0 0.62rem 0 0.24rem;
}

.project-intro-note {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #6d727b;
  text-align: right;
  flex: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: clamp(0.7rem, 1.2vw, 1rem);
}

.project-year-single-grid {
  grid-template-columns: minmax(0, min(54vw, 780px));
  justify-content: center;
}

.work-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
  background: #101010;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  animation: riseIn 0.7s ease both;
  animation-delay: var(--delay, 0ms);
  aspect-ratio: 1 / 1;
  contain: content;
}

.work-card.work-card-original-ratio {
  aspect-ratio: auto;
}

.work-card button {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.work-card.work-card-original-ratio button {
  height: auto;
}

.work-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card.work-card-original-ratio .work-card-image {
  height: auto;
  object-fit: contain;
}

body[data-page="tracks"] .work-card {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  animation: none;
}

.work-card.is-missing {
  background: linear-gradient(130deg, #1f1d18, #0f0f0f 45%, #242118);
}

.site-footer {
  padding: 0 0.2rem 3.6rem;
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.15rem;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: #b6af9f;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-expand {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: 5.4rem 0 2.4rem;
  background: rgba(6, 6, 7, 0.52);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.project-expand.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-expand-panel {
  width: min(1240px, 92vw);
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-expand-head {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
}

#projectExpandTitle {
  display: none;
}

.project-expand-close {
  min-width: 2.35rem;
  padding: 0.4rem 0.68rem;
}

.project-expand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.1vw, 0.9rem);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  --lightbox-top-gap: 120px;
  --lightbox-bottom-gap: 72px;
  --lightbox-side-gap: 52px;
  --lightbox-info-left: clamp(1.2rem, 2.4vw, 2.4rem);
  --lightbox-info-width: min(31vw, 430px);
  --lightbox-info-offset: calc(var(--lightbox-info-left) + var(--lightbox-info-width) + 1.6rem);
  --zoom-progress: 0;
  --lightbox-gap-factor: calc(1 - var(--zoom-progress));
  background: rgba(3, 3, 3, 0.94);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow: hidden;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
}

.lightbox-controls {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efdf;
  padding: 0.48rem 0.68rem;
  min-width: 2.4rem;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  pointer-events: auto;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.48);
}

#zoomPercent {
  min-width: 4ch;
  text-align: center;
  font-size: 0.86rem;
  color: #d8d0bf;
  pointer-events: none;
}

#imageCounter {
  min-width: 4.5ch;
  text-align: center;
  font-size: 0.82rem;
  color: #d8d0bf;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.lightbox-exif {
  position: absolute;
  top: 3.9rem;
  right: 1rem;
  width: min(320px, calc(100vw - 2rem));
  max-height: min(60vh, 460px);
  overflow: auto;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.8rem 0.9rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-exif.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lightbox-exif-title {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #d5cfbf;
  text-transform: uppercase;
}

.lightbox-exif-content {
  display: grid;
  gap: 0.42rem;
}

.lightbox-exif-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
}

.lightbox-exif-key {
  color: rgba(233, 227, 214, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.lightbox-exif-value {
  margin: 0;
  color: #f6f2e7;
  font-size: 0.82rem;
  text-align: right;
  word-break: break-word;
}

.lightbox-exif-empty {
  margin: 0;
  color: rgba(233, 227, 214, 0.75);
  font-size: 0.8rem;
  line-height: 1.5;
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  padding:
    calc(var(--lightbox-top-gap) * var(--lightbox-gap-factor))
    calc(var(--lightbox-side-gap) * var(--lightbox-gap-factor))
    calc(var(--lightbox-bottom-gap) * var(--lightbox-gap-factor));
  padding-left: calc(
    (var(--lightbox-side-gap) + var(--lightbox-info-offset)) * var(--lightbox-gap-factor)
  );
  touch-action: none;
  transition: padding 0.18s linear;
}

.lightbox-stage.is-panning {
  cursor: grabbing;
}

#lightboxImage {
  max-width: calc(
    100vw -
      ((var(--lightbox-side-gap) * 2 * var(--lightbox-gap-factor)) +
        (var(--lightbox-info-offset) * var(--lightbox-gap-factor)))
  );
  max-height: calc(
    100vh -
      ((var(--lightbox-top-gap) + var(--lightbox-bottom-gap)) * var(--lightbox-gap-factor))
  );
  width: auto;
  height: auto;
  user-select: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.15s linear, max-width 0.18s linear, max-height 0.18s linear;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  position: absolute;
  left: calc(
    ((var(--lightbox-side-gap) + var(--lightbox-info-offset)) - var(--lightbox-info-width)) / 2
  );
  top: calc(var(--lightbox-top-gap) - (1.8rem * var(--zoom-progress)));
  width: var(--lightbox-info-width);
  z-index: 2;
  text-align: left;
  padding: 0;
  background: none;
  pointer-events: none;
  opacity: calc(1 - (var(--zoom-progress) * 1.35));
  transform: translateX(calc(-12px * var(--zoom-progress)));
  transition: opacity 0.18s linear, transform 0.18s linear;
}

#lightboxTitle {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1.05;
}

#lightboxMeta {
  margin: 0 0 0.95rem;
  color: #e0d9c7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

#lightboxDescription {
  margin: 0;
  color: rgba(238, 233, 221, 0.9);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.72;
  max-width: 32ch;
}

.lightbox .lightbox-caption #lightboxMeta:empty,
.lightbox .lightbox-caption #lightboxDescription:empty {
  display: none;
}

body[data-tracks-source="新年特辑"] .lightbox {
  --ny-preview-max-width: min(88vw, 1200px);
  --simple-preview-nav-left: 1rem;
  --simple-preview-nav-right: 1rem;
  --simple-preview-nav-top: 50%;
  --lightbox-top-gap: 24px;
  --lightbox-bottom-gap: 24px;
  --lightbox-side-gap: 24px;
  --lightbox-info-left: 0px;
  --lightbox-info-width: 0px;
  --lightbox-info-offset: 0px;
  background: rgba(2, 2, 3, 0.9);
  backdrop-filter: none;
}

body[data-tracks-source="新年特辑"] .lightbox-controls {
  position: absolute;
  inset: 0;
  transform: none;
  pointer-events: none;
  z-index: 4;
}

body[data-tracks-source="新年特辑"] #zoomOut,
body[data-tracks-source="新年特辑"] #zoomIn,
body[data-tracks-source="新年特辑"] #resetZoom,
body[data-tracks-source="新年特辑"] #zoomPercent,
body[data-tracks-source="新年特辑"] #imageCounter,
body[data-tracks-source="新年特辑"] #toggleExif,
body[data-tracks-source="新年特辑"] .lightbox-caption,
body[data-tracks-source="新年特辑"] .lightbox-exif {
  display: none !important;
}

body[data-tracks-source="新年特辑"] #prevImage,
body[data-tracks-source="新年特辑"] #nextImage {
  position: absolute;
  top: var(--simple-preview-nav-top);
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

body[data-tracks-source="新年特辑"] #prevImage {
  left: var(--simple-preview-nav-left);
}

body[data-tracks-source="新年特辑"] #nextImage {
  right: var(--simple-preview-nav-right);
}

body[data-tracks-source="新年特辑"] #lightboxImage {
  max-width: var(--ny-preview-max-width);
  max-height: 86vh;
}

body[data-tracks-source="新年特辑"] .lightbox-stage,
body[data-tracks-source="新年特辑"] .lightbox-stage.is-panning {
  cursor: default;
  touch-action: auto;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes heroDrift {
  0% {
    transform: scale(1) translate3d(0%, 0%, 0);
  }

  50% {
    transform: scale(1.015) translate3d(-0.45%, -0.3%, 0);
  }

  100% {
    transform: scale(1.01) translate3d(0.35%, 0.3%, 0);
  }
}

@media (max-width: 1100px) {
  .project-panel-shell {
    padding: 4.5rem 0 2rem;
  }

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

@media (max-width: 760px) {
  .site-texture {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 0;
  }

  .tracks-header {
    padding-top: 1rem;
  }

  .hero-nav {
    margin-top: 0.2rem;
  }

  .brand,
  .nav-link {
    font-size: 0.68rem;
  }

  .brand-fixed {
    top: 2.2rem;
    left: 1rem;
  }

  .nav-mega {
    top: 1rem;
    right: 1rem;
  }

  .nav-top-link {
    top: calc(1rem + 2.2rem + 0.45rem);
    right: 1rem;
  }

  .project-panel::before {
    height: min(80vh, 560px);
  }

  .project-panel-shell {
    padding: 4.3rem 0 1.4rem;
  }

  .menu-project-name {
    font-size: 1.55rem;
  }

  .hero-content {
    justify-content: center;
    padding-bottom: 0;
  }

  .hero-collection-title {
    font-size: clamp(2.1rem, 12vw, 4rem);
    line-height: 0.95;
  }

  .hero-new-badge {
    top: 0.1rem;
    right: -1rem;
    font-size: clamp(0.68rem, 2vw, 0.82rem);
    padding: 0;
  }

  .hero-cta {
    margin-top: 1rem;
    padding: 0.62rem 0.92rem;
    font-size: 0.76rem;
  }

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

  .project-block {
    margin-bottom: 2.1rem;
  }

  .project-head {
    margin-bottom: 1.35rem;
  }

  .project-title-row {
    gap: 0.35rem;
  }

  .project-expand {
    padding: 4.8rem 0 1.5rem;
  }

  .project-expand-panel {
    width: min(94vw, 840px);
    max-height: none;
    padding: 0;
  }

  .project-expand-head {
    top: 0.8rem;
    right: 0.8rem;
  }

  .project-expand-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .project-intro-dialog {
    width: min(92vw, 520px);
    padding: 0.92rem;
  }

  .project-intro-header {
    padding: 0;
  }

  .project-intro-content {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding-top: 0;
    margin-top: 0;
  }

  .project-intro-image-frame {
    aspect-ratio: 16 / 11;
  }

  .project-intro-kicker {
    font-size: 0.68rem;
  }

  .project-intro-overview {
    font-size: 0.92rem;
    line-height: 1.64;
    padding: 0;
  }

  .project-intro-note {
    margin-top: 0.3rem;
    flex: none;
    text-align: left;
  }

  .project-intro-footer {
    display: grid;
    gap: 0.34rem;
    justify-items: start;
  }

  .lightbox-controls {
    gap: 0.3rem;
    top: 0.8rem;
    flex-wrap: wrap;
  }

  #imageCounter {
    min-width: 4ch;
  }

  .icon-btn {
    padding: 0.42rem 0.55rem;
  }

  .lightbox-exif {
    top: 3.4rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: 46vh;
    padding: 0.72rem 0.76rem;
  }

  .lightbox {
    --lightbox-top-gap: 88px;
    --lightbox-bottom-gap: 124px;
    --lightbox-side-gap: 18px;
    --lightbox-info-width: min(calc(100vw - 2rem), 28rem);
    --lightbox-info-left: 1rem;
    --lightbox-info-offset: 0px;
  }

  .lightbox-stage {
    padding-left: calc(var(--lightbox-side-gap) * var(--lightbox-gap-factor));
  }

  .lightbox-caption {
    left: 1rem;
    right: 1rem;
    width: auto;
    top: auto;
    bottom: 1rem;
    transform: none;
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0));
    padding: 1.2rem 1rem 0.85rem;
  }

  #lightboxTitle {
    font-size: clamp(1.2rem, 4.4vw, 1.6rem);
  }

  #lightboxDescription {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
  }
}
