:root {
  --ink: #11110f;
  --ink-soft: #1a1a17;
  --paper: #f0efe9;
  --paper-bright: #f8f7f2;
  --orange: #ff6238;
  --orange-dark: #e94e26;
  --muted: #7a7a72;
  --line: rgba(17, 17, 15, 0.18);
  --line-light: rgba(255, 255, 255, 0.18);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --serif: "Songti SC", "STSong", SimSun, "Noto Serif SC", serif;
  --shell: min(1280px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading,
body.dialog-open {
  overflow: hidden;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

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

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

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  color: #f5f4ef;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  position: absolute;
  top: 32px;
  left: 40px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.loader-brand span {
  margin-left: 4px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
  vertical-align: top;
}

.loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-label {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.loader-number {
  font-family: var(--mono);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
}

.loader-line {
  position: absolute;
  right: 40px;
  bottom: 40px;
  left: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.loader-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  width: min(1120px, calc(100vw - 48px));
  height: 68px;
  padding: 0 14px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(248, 247, 242, 0.94);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: top 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  top: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  margin-right: 11px;
  place-items: center;
  background: var(--orange);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-dot {
  color: var(--orange);
}

.brand-sub {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-right: 42px;
}

.desktop-nav a {
  position: relative;
  padding: 23px 0 21px;
  font-size: 13px;
  font-weight: 500;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav a span {
  margin-right: 5px;
  color: #94948c;
  font-family: var(--mono);
  font-size: 9px;
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 138px;
  height: 40px;
  padding: 0 13px;
  background: var(--ink);
  color: var(--paper-bright);
  font-size: 12px;
  transition: background 0.25s ease;
}

.header-cta:hover {
  background: var(--orange);
  color: var(--ink);
}

.header-cta span {
  font-size: 17px;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 780px;
  height: 100svh;
  overflow: hidden;
  background: #111;
  color: var(--paper-bright);
}

.hero-background {
  position: absolute;
  inset: -3%;
  background: url("assets/images/hero-panda.jpg") center / cover no-repeat;
  filter: contrast(1.08) brightness(0.72);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-background::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.46) 46%, rgba(5, 5, 5, 0.18) 72%, rgba(5, 5, 5, 0.56) 100%), linear-gradient(0deg, rgba(7, 7, 7, 0.75) 0%, transparent 40%, rgba(7, 7, 7, 0.22) 100%);
  content: "";
}

.hero-glow {
  position: absolute;
  top: 8%;
  right: 2%;
  width: 62vw;
  height: 72vw;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 98, 56, 0.32) 0%, rgba(255, 98, 56, 0.07) 38%, transparent 69%);
  filter: blur(24px);
  mix-blend-mode: screen;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.hero-meta {
  position: absolute;
  z-index: 2;
  top: 122px;
  right: 5vw;
  left: 5vw;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-meta span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 15px var(--orange);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  bottom: 15%;
  left: max(5vw, calc((100vw - 1440px) / 2));
  max-width: 780px;
}

.hero-kicker {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-kicker span {
  margin: 0 8px;
  color: var(--orange);
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 6.8vw, 108px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.075em;
}

.serif-italic {
  color: var(--orange);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.hero-intro {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 154px;
  height: 48px;
  padding: 0 17px;
  border: 1px solid transparent;
  font-size: 12px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button span {
  font-size: 18px;
}

.button-primary {
  background: var(--orange);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--paper-bright);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero-scene {
  position: absolute;
  z-index: 2;
  top: 19%;
  right: 4vw;
  width: min(43vw, 650px);
  height: min(43vw, 650px);
  perspective: 1100px;
}

.cube-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateX(-16deg) rotateY(32deg);
  transform-style: preserve-3d;
  animation: cubeTurn 12s ease-in-out infinite alternate;
  transition: transform 0.25s ease-out;
}

.cube-face {
  position: absolute;
  display: grid;
  width: 240px;
  height: 240px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #171714;
  place-items: center;
  backface-visibility: hidden;
}

.cube-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08);
}

.cube-face::after {
  position: absolute;
  inset: 0;
  border: 10px solid rgba(255, 255, 255, 0.05);
  content: "";
  pointer-events: none;
}

.cube-face span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.05em;
  text-align: center;
}

.cube-front { transform: translateZ(120px); }
.cube-back { transform: rotateY(180deg) translateZ(120px); }
.cube-right { transform: rotateY(90deg) translateZ(120px); }
.cube-left { transform: rotateY(-90deg) translateZ(120px); }
.cube-top { transform: rotateX(90deg) translateZ(120px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(120px); }

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 20px var(--orange);
  content: "";
}

.orbit-one {
  width: 92%;
  height: 44%;
  animation: orbitPulse 7s ease-in-out infinite alternate;
}

.orbit-two {
  width: 56%;
  height: 90%;
  transform: translate(-50%, -50%) rotate(48deg);
}

.scene-label {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.scene-label-top {
  top: 3%;
  right: 6%;
  text-align: right;
}

.scene-label-bottom {
  right: 7%;
  bottom: 7%;
  left: 7%;
  display: flex;
  justify-content: space-between;
}

.scene-label-bottom span:last-child {
  color: var(--orange);
}

.hero-side-note {
  position: absolute;
  z-index: 2;
  top: 49%;
  right: 22px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.scroll-cue i::after {
  position: absolute;
  top: 11px;
  left: 19px;
  width: 1px;
  height: 16px;
  background: #fff;
  content: "";
  animation: scrollArrow 1.8s ease-in-out infinite;
}

.hero-ruler {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  height: 45px;
  padding: 0 3vw;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 8px;
}

.hero-ruler span {
  position: relative;
  padding-top: 15px;
}

.hero-ruler span::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 7px;
  background: rgba(255, 255, 255, 0.4);
  content: "";
}

.section-topline {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.section-topline span:nth-child(2) {
  text-align: center;
}

.gallery-section,
.library-section {
  padding: 108px 0 130px;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: end;
  gap: 60px;
  padding: 58px 0 64px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(58px, 7.2vw, 106px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.09em;
}

.heading-serif {
  margin-left: 0.12em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.section-heading p {
  margin: 0 0 8px;
  color: #62625c;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-width: 90px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-button sup {
  margin-left: 6px;
  color: #88887f;
  font-family: var(--mono);
  font-size: 8px;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.filter-button.active sup {
  color: var(--orange);
}

.demo-note {
  color: #898981;
  font-size: 10px;
}

.art-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, 1fr);
  gap: 52px 24px;
}

.art-card {
  display: block;
  grid-column: span 6;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.art-card:nth-child(6n + 1) { grid-column: span 7; }
.art-card:nth-child(6n + 2) { grid-column: span 5; }
.art-card:nth-child(6n + 3) { grid-column: span 5; }
.art-card:nth-child(6n + 4) { grid-column: span 7; }
.art-card:nth-child(6n + 5) { grid-column: span 7; }
.art-card:nth-child(6n + 6) { grid-column: span 5; }

.art-card[hidden] {
  display: none;
}

.art-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d7d6d0;
}

.art-card:nth-child(6n + 2) .art-image-wrap,
.art-card:nth-child(6n + 3) .art-image-wrap,
.art-card:nth-child(6n + 6) .art-image-wrap {
  aspect-ratio: 4 / 4.3;
}

.art-image-wrap::after {
  position: absolute;
  inset: 0;
  border: 0 solid var(--orange);
  content: "";
  pointer-events: none;
  transition: border-width 0.25s ease;
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0, 1), filter 0.5s ease;
}

.art-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.1);
}

.art-card:hover .art-image-wrap::after {
  border-width: 5px;
}

.art-open {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 21px;
  opacity: 0;
  place-items: center;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.art-card:hover .art-open {
  opacity: 1;
  transform: translateY(0);
}

.art-id {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 8px;
  background: rgba(17, 17, 15, 0.82);
  color: #fff;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.art-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
}

.art-caption h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.art-caption p {
  margin: 6px 0 0;
  color: #77776f;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.art-category {
  flex-shrink: 0;
  padding-top: 5px;
  color: #66665f;
  font-size: 11px;
}

.art-category::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
  vertical-align: 2px;
}

.lora-section {
  padding: 105px 0 125px;
  background: var(--ink);
  color: var(--paper-bright);
}

.section-topline-dark {
  border-color: var(--line-light);
  color: rgba(255, 255, 255, 0.58);
}

.lora-heading {
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: end;
  gap: 60px;
  padding: 62px 0 70px;
}

.mini-label {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.lora-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.07em;
}

.lora-heading h2 span {
  color: var(--orange);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.lora-heading > p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.9;
}

.lora-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.lora-card {
  position: relative;
  min-height: 380px;
  padding: 27px 28px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  transition: background 0.3s ease, color 0.3s ease;
}

.lora-card:hover {
  background: var(--paper-bright);
  color: var(--ink);
}

.lora-index {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 9px;
}

.lora-card:hover .lora-index {
  color: #77776f;
}

.lora-arrow {
  color: var(--orange);
  font-size: 25px;
  transition: transform 0.3s ease;
}

.lora-card:hover .lora-arrow {
  transform: translate(5px, -5px);
}

.lora-card h3 {
  margin: 58px 0 6px;
  font-family: var(--mono);
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.lora-chinese {
  margin: 0 0 28px;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 17px;
}

.lora-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
}

.lora-card:hover .lora-description {
  color: #66665f;
}

.lora-weight {
  position: absolute;
  right: 28px;
  bottom: 25px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
  font-family: var(--mono);
  font-size: 9px;
}

.lora-card:hover .lora-weight {
  border-color: var(--line);
}

.lora-weight span:last-child {
  color: var(--orange);
}

.subsection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.subsection-heading h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.subsection-heading span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.book-card {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.book-cover {
  position: relative;
  aspect-ratio: 4 / 4.7;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0, 1), box-shadow 0.4s ease;
}

.book-card:hover .book-cover {
  box-shadow: 0 22px 45px rgba(17, 17, 15, 0.18);
  transform: translateY(-8px) rotate(-1deg);
}

.cover-mist {
  background: radial-gradient(circle at 75% 30%, rgba(221, 235, 224, 0.35), transparent 28%), linear-gradient(145deg, #1e3c3a, #0c1e22 68%, #071115);
}

.cover-moon {
  background: radial-gradient(circle at 66% 31%, #e9e2bd 0 9%, #b9b397 9.3%, transparent 9.8%), linear-gradient(160deg, #202348, #101327 70%);
}

.cover-sunset {
  background: linear-gradient(180deg, transparent 52%, rgba(20, 12, 8, 0.8) 52.2%, transparent 52.8%), radial-gradient(circle at 50% 52%, #ffcf71 0 11%, transparent 11.5%), linear-gradient(160deg, #f27a43, #a93429 68%, #4e1e22);
}

.book-cover::before {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  content: "";
}

.book-cover::after {
  position: absolute;
  right: -20%;
  bottom: -15%;
  width: 85%;
  height: 60%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
  transform: rotate(-25deg);
}

.book-cover-top,
.book-cover-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.book-cover-title {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 68px;
  left: 28px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.book-cover-bottom {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
}

.book-info {
  padding: 18px 2px 0;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  color: #77776f;
  font-family: var(--mono);
  font-size: 9px;
}

.book-meta span:last-child {
  color: var(--orange-dark);
}

.book-info h4 {
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.book-info p {
  margin: 0;
  color: #6e6e66;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
}

.book-read {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
}

.book-read span {
  color: var(--orange-dark);
  font-size: 16px;
}

.recommendations {
  margin-top: 115px;
}

.recommendation-row {
  display: grid;
  grid-template-columns: 70px minmax(230px, 1fr) 1.2fr 36px;
  align-items: center;
  gap: 30px;
  min-height: 126px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease;
}

.recommendation-row:hover {
  padding: 0 18px;
  background: var(--paper-bright);
}

.recommendation-index {
  color: #8b8b83;
  font-family: var(--mono);
  font-size: 10px;
}

.recommendation-title {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.recommendation-title h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.recommendation-title span {
  color: #73736c;
  font-size: 11px;
}

.recommendation-reason {
  margin: 0;
  color: #6d6d65;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
}

.recommendation-tag {
  display: block;
  margin-bottom: 6px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.recommendation-arrow {
  font-size: 25px;
  transition: transform 0.25s ease;
}

.recommendation-row:hover .recommendation-arrow {
  color: var(--orange-dark);
  transform: translate(4px, -4px);
}

.about-section {
  position: relative;
  overflow: hidden;
  padding: 85px 0 80px;
  background: var(--orange);
  color: var(--ink);
}

.about-orbit {
  position: absolute;
  top: 15%;
  right: -10vw;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(17, 17, 15, 0.22);
  border-radius: 50%;
}

.about-orbit::before,
.about-orbit::after {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(17, 17, 15, 0.18);
  border-radius: 50%;
  content: "";
}

.about-orbit::after {
  inset: 29%;
}

.about-inner {
  position: relative;
  z-index: 1;
}

.about-topline {
  margin-bottom: 85px;
  border-color: rgba(17, 17, 15, 0.3);
}

.about-section h2 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(40px, 5.8vw, 82px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.07em;
}

.about-section h2 span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.about-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 75px;
}

.about-bottom p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}

.round-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.round-link span {
  margin-left: 8px;
  font-size: 20px;
}

.round-link:hover {
  background: var(--ink);
  color: var(--orange);
  transform: rotate(-8deg);
}

.site-footer {
  padding: 72px 4vw 22px;
  background: var(--ink);
  color: var(--paper-bright);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  padding-bottom: 75px;
}

.footer-brand {
  font-size: clamp(70px, 10vw, 150px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.11em;
}

.footer-brand span {
  margin-left: 10px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 13px;
  vertical-align: top;
}

.footer-main > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 2;
  letter-spacing: 0.08em;
}

.footer-time {
  text-align: right;
}

.footer-time span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.footer-time strong {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 300;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(8px);
}

dialog[open] {
  animation: dialogIn 0.35s ease both;
}

.art-dialog {
  width: min(1180px, calc(100vw - 56px));
  height: min(820px, calc(100svh - 56px));
  background: var(--paper-bright);
}

.art-dialog-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  height: 100%;
}

.art-dialog-image {
  min-height: 0;
  background: #1b1b19;
}

.art-dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-dialog-content {
  position: relative;
  overflow-y: auto;
  padding: 54px 40px 40px;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.art-dialog-content > .dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.dialog-close:hover {
  background: var(--ink);
  color: var(--paper-bright);
}

.dialog-index {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.art-dialog-content h2 {
  margin: 20px 0 5px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.dialog-english {
  margin: 0;
  color: #85857d;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.dialog-description {
  margin: 28px 0;
  color: #5e5e57;
  font-size: 12px;
  line-height: 1.9;
}

.art-specs {
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}

.art-specs div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.art-specs dt {
  color: #85857d;
  font-family: var(--mono);
}

.art-specs dd {
  margin: 0;
  text-align: right;
}

.prompt-block {
  padding: 16px;
  background: #e8e7e1;
}

.prompt-block > div {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.prompt-block button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.prompt-block p {
  margin: 13px 0 0;
  color: #66665f;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.used-loras {
  margin-top: 25px;
}

.used-loras > span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.used-loras > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.used-loras > div span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 9px;
}

.reader-dialog {
  width: min(900px, calc(100vw - 48px));
  height: calc(100svh - 48px);
  background: var(--paper-bright);
}

.reader-shell {
  position: relative;
  height: 100%;
}

.reader-progress {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #dfded8;
}

.reader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.reader-header {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 242, 0.96);
}

.reader-header > div:first-child span {
  display: block;
  margin-bottom: 5px;
  color: #83837b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.reader-header > div:first-child strong {
  font-size: 13px;
  font-weight: 500;
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-controls > button:not(.dialog-close) {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
}

.reader-controls > button:not(.dialog-close):hover {
  background: #e5e4de;
}

.reader-close {
  margin-left: 8px;
}

.reader-body {
  height: 100%;
  overflow-y: auto;
  padding: 142px max(60px, calc((100% - 620px) / 2)) 80px;
}

.reader-chapter {
  margin: 0 0 20px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
}

.reader-body h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: center;
}

.reader-subtitle {
  margin: 20px 0 54px;
  color: #77776f;
  font-family: var(--serif);
  font-size: 14px;
  text-align: center;
}

.reader-prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2.15;
}

.reader-prose p {
  margin: 0 0 1.35em;
  text-indent: 2em;
}

.reader-prose p:first-child::first-letter {
  float: left;
  margin: 0.12em 0.12em 0 0;
  color: var(--orange-dark);
  font-size: 3.2em;
  line-height: 0.8;
}

.reader-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 65px;
  color: #8a8a82;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.reader-end span {
  color: var(--orange-dark);
  font-size: 8px;
}

.toast {
  position: fixed;
  z-index: 1000;
  bottom: 28px;
  left: 50%;
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1%, 1%, 0); }
}

@keyframes cubeTurn {
  0% { transform: rotateX(-16deg) rotateY(28deg) translateY(0); }
  100% { transform: rotateX(-8deg) rotateY(52deg) translateY(-18px); }
}

@keyframes orbitPulse {
  from { transform: translate(-50%, -50%) rotate(-18deg) scale(0.96); opacity: 0.5; }
  to { transform: translate(-50%, -50%) rotate(-12deg) scale(1.03); opacity: 1; }
}

@keyframes scrollArrow {
  0%, 100% { transform: translateY(-3px); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 1; }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 56px, 1280px);
  }

  .hero-copy {
    left: 5vw;
  }

  .hero h1 {
    font-size: clamp(54px, 7.4vw, 82px);
  }

  .hero-scene {
    right: -5vw;
    width: 52vw;
    height: 52vw;
    opacity: 0.85;
  }

  .cube-wrap,
  .cube-face {
    width: 200px;
    height: 200px;
  }

  .cube-front { transform: translateZ(100px); }
  .cube-back { transform: rotateY(180deg) translateZ(100px); }
  .cube-right { transform: rotateY(90deg) translateZ(100px); }
  .cube-left { transform: rotateY(-90deg) translateZ(100px); }
  .cube-top { transform: rotateX(90deg) translateZ(100px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(100px); }

  .section-heading,
  .lora-heading {
    grid-template-columns: 1fr 280px;
    gap: 35px;
  }

  .lora-card {
    min-height: 400px;
    padding: 24px 20px;
  }

  .lora-weight {
    right: 20px;
    left: 20px;
  }

  .book-cover {
    padding: 22px;
  }

  .book-cover-title {
    right: 22px;
    left: 22px;
    font-size: 35px;
  }

  .book-cover-bottom {
    right: 22px;
    left: 22px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 40px);
  }

  html {
    scroll-padding-top: 85px;
  }

  .site-header {
    top: 12px;
    width: calc(100vw - 24px);
    height: 60px;
    padding: 0 12px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-sub,
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: var(--ink);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 1px;
    background: #fff;
    transition: transform 0.25s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    padding: 10px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(248, 247, 242, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  }

  .mobile-nav.is-open {
    display: block;
  }

  .mobile-nav a {
    display: flex;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-nav a span {
    color: var(--orange-dark);
    font-family: var(--mono);
    font-size: 10px;
  }

  .hero {
    min-height: 800px;
    height: 100svh;
  }

  .hero-meta {
    top: 95px;
    right: 20px;
    left: 20px;
  }

  .hero-meta span:last-child {
    display: none;
  }

  .hero-copy {
    right: 20px;
    bottom: 14%;
    left: 20px;
  }

  .hero h1 {
    font-size: clamp(45px, 12vw, 72px);
    line-height: 1.18;
  }

  .hero-kicker {
    margin-bottom: 18px;
    font-size: 8px;
  }

  .hero-intro {
    margin-top: 22px;
    font-size: 12px;
  }

  .desktop-only {
    display: none;
  }

  .hero-actions {
    margin-top: 25px;
  }

  .button {
    width: 142px;
    height: 45px;
  }

  .hero-scene {
    top: 12%;
    right: -85px;
    width: 390px;
    height: 390px;
    opacity: 0.54;
  }

  .cube-wrap,
  .cube-face {
    width: 145px;
    height: 145px;
  }

  .cube-front { transform: translateZ(72.5px); }
  .cube-back { transform: rotateY(180deg) translateZ(72.5px); }
  .cube-right { transform: rotateY(90deg) translateZ(72.5px); }
  .cube-left { transform: rotateY(-90deg) translateZ(72.5px); }
  .cube-top { transform: rotateX(90deg) translateZ(72.5px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(72.5px); }

  .scene-label {
    display: none;
  }

  .hero-side-note,
  .scroll-cue {
    display: none;
  }

  .hero-ruler {
    padding: 0 20px;
  }

  .hero-ruler span:nth-child(even) {
    display: none;
  }

  .gallery-section,
  .library-section,
  .lora-section {
    padding: 75px 0 85px;
  }

  .section-topline {
    grid-template-columns: 1fr auto;
    font-size: 8px;
  }

  .section-topline span:nth-child(2) {
    display: none;
  }

  .section-heading,
  .lora-heading {
    display: block;
    padding: 40px 0 45px;
  }

  .section-heading h2 {
    font-size: clamp(52px, 14vw, 80px);
  }

  .section-heading p,
  .lora-heading > p {
    margin-top: 26px;
  }

  .gallery-toolbar {
    display: block;
  }

  .filter-group {
    gap: 6px;
  }

  .filter-button {
    min-width: 0;
    padding: 9px 13px;
  }

  .demo-note {
    display: block;
    margin-top: 16px;
  }

  .art-grid {
    display: block;
  }

  .art-card {
    width: 100%;
    margin-bottom: 42px;
  }

  .art-card:nth-child(n) .art-image-wrap {
    aspect-ratio: 4 / 3.4;
  }

  .art-open {
    opacity: 1;
    transform: none;
  }

  .lora-heading h2 {
    font-size: 46px;
  }

  .lora-grid {
    display: block;
    border-left: 0;
  }

  .lora-card {
    min-height: 340px;
    border-left: 1px solid var(--line-light);
  }

  .lora-card h3 {
    font-size: 29px;
  }

  .books-grid {
    display: block;
  }

  .book-card {
    display: block;
    width: 100%;
    margin-bottom: 52px;
  }

  .book-cover {
    aspect-ratio: 4 / 4.25;
    padding: 28px;
  }

  .book-cover-title {
    right: 28px;
    bottom: 70px;
    left: 28px;
    font-size: 46px;
  }

  .book-cover-bottom {
    right: 28px;
    bottom: 28px;
    left: 28px;
  }

  .recommendations {
    margin-top: 75px;
  }

  .subsection-heading span {
    font-size: 8px;
  }

  .recommendation-row {
    grid-template-columns: 32px 1fr 25px;
    gap: 12px;
    padding: 22px 0;
  }

  .recommendation-row:hover {
    padding: 22px 8px;
  }

  .recommendation-title {
    display: block;
  }

  .recommendation-title h4 {
    font-size: 24px;
  }

  .recommendation-title span {
    display: block;
    margin-top: 5px;
  }

  .recommendation-reason {
    grid-column: 2 / 4;
    font-size: 11px;
  }

  .recommendation-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .about-section {
    padding: 60px 0;
  }

  .about-topline {
    margin-bottom: 60px;
  }

  .about-section h2 {
    font-size: 42px;
    line-height: 1.45;
  }

  .about-bottom {
    align-items: flex-start;
    margin-top: 50px;
  }

  .round-link {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    margin-left: 20px;
  }

  .site-footer {
    padding: 55px 20px 22px;
  }

  .footer-main {
    grid-template-columns: 1fr auto;
    gap: 45px 0;
    padding-bottom: 50px;
  }

  .footer-brand {
    grid-column: 1 / 3;
    font-size: 88px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 9px;
  }

  .art-dialog {
    width: calc(100vw - 24px);
    height: calc(100svh - 24px);
    overflow-y: auto;
  }

  .art-dialog-layout {
    display: block;
    height: auto;
  }

  .art-dialog-image {
    height: 52svh;
  }

  .art-dialog-content {
    overflow: visible;
    padding: 45px 24px 35px;
  }

  .reader-dialog {
    width: calc(100vw - 20px);
    height: calc(100svh - 20px);
  }

  .reader-header {
    height: 70px;
    padding: 0 16px;
  }

  .reader-header > div:first-child span {
    display: none;
  }

  .reader-controls {
    gap: 5px;
  }

  .reader-controls > button:not(.dialog-close),
  .reader-close {
    width: 34px;
    height: 34px;
  }

  .reader-body {
    padding: 120px 24px 60px;
  }

  .reader-body h2 {
    font-size: 38px;
  }

  .reader-prose {
    font-size: 17px;
    line-height: 2.05;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 47px;
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    width: 136px;
    padding: 0 13px;
  }

  .book-cover-title {
    font-size: 40px;
  }

  .about-section h2 {
    font-size: 35px;
  }

  .about-bottom p {
    font-size: 11px;
  }

  .round-link {
    width: 76px;
    height: 76px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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