:root {
  --ink: #17130f;
  --deep-ink: #0e0c0a;
  --paper: #eee6d6;
  --paper-dark: #ded2bd;
  --red: #9b302b;
  --red-bright: #b53a31;
  --gold: #a78854;
  --gold-light: #c9ad78;
  --muted: #71695d;
  --line: rgba(80, 61, 40, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(238, 230, 214, 0.96), rgba(238, 230, 214, 0.96)),
    url("ink-landscape.png") center / cover fixed;
  color: var(--ink);
  font-family: Inter, "Noto Serif SC", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

.topbar {
  position: relative;
  z-index: 10;
  height: 92px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(75, 57, 37, 0.18);
  background: rgba(238, 230, 214, 0.74);
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 5px;
  height: 1px;
  opacity: 0.45;
  background: linear-gradient(90deg, var(--red), transparent 28%, transparent 72%, var(--gold));
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand .seal {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 215, 0.46);
  border-radius: 3px;
  background: var(--red);
  color: #f8ead5;
  font: 600 23px "Noto Serif SC";
  box-shadow: 0 8px 22px rgba(111, 31, 27, 0.18);
  transform: rotate(-3deg);
  animation: seal-arrive 0.9s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.brand .seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 235, 209, 0.4);
}

.brand b {
  display: block;
  font: 600 17px "Noto Serif SC";
  letter-spacing: 0.16em;
}

.brand small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.top-actions,
.lang-switch {
  display: flex;
  align-items: center;
}

.top-actions {
  gap: 22px;
}

.lang-switch {
  gap: 10px;
}

.lang-switch button,
.sound-toggle {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button {
  padding: 7px 2px;
  font: 500 11px Inter;
  letter-spacing: 0.1em;
}

.lang-switch button.active {
  color: var(--red);
  border-bottom: 1px solid var(--red);
}

.lang-switch i {
  width: 1px;
  height: 13px;
  background: rgba(95, 77, 57, 0.4);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(112, 88, 56, 0.25);
  border-radius: 999px;
  font: 11px "Noto Serif SC";
  letter-spacing: 0.08em;
  transition: 0.35s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.sound-toggle span {
  color: var(--red);
  font: 16px Georgia, serif;
}

.sound-toggle em {
  font-style: normal;
}

.sound-toggle:hover,
.sound-toggle.is-playing {
  border-color: rgba(155, 48, 43, 0.6);
  color: var(--red);
  background: rgba(155, 48, 43, 0.06);
}

.sound-toggle.is-playing span {
  animation: sound-pulse 1.8s ease-in-out infinite;
}

.sound-toggle.has-audio-error {
  border-color: rgba(155, 48, 43, 0.75);
}

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 12vh 8vw 9vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(238, 230, 214, 0.98) 0%, rgba(238, 230, 214, 0.88) 39%, rgba(238, 230, 214, 0.18) 72%, rgba(238, 230, 214, 0.06) 100%),
    url("ink-landscape.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 46vw;
  height: 46vw;
  right: -12vw;
  top: -18vw;
  border: 1px solid rgba(155, 48, 43, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(155, 48, 43, 0.025), 0 0 0 82px rgba(155, 48, 43, 0.018);
  animation: sun-drift 12s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(238, 230, 214, 0.95));
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.32em;
  animation: ink-rise 0.8s 0.15s both;
}

.hero-kicker span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.hero h1 {
  max-width: 1050px;
  margin: 5vh 0 4vh;
  font: 400 clamp(56px, 8.2vw, 122px) / 1.08 "Noto Serif SC";
  letter-spacing: 0.07em;
}

.hero h1 span,
.hero h1 em {
  display: inline-block;
  animation: ink-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
  animation-delay: 0.15s;
}

.hero-copy {
  max-width: 610px;
  margin-left: 17%;
  padding-left: 22px;
  border-left: 1px solid rgba(155, 48, 43, 0.45);
  color: #50483f;
  font: 400 15px / 2.05 "Noto Serif SC";
  animation: ink-rise 1s 0.28s both;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 7vh 0 0 17%;
  color: var(--ink);
  text-decoration: none;
  font: 500 12px "Noto Serif SC";
  letter-spacing: 0.12em;
  animation: ink-rise 1s 0.4s both;
}

.scroll-cue b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 19, 15, 0.28);
  border-radius: 50%;
  transition: 0.35s;
}

.scroll-cue:hover b {
  border-color: var(--red);
  background: var(--red);
  color: white;
  transform: translateY(4px);
}

.hero-mark {
  position: absolute;
  right: 5%;
  bottom: 7%;
  color: rgba(125, 44, 37, 0.12);
  font: 600 94px / 1.05 "Noto Serif SC";
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-shadow: 0 1px rgba(255, 255, 255, 0.35);
}

.collection {
  position: relative;
  overflow: hidden;
  padding: 14vh 7vw 18vh;
  background:
    radial-gradient(circle at 84% 13%, rgba(167, 136, 84, 0.14), transparent 23%),
    linear-gradient(135deg, #191612, #0e0c0a 68%);
  color: var(--paper);
}

.collection::before {
  content: "典藏";
  position: absolute;
  right: -0.2em;
  top: 3vh;
  color: rgba(255, 255, 255, 0.025);
  font: 600 min(26vw, 360px) "Noto Serif SC";
  writing-mode: vertical-rl;
}

.section-heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 10vh;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), rgba(200, 173, 120, 0.25), transparent);
}

.section-heading h2 {
  margin: 12px 0 0;
  font: 400 clamp(40px, 5vw, 72px) "Noto Serif SC";
  letter-spacing: 0.05em;
}

.section-heading > p {
  max-width: 390px;
  color: #aaa094;
  font: 14px / 1.9 "Noto Serif SC";
}

.eyebrow {
  color: var(--gold-light);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9vw 4.5vw;
}

.art-card:nth-child(even) {
  margin-top: 15vh;
}

.art-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #29251f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.art-image::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(239, 224, 197, 0.22);
  transition: inset 0.7s ease, border-color 0.7s;
}

.art-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.08) sepia(0.08);
  transition: transform 1.2s cubic-bezier(0.2, 0.75, 0.2, 1), filter 1s;
}

.art-image:hover::before {
  inset: 18px;
  border-color: rgba(239, 224, 197, 0.5);
}

.art-image:hover img {
  transform: scale(1.055);
  filter: saturate(0.9) contrast(1.05);
}

.format {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  padding: 8px 11px;
  border-left: 2px solid var(--red);
  background: rgba(15, 13, 10, 0.76);
  color: #ddccb0;
  font-size: 8px;
  letter-spacing: 0.19em;
}

.enter-model {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  padding: 65px 26px 25px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
  color: white;
  font: 12px "Noto Serif SC";
  letter-spacing: 0.13em;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.45s;
}

.art-image:hover .enter-model {
  opacity: 1;
  transform: none;
}

.art-meta {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid #3b352e;
}

.art-meta .index {
  color: var(--red-bright);
  font: 11px Inter;
}

.art-meta h3 {
  margin: 0 0 8px;
  font: 400 25px "Noto Serif SC";
}

.art-meta p {
  margin: 0;
  color: #90877b;
  font: 12px / 1.7 "Noto Serif SC";
}

.art-meta a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 183, 150, 0.3);
  border-radius: 50%;
  color: #c6b796;
  font-size: 23px;
  text-decoration: none;
  transition: 0.35s;
}

.art-meta a:hover {
  border-color: var(--red);
  background: var(--red);
  color: white;
  transform: rotate(90deg);
}

.manifesto {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-content: center;
  overflow: hidden;
  padding: 10vw;
  text-align: center;
  background:
    linear-gradient(rgba(238, 230, 214, 0.79), rgba(238, 230, 214, 0.92)),
    url("ink-landscape.png") center 58% / cover;
}

.manifesto::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(155, 48, 43, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 34px rgba(155, 48, 43, 0.025);
}

.manifesto blockquote {
  position: relative;
  max-width: 950px;
  margin: 0;
  font: 400 clamp(30px, 4vw, 60px) / 1.7 "Noto Serif SC";
  text-shadow: 0 1px rgba(255, 255, 255, 0.6);
}

.manifesto p {
  position: relative;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.vertical {
  position: absolute;
  left: 7%;
  top: 16%;
  color: var(--red);
  font: 16px "Noto Serif SC";
  letter-spacing: 0.35em;
  writing-mode: vertical-rl;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 6vw;
  border-top: 1px solid rgba(93, 72, 49, 0.18);
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
}

footer p {
  margin: 0;
}

.detail-page {
  min-height: calc(100vh - 92px);
  padding: 6vh 7vw 12vh;
  background:
    linear-gradient(90deg, rgba(238, 230, 214, 0.96), rgba(238, 230, 214, 0.78)),
    url("ink-landscape.png") center / cover fixed;
}

.back {
  color: var(--muted);
  text-decoration: none;
  font: 12px "Noto Serif SC";
  letter-spacing: 0.08em;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 8vw;
  align-items: center;
  margin-top: 7vh;
}

.detail-image {
  position: relative;
  padding: 13px;
  border: 1px solid rgba(112, 88, 56, 0.25);
  background: rgba(239, 231, 216, 0.5);
  box-shadow: 0 35px 80px rgba(54, 41, 26, 0.18);
}

.detail-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.76) sepia(0.06);
}

.giant-index {
  position: absolute;
  right: -0.2em;
  bottom: -0.3em;
  color: rgba(155, 48, 43, 0.13);
  font: 160px Inter;
}

.detail-intro {
  position: relative;
  padding: 4vh 0;
}

.detail-intro::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0;
  width: 1px;
  height: 85px;
  background: linear-gradient(var(--red), transparent);
}

.detail-intro h1 {
  margin: 26px 0 12px;
  font: 400 clamp(44px, 6vw, 82px) / 1.2 "Noto Serif SC";
}

.lead {
  color: var(--red);
  font: 16px "Noto Serif SC";
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 40px 0;
  padding: 20px 0;
  border-block: 1px solid rgba(112, 88, 56, 0.3);
}

.facts div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.facts span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.facts b {
  font: 500 13px "Noto Serif SC";
}

.description {
  color: #50483f;
  font: 15px / 2 "Noto Serif SC";
}

.story {
  margin: 28px 0;
  padding: 14px 0 14px 20px;
  border-left: 2px solid var(--red);
  color: var(--muted);
  font: 13px / 1.8 "Noto Serif SC";
  background: linear-gradient(90deg, rgba(155, 48, 43, 0.055), transparent);
}

.primary-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  overflow: hidden;
  background: var(--red);
  color: white;
  text-decoration: none;
  font: 13px "Noto Serif SC";
  box-shadow: 0 14px 35px rgba(118, 35, 29, 0.2);
  transition: 0.35s;
}

.primary-link:hover {
  background: #7f2621;
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(118, 35, 29, 0.28);
}

.primary-link b {
  font-size: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.art-card.reveal:nth-child(even) {
  transition-delay: 0.12s;
}

@keyframes ink-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes seal-arrive {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(0.7);
  }
  to {
    opacity: 1;
    transform: rotate(-3deg) scale(1);
  }
}

@keyframes sun-drift {
  to {
    transform: translate(-2vw, 2vw) scale(1.04);
  }
}

@keyframes sound-pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.88);
  }
}

@media (max-width: 800px) {
  .topbar {
    height: 76px;
    padding-inline: 5vw;
  }

  .brand small,
  .sound-toggle em {
    display: none;
  }

  .top-actions {
    gap: 10px;
  }

  .sound-toggle {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
  }

  .hero {
    min-height: calc(100vh - 76px);
    padding: 10vh 7vw 8vh;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .hero-copy,
  .scroll-cue {
    margin-left: 0;
  }

  .hero-copy {
    max-width: 86%;
  }

  .hero-mark {
    right: 1%;
    font-size: 58px;
  }

  .collection {
    padding: 11vh 7vw 13vh;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 25px;
  }

  .art-grid {
    grid-template-columns: 1fr;
  }

  .art-card:nth-child(even) {
    margin-top: 4vh;
  }

  .enter-model {
    opacity: 1;
    transform: none;
  }

  .detail-page {
    min-height: calc(100vh - 76px);
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-image img {
    aspect-ratio: 4 / 3;
  }

  .giant-index {
    font-size: 100px;
  }

  .detail-intro h1 {
    font-size: 44px;
  }
}

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