:root {
  color-scheme: light;
  --ink: #15211b;
  --ink-soft: #506056;
  --night: #0f1815;
  --paper: #f6f7f2;
  --mint: #b8f5d6;
  --gold: #f3da9b;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Baskervville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: #223b2e; color: #f4f9f3; }
.night ::selection { background: var(--mint); color: #0f241a; }

button:focus-visible, a:focus-visible { outline: 2px solid #278461; outline-offset: 4px; border-radius: 4px; }
.night :focus-visible { outline-color: var(--mint); }

.symbols { width: 0; height: 0; position: absolute; overflow: hidden; }
.plane-top { transform: translateY(var(--plane-top, 0px)); transition: transform .38s var(--ease-out); }
.plane-bot { transform: translateY(var(--plane-bot, 0px)); transition: transform .38s var(--ease-out); }

.skip {
  position: fixed;
  left: 16px;
  top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  color: #0f241a;
  background: var(--mint);
  z-index: 20;
  transform: translateY(-180%);
  transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap {
  max-width: 1480px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(24px, 5.5vw, 84px);
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* --- Dark Night Hero Zone --- */
.night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f4f8f2;
  background:
    radial-gradient(64% 86% at 76% 46%, rgba(33, 62, 47, 0.48) 0%, transparent 72%),
    radial-gradient(48% 58% at 14% 10%, rgba(27, 50, 39, 0.42) 0%, transparent 70%),
    linear-gradient(180deg, #0b1310 0%, #101916 56%, #0d1613 100%);
}
.night::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 245, 214, 0.24) 24%, rgba(243, 218, 155, 0.2) 55%, rgba(184, 245, 214, 0.16) 82%, transparent);
  z-index: 2;
}

.mast {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: linear-gradient(180deg, rgba(11, 19, 16, 0.56), rgba(16, 25, 22, 0.16));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand, .nav-side, nav, .languages, .feature-action, .launch, .eyebrow, .legend, figcaption, .section-titles, .filters, .footer-name, .dialog-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  width: fit-content;
}
.brand svg {
  color: var(--mint);
  width: 32px;
  height: 35px;
  margin-right: 1px;
  transition: filter .35s var(--ease-out), transform .35s var(--ease-out);
}
.brand:hover, .brand:focus-visible {
  --plane-top: -1.8px;
  --plane-bot: 1.8px;
}
.brand:hover svg {
  filter: drop-shadow(0 0 10px rgba(184, 245, 214, 0.28));
}
.brand b {
  font-size: 1.4rem;
  letter-spacing: -.042em;
  line-height: 1;
  white-space: nowrap;
}

.nav-side { gap: clamp(16px, 2.4vw, 32px); }
nav { gap: clamp(16px, 2.3vw, 34px); }
nav a, nav button {
  position: relative;
  padding: 9px 2px;
  font-size: .93rem;
  white-space: nowrap;
  background: none;
  border: 0;
  color: #d8e2da;
  transition: color .22s ease;
}
nav a::after, nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s var(--ease-out);
}
nav a:hover, nav button:hover { color: #ffffff; }
nav a:hover::after, nav button:hover::after,
nav a:focus-visible::after, nav button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.languages {
  gap: 3px;
  padding-left: clamp(16px, 2.4vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.languages svg {
  height: 16px;
  width: 16px;
  margin-right: 5px;
  color: #9cb0a3;
}
.languages button {
  border: 0;
  padding: 5px 7px;
  min-height: 28px;
  border-radius: 5px;
  font: 520 .84rem/1 var(--sans);
  color: #9fb0a5;
  background: transparent;
  transition: color .2s ease, background .2s ease;
}
.languages button:hover { color: #e4efe7; }
.languages button[aria-pressed="true"] {
  color: var(--mint);
  font-weight: 700;
  background: rgba(184, 245, 214, 0.1);
}
.languages span { color: #63736b; font-size: .76rem; user-select: none; }

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  height: 32px;
  padding-inline: 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .2s ease, background .2s ease, transform .25s var(--ease-out);
}
.sound-toggle:hover {
  border-color: rgba(184, 245, 214, 0.38);
  background: rgba(184, 245, 214, 0.08);
}
.sound-toggle.is-playing,
.sound-toggle.is-armed {
  border-color: rgba(184, 245, 214, 0.42);
  background: rgba(184, 245, 214, 0.09);
}
.sound-toggle.is-armed .eq-bars i {
  background: var(--mint);
}
.sound-toggle.is-armed::after {
  content: attr(data-unlock-hint);
  font-size: .74rem;
  font-weight: 550;
  color: var(--mint);
  white-space: nowrap;
}
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}
.eq-bars i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: #b8c8be;
  transition: height .24s ease, background .24s ease, opacity .24s ease;
}
.eq-bars i:nth-child(1) { height: 4px; }
.eq-bars i:nth-child(2) { height: 10px; }
.eq-bars i:nth-child(3) { height: 6px; }
.eq-bars i:nth-child(4) { height: 8px; }
.sound-toggle.is-playing .eq-bars i {
  background: var(--mint);
  animation: eqSlideWave .92s ease-in-out infinite alternate;
}
.sound-toggle.is-playing .eq-bars i:nth-child(1) { animation-duration: .86s; }
.sound-toggle.is-playing .eq-bars i:nth-child(2) { animation-duration: .68s; animation-delay: -220ms; }
.sound-toggle.is-playing .eq-bars i:nth-child(3) { animation-duration: .98s; animation-delay: -410ms; }
.sound-toggle.is-playing .eq-bars i:nth-child(4) { animation-duration: .76s; animation-delay: -130ms; }
.sound-toggle.is-muted .eq-bars i {
  height: 2.5px;
  opacity: .42;
  animation: none;
}
@keyframes eqSlideWave {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* --- Hero Layout --- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 3.8vw, 60px);
  align-items: center;
  padding-block: clamp(34px, 3.8vw, 58px) clamp(38px, 4.4vw, 68px);
}
.feature-copy { padding: 6px 0 12px; }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: var(--mint);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .15em;
  gap: 8px;
  text-transform: uppercase;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(184, 245, 214, 0.07);
  border: 1px solid rgba(184, 245, 214, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.eyebrow svg {
  width: 12px;
  height: 12px;
  animation: starPulse 4.4s ease-in-out infinite;
}

h1, h2, h3, p, figure { margin: 0; }
h1 {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: clamp(2.65rem, 4.3vw, 4.35rem);
  line-height: 1.13;
  font-weight: 630;
  letter-spacing: -.052em;
  color: #f6faf5;
  text-wrap: balance;
}
html[lang="zh-CN"] h1 { word-break: keep-all; overflow-wrap: break-word; }

.second-title {
  margin: 11px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.52rem, 2.2vw, 2.38rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -.035em;
  color: var(--mint);
  opacity: .94;
  text-wrap: balance;
}

.intro {
  margin-top: clamp(18px, 1.9vw, 28px);
  color: #c2cfc5;
  font-size: clamp(1rem, 1.16vw, 1.11rem);
  line-height: 1.82;
  max-width: 24.5em;
  text-wrap: pretty;
}

.feature-action {
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(24px, 2.6vw, 40px);
  flex-wrap: wrap;
}
.launch {
  justify-content: center;
  gap: 10px;
  background: var(--mint);
  color: #0e251a;
  border: 1px solid rgba(208, 255, 229, 0.85);
  border-radius: 8px;
  padding: 12px 22px;
  min-height: 48px;
  font-size: .97rem;
  font-weight: 660;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 28px -8px rgba(184, 245, 214, 0.36);
  transition: background .2s ease, transform .26s var(--ease-out), box-shadow .26s var(--ease-out);
}
.launch:hover {
  background: #d2ffe6;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 34px -8px rgba(184, 245, 214, 0.52);
}
.launch:active { transform: translateY(0); }
.launch svg {
  width: 15px;
  height: 15px;
  transition: transform .24s var(--ease-out);
}
.launch:hover svg { transform: translateX(2px); }

.feature-meta {
  color: #b8c8bd;
  font-size: .89rem;
  letter-spacing: .02em;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(12, 20, 17, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(184, 245, 214, 0.12);
}

/* --- Specimen Viewfinder Frame --- */
.specimen {
  align-self: center;
  color: #9eb0a2;
  padding: 2px 0 0;
  perspective: 1100px;
}
.plot {
  margin: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.72;
  border-radius: 11px;
  border: 1px solid rgba(184, 245, 214, 0.17);
  background: radial-gradient(ellipse at 53% 49%, #22382b 0, #17271e 45%, #101916 78%);
  box-shadow:
    0 28px 64px -22px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease-out), border-color .35s ease, box-shadow .45s var(--ease-out);
  will-change: transform;
}
.plot:hover {
  border-color: rgba(184, 245, 214, 0.34);
  box-shadow:
    0 34px 72px -20px rgba(0, 0, 0, 0.8),
    0 0 36px -14px rgba(184, 245, 214, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.plot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(192, 227, 201, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 227, 201, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, black 45%, transparent 95%);
}
.plot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(380px circle at var(--mx, 72%) var(--my, 28%), rgba(255, 248, 226, 0.11), transparent 65%),
    linear-gradient(180deg, rgba(10, 18, 15, 0.18) 0%, transparent 26%, transparent 72%, rgba(9, 15, 13, 0.52) 100%);
}
.plot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03) translate3d(var(--ix, 0px), var(--iy, 0px), 0);
  transition: transform .55s var(--ease-out);
}
.reticle {
  width: 13px;
  height: 13px;
  position: absolute;
  z-index: 3;
  color: rgba(184, 245, 214, 0.62);
  border: 0 solid;
  pointer-events: none;
  transition: transform .35s var(--ease-out), color .3s ease;
}
.nw { left: 10px; top: 10px; border-left-width: 1.25px; border-top-width: 1.25px; }
.ne { right: 10px; top: 10px; border-right-width: 1.25px; border-top-width: 1.25px; }
.sw { left: 10px; bottom: 10px; border-left-width: 1.25px; border-bottom-width: 1.25px; }
.se { right: 10px; bottom: 10px; border-right-width: 1.25px; border-bottom-width: 1.25px; }
.plot:hover .nw { transform: translate(-2px, -2px); color: var(--mint); }
.plot:hover .ne { transform: translate(2px, -2px); color: var(--mint); }
.plot:hover .sw { transform: translate(-2px, 2px); color: var(--mint); }
.plot:hover .se { transform: translate(2px, 2px); color: var(--mint); }

.plot-spec {
  position: absolute;
  top: 12px;
  right: 28px;
  z-index: 3;
  font: 500 .66rem/1 var(--mono);
  letter-spacing: .09em;
  color: rgba(226, 242, 232, 0.72);
  background: rgba(10, 18, 15, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid rgba(184, 245, 214, 0.15);
  pointer-events: none;
}
.axis {
  position: absolute;
  left: 16px;
  bottom: 15px;
  z-index: 3;
  width: 28px;
  height: 28px;
  color: #a4d4b4;
  transform: rotate(calc(var(--ry, 0deg) * 1.6));
  transition: transform .4s var(--ease-out);
  pointer-events: none;
}

figcaption {
  margin-top: 13px;
  justify-content: space-between;
  gap: 10px;
  font-size: .77rem;
  padding-inline: 2px;
}
.legend { gap: 8px; color: #b2c2b6; }
.legend i {
  display: inline-block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #957249, #f9dfa2);
}
.credit {
  font: .75rem/1.2 var(--mono);
  letter-spacing: .09em;
  color: #9bb0a1;
}
.credit b { font: inherit; color: #6c8c79; margin: 0 .24em; }

/* --- Warm Paper Catalog Zone --- */
.paper-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(65% 55% at 88% 10%, rgba(206, 222, 209, 0.36) 0%, transparent 70%),
    radial-gradient(50% 50% at 8% 85%, rgba(224, 216, 198, 0.28) 0%, transparent 72%),
    linear-gradient(180deg, #f4f6f0 0%, #f7f8f3 38%, #f1f3ec 100%);
}

.collection {
  position: relative;
  z-index: 1;
  padding-block: clamp(44px, 4.8vw, 76px) clamp(54px, 5.8vw, 96px);
  scroll-margin-top: 16px;
}
.collection-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: clamp(26px, 2.8vw, 38px);
}
.section-titles { gap: .75rem; align-items: baseline; }
h2 {
  font-size: clamp(1.85rem, 2.6vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -.055em;
  font-weight: 640;
  color: var(--ink);
}
.work-count {
  font: 500 .84rem var(--mono);
  font-variant-numeric: tabular-nums;
  color: #5e7066;
}
.work-count::before { content: "["; opacity: .65; margin-right: 1px; }
.work-count::after { content: "]"; opacity: .65; margin-left: 1px; }

/* --- Sliding Filter Bar --- */
.filters {
  position: relative;
  gap: 2px;
  padding: 4px;
  background: rgba(21, 33, 27, 0.045);
  border: 1px solid rgba(21, 33, 27, 0.12);
  border-radius: 9px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.filter-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--glider-w, 0px);
  transform: translate3d(var(--glider-x, 4px), 0, 0);
  background: #1c3126;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 25, 22, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s var(--ease-spring), width .34s var(--ease-spring), opacity .2s ease;
}
.filters.has-glider .filter-glider { opacity: 1; }
.filters button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: 6px;
  white-space: nowrap;
  padding: 7px 14px;
  min-height: 33px;
  line-height: 1.15;
  color: #46574c;
  font-size: .88rem;
  font-weight: 520;
  transition: color .22s ease, background .2s ease;
}
.filters button:hover { color: #15211b; }
.filters:not(.has-glider) button[aria-pressed="true"] {
  background: #1c3126;
  color: #f4f9f3;
}
.filters.has-glider button[aria-pressed="true"] {
  color: #f4f9f3;
}

/* --- Portfolio Cards Grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 2.8vw, 38px) clamp(18px, 2.1vw, 30px);
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 10px;
  transition: transform .38s var(--ease-out);
}
.card[hidden] { display: none; }
.card:hover, .card:focus-visible { transform: translateY(-5px); }

.art {
  display: block;
  position: relative;
  aspect-ratio: 1.6;
  isolation: isolate;
  overflow: hidden;
  border-radius: 10px;
  background: #0b100e;
  border: 1px solid rgba(21, 33, 27, 0.12);
  box-shadow: 0 12px 28px -16px rgba(16, 25, 22, 0.28);
  transition: box-shadow .4s var(--ease-out), border-color .3s ease;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 12, 11, 0.24) 0%, transparent 32%, transparent 66%, rgba(8, 12, 11, 0.48) 100%);
  transition: opacity .35s ease;
}
.card:hover .art, .card:focus-visible .art {
  border-color: rgba(34, 84, 58, 0.36);
  box-shadow: 0 22px 44px -16px rgba(16, 25, 22, 0.4);
}
.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease-out);
}
.card:hover .art img, .card:focus-visible .art img {
  transform: scale(1.055);
}

.card-kind {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #edf4f0;
  font-size: .75rem;
  line-height: 1;
  font-weight: 540;
  background: rgba(10, 16, 14, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
}
.card-kind::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(184, 245, 214, 0.7);
}
.card-kind[data-kind="classic"]::before {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(243, 218, 155, 0.65);
}

.play-small {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: rgba(16, 25, 22, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f6faf7;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .3s var(--ease-out);
}
.play-small svg { height: 12px; width: 12px; margin-left: 1px; }
.card:hover .play-small, .card:focus-visible .play-small {
  background: var(--mint);
  color: #0e251a;
  border-color: var(--mint);
  transform: scale(1.08);
}

.card-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: #57675d;
  font-size: .78rem;
  margin: 15px 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(21, 33, 27, 0.1);
}
.card-meta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #276948;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease-out);
}
.card:hover .card-meta::after, .card:focus-visible .card-meta::after {
  transform: scaleX(1);
}
.card-origin {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.card-idx {
  font: 500 .73rem/1 var(--mono);
  color: #798b80;
  font-variant-numeric: tabular-nums;
}
.card-meta .maker {
  font-family: var(--mono);
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: .05em;
  color: #46584d;
}
.card-meta .length {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card h3 {
  font-size: clamp(1.12rem, 1.42vw, 1.34rem);
  font-weight: 640;
  line-height: 1.4;
  letter-spacing: -.032em;
  color: var(--ink);
  transition: color .22s ease;
}
.card:hover h3, .card:focus-visible h3 { color: #215e40; }
.card p {
  color: var(--ink-soft);
  margin-top: 7px;
  line-height: 1.68;
  font-size: .94rem;
  text-wrap: pretty;
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 1;
  color: #58675d;
  border-top: 1px solid rgba(21, 33, 27, 0.11);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 26px 30px;
  font-size: .85rem;
}
.footer-name {
  gap: 8px;
  font-size: 1.06rem;
  letter-spacing: -.038em;
  font-weight: 630;
  color: #213529;
}
.footer-name svg { width: 22px; height: 22px; color: #2b543e; }

/* --- About Dialog --- */
dialog {
  border: 1px solid rgba(184, 245, 214, 0.26);
  color: #eff6ed;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(44, 82, 62, 0.46), transparent 62%),
    #132019;
  border-radius: 14px;
  max-width: min(468px, calc(100vw - 32px));
  padding: 0;
  box-shadow: 0 32px 70px -18px rgba(0, 0, 0, 0.72);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity .26s var(--ease-out), transform .28s var(--ease-out), overlay .26s allow-discrete, display .26s allow-discrete;
}
dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}
dialog::backdrop {
  background: rgba(6, 13, 10, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .26s ease, overlay .26s allow-discrete, display .26s allow-discrete;
}
dialog[open]::backdrop { opacity: 1; }
@starting-style {
  dialog[open]::backdrop { opacity: 0; }
}

.dialog-inner { padding: clamp(26px, 4vw, 38px); }
.dialog-top { justify-content: space-between; margin-bottom: 22px; }
.about-mark { width: 34px; height: 36px; color: var(--mint); }
.dismiss {
  padding: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 245, 214, 0.24);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #d6e4da;
  transition: background .2s ease, border-color .2s ease, transform .25s var(--ease-out);
}
.dismiss:hover {
  background: rgba(184, 245, 214, 0.14);
  border-color: var(--mint);
  color: #ffffff;
  transform: rotate(90deg);
}
.dismiss svg { width: 16px; height: 16px; }
dialog h2 { font-size: 1.95rem; margin-bottom: 15px; color: #f5faf4; }
dialog p { line-height: 1.8; font-size: .99rem; color: #d3dfd6; }
dialog .about-note { color: #9eb2a4; margin-top: 14px; font-size: .89rem; }
.dialog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--mint);
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color .2s ease;
}
.dialog-link:hover { color: #dcffec; }

/* --- English Typography Tuning --- */
:lang(en) .eyebrow { letter-spacing: .14em; }
html[lang="en"] h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.2vw, 4.35rem);
  font-weight: 450;
  line-height: 1.06;
  letter-spacing: -.048em;
}
html[lang="en"] .second-title {
  font: 440 clamp(1.3rem, 1.82vw, 1.78rem)/1.35 var(--sans);
  letter-spacing: .005em;
}
html[lang="en"] .intro { max-width: 29em; line-height: 1.68; }

/* --- Entrance & Motion Choreography --- */
@keyframes starPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .88; }
  50% { transform: scale(1.18) rotate(12deg); opacity: 1; }
}
@keyframes mastReveal {
  from { opacity: 0; transform: translate3d(0, -10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes canvasFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
@keyframes specimenReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes reticleIn {
  from { opacity: 0; transform: scale(1.45); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes cardCascade {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

html.motion-ready .mast {
  animation: mastReveal .7s var(--ease-out) both;
}
html.motion-ready .night-canvas {
  animation: canvasFadeIn 1.15s ease-out both;
}
html.motion-ready .anim-hero {
  animation: heroReveal .85s var(--ease-out) var(--d, 0ms) both;
}
html.motion-ready .anim-specimen {
  animation: specimenReveal .95s var(--ease-out) 170ms both;
}
html.motion-ready .specimen .reticle {
  animation: reticleIn .7s var(--ease-out) 380ms both;
}

/* Scroll-triggered collection entrance */
html.motion-ready .collection.will-reveal .reveal-group {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.motion-ready .collection.will-reveal .card {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}
html.motion-ready .collection.will-reveal.is-visible .reveal-group {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--section-delay, 0ms);
}
html.motion-ready .collection.will-reveal.is-visible .card:not([hidden]) {
  animation: cardCascade .72s var(--ease-out) calc(var(--section-delay, 0ms) + 80ms + var(--card-i, 0) * 70ms) both;
}
html.motion-ready .collection.is-filtering .card:not([hidden]) {
  animation: cardCascade .38s var(--ease-out) calc(var(--card-i, 0) * 45ms) both;
}

.lang-switching [data-i],
.lang-switching #feature-alternate,
.lang-switching .card h3,
.lang-switching .card p {
  animation: canvasFadeIn .22s ease-out;
}

/* --- Responsive Breakpoints --- */
@media (min-width: 1520px) {
  .hero { padding-block: 58px 68px; }
}
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 28px; }
  h1 { font-size: clamp(2.25rem, 4.3vw, 3.1rem); }
  .intro { font-size: 1rem; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: clamp(20px, 5.4vw, 36px); }
  .bar { min-height: 64px; }
  .brand svg { width: 27px; height: 30px; margin: 0; }
  .brand { gap: 7px; }
  .brand b { font-size: 1.2rem; }
  .nav-side { gap: 15px; }
  .languages { padding-left: 12px; }
  nav { gap: 14px; }
  nav a, nav button { font-size: .88rem; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 30px 34px; }
  .feature-copy { padding: 0; }
  h1 { margin-top: 14px; font-size: clamp(2.05rem, 8.8vw, 3.35rem); }
  .second-title { font-size: clamp(1.38rem, 4.9vw, 1.92rem); }
  .eyebrow { font-size: .74rem; }
  .intro { margin-top: 15px; max-width: 32em; }
  .feature-action { margin-top: 22px; }
  .plot { aspect-ratio: 1.82; }
  .specimen { width: 100%; }
  figcaption { margin-top: 10px; }
  .collection-head { margin-bottom: 22px; }
  .collection { padding-block: 36px 50px; }
  html[lang="en"] h1 { font-size: clamp(2.2rem, 8.2vw, 3.5rem); }
  html[lang="en"] .second-title { font-size: 1.26rem; }
}
@media (max-width: 680px) {
  .bar {
    flex-wrap: wrap;
    padding-block: 10px;
    row-gap: 6px;
    gap: 8px 10px;
  }
  .brand svg { width: 23px; height: 25px; }
  .brand b { font-size: 1.04rem; }
  .nav-side { gap: 9px; margin-left: auto; }
  nav { gap: 11px; }
  nav a, nav button { font-size: .83rem; padding: 6px 1px; }
  .languages { padding-left: 8px; gap: 1px; }
  .languages svg { display: none; }
  .languages button { padding: 4px 4px; font-size: .8rem; }
  .sound-toggle { min-width: 30px; height: 28px; padding-inline: 7px; }
  .sound-toggle.is-armed::after { display: none; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .art { aspect-ratio: 1.66; }
  .plot-spec { display: none; }
  .collection-head { align-items: flex-start; gap: 14px; flex-direction: column; }
  .filters button { padding: 6px 12px; font-size: .85rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .brand b { font-size: .98rem; }
  .nav-side { gap: 7px; }
  nav { gap: 9px; }
  nav a, nav button { font-size: .8rem; }
  .languages { padding-left: 6px; }
}
@media (max-width: 350px) {
  .brand svg, .languages svg { display: none; }
  .bar { gap: 6px; }
}

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