:root {
  color-scheme: dark;
  --bg: #080a12;
  --surface: rgba(18, 20, 35, 0.72);
  --surface-strong: rgba(24, 27, 46, 0.9);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4f2ff;
  --muted: #a3a5b5;
  --primary: #8f77ff;
  --accent: #23d5ab;
  --max-width: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(72, 43, 130, 0.22), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  height: auto;
}

#three-root {
  display: contents;
}

#three-webgl {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.1s ease;
}

#three-webgl.is-ready {
  opacity: 1;
}

body[data-header="cinema"] #three-webgl.is-ready {
  opacity: 0.94;
}

#three-css3d {
  position: fixed;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

#three-css3d.is-spatial-visible {
  opacity: 1;
}

#three-css3d > div {
  pointer-events: none !important;
}

#three-css3d a,
#three-css3d .spatial-node {
  pointer-events: auto !important;
  cursor: pointer;
}

#three-css3d .ashen-topics__links {
  mix-blend-mode: screen;
  pointer-events: none !important;
}

#reading-progress {
  position: fixed;
  z-index: 30;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 10, 18, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: min-height 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-compact {
  min-height: 52px;
  background: rgba(8, 10, 18, 0.88);
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px 8px 4px 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 22px var(--primary);
  transform: rotate(20deg);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}

body[data-header="cinema"] .brand--avatar {
  gap: 0;
}

body[data-header="cinema"] .brand-avatar {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.site-main {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding-top: 100px;
}

.hero {
  display: flex;
  min-height: min(760px, 88vh);
  max-width: 900px;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero h1,
.page-header h1,
.article-header h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.8rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 850px;
  background: linear-gradient(120deg, #fff 20%, #bcb2ff 54%, #5de5c4);
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 600px;
  margin: 30px 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.page-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 0 45px rgba(143, 119, 255, 0.22);
  transform: translate3d(0, var(--parallax-y, 0), 0) rotate(-4deg);
  transition: transform 120ms linear;
}

[data-three-parallax]:not(.page-icon) {
  transform: translate3d(0, var(--parallax-y, 0), 0);
  transition: transform 100ms linear;
}

.hero-action,
.text-link,
.back-link {
  width: fit-content;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.content-section,
.listing-shell,
.article-shell {
  padding: 80px 0 120px;
}

.section-heading {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.05em;
}

.section-heading > span,
.page-header p,
.article-meta {
  color: var(--muted);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.spatial-toggle {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

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

.post-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 500ms ease var(--delay),
    transform 500ms ease var(--delay),
    border-color 200ms ease;
}

.post-card-cover {
  display: block;
  height: 140px;
  margin: -14px -14px 20px;
  overflow: hidden;
  border-radius: 14px;
}

.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.post-card:hover .post-card-cover img {
  transform: scale(1.045);
}

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

.post-grid-block {
  grid-template-columns: 1fr;
}

.post-grid-block .post-card {
  display: grid;
  min-height: 220px;
  grid-template-columns: minmax(220px, 34%) 1fr auto;
  gap: 0 26px;
}

.post-grid-block .post-card-cover {
  grid-row: 1 / span 4;
  height: 100%;
  margin: 0;
}

.post-grid-block .post-card-meta,
.post-grid-block .post-card h3,
.post-grid-block .post-card p {
  grid-column: 2 / 4;
}

.post-grid-block .post-card h3 {
  margin: 20px 0 8px;
}

.post-grid-block .post-card .text-link {
  grid-column: 2;
}

.post-card:hover {
  border-color: rgba(143, 119, 255, 0.55);
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
}

.post-card h3 {
  margin: 34px 0 14px;
  font-size: 1.45rem;
  line-height: 1.35;
}

.post-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card .text-link {
  margin-top: auto;
  padding-top: 24px;
}

.text-link span {
  color: var(--accent);
}

.page-header {
  position: relative;
  z-index: 5;
  max-width: 800px;
  margin: 70px 0 70px;
}

.page-header h1,
.article-header h1 {
  font-size: clamp(2.8rem, 7vw, 6.3rem);
}

.page-header > p:last-child {
  margin-top: 24px;
  font-size: 1.05rem;
}

.timeline {
  max-width: 900px;
}

.timeline-year {
  margin: 55px 0 8px;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
}

.timeline-item a {
  font-size: 1.08rem;
  transition: color 180ms ease, transform 180ms ease;
}

.timeline-item a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

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

.taxonomy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.taxonomy-card strong {
  color: var(--accent);
  font-family: ui-monospace, Consolas, monospace;
}

.tag-cloud {
  display: flex;
  max-width: 900px;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud a,
.taxonomy a,
.article-tags a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.tag-cloud a {
  font-size: calc(0.8rem + var(--weight) * 0.045rem);
}

.tag-cloud sup {
  margin-left: 5px;
  color: var(--accent);
}

.article-shell {
  width: min(100%, 860px);
  margin: 0 auto;
}

.article-header {
  padding: 80px 0 60px;
}

.article-meta {
  display: flex;
  gap: 22px;
  margin: 40px 0 18px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
}

.taxonomy,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.78rem;
}

.article-content {
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2em 0 0.7em;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.8rem;
}

.article-content p,
.article-content li {
  color: #1b3148;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content blockquote {
  margin: 1.5em 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--primary);
  color: #3a5168;
}

.article-content pre {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #152536;
}

.article-content pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 0;
  background: transparent;
  color: #e7eef6;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
  color: #c678dd;
}

.hljs-string,
.hljs-attribute {
  color: #98c379;
}

.hljs-title,
.hljs-function,
.hljs-section {
  color: #61afef;
}

.hljs-number,
.hljs-meta {
  color: #d19a66;
}

.hljs-comment,
.hljs-quote {
  color: #6f7683;
  font-style: italic;
}

.article-content code {
  font-family: "Cascadia Code", Consolas, monospace;
}

.article-content [data-fancybox] img {
  cursor: zoom-in;
}

.article-content :not(pre) > code {
  padding: 0.16em 0.4em;
  border-radius: 5px;
  background: rgba(23, 48, 74, 0.08);
  color: #14324c;
}

.article-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 10px 14px;
  border: 1px solid var(--line);
}

.portrait {
  width: 128px;
  height: 128px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 32px;
  object-fit: cover;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 50px;
}

.post-nav a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.post-nav small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 45px;
}

.pagination a,
.pagination .current,
.pagination .space {
  min-width: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.pagination .current {
  border-color: var(--primary);
  background: rgba(143, 119, 255, 0.18);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  justify-content: space-between;
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.spatial-placeholder {
  min-width: 1px;
  min-height: 1px;
  border: 0;
  border-radius: var(--radius);
  visibility: hidden;
}

.spatial-node {
  opacity: 1 !important;
  transition: border-color 180ms ease, box-shadow 180ms ease !important;
  will-change: transform;
}

.spatial-node:hover,
.spatial-node:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(35, 213, 171, 0.2);
}

.taxonomy-card {
  background:
    linear-gradient(rgba(12, 14, 26, 0.8), rgba(12, 14, 26, 0.88)),
    var(--taxonomy-cover) center / cover;
}

.article-header-cover {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 60px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.25), rgba(8, 10, 18, 0.94)),
    var(--article-cover) center / cover;
}

.post-toc {
  margin: 0 0 22px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(16px);
}

.post-toc strong {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.post-toc ol {
  margin: 10px 0 0;
}

.post-toc a {
  color: var(--muted);
  font-size: 0.84rem;
}

.post-toc a:hover {
  color: var(--text);
}

.social-links,
.friends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.social-links a,
.friend-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}

.social-links img,
.friend-card img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.friend-card span,
.friend-card small {
  display: block;
}

.friend-card small {
  color: var(--muted);
}

.comment-shell {
  margin-top: 50px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: #20222b;
}

.go-top {
  position: fixed;
  z-index: 22;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(18, 20, 35, 0.86);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.hub-rail {
  position: fixed;
  z-index: 24;
  top: 50%;
  right: max(14px, 1.4vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.hub-rail-bar {
  width: 4px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 180ms ease, height 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hub-rail-bar:hover {
  background: rgba(255, 255, 255, 0.48);
  transform: scaleX(1.35);
}

.hub-rail-bar.is-active {
  height: 72px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(255, 255, 255, 0.28);
}

@media (max-width: 680px) {
  .hub-rail {
    right: 10px;
    gap: 12px;
  }

  .hub-rail-bar {
    width: 3px;
    height: 42px;
  }

  .hub-rail-bar.is-active {
    height: 56px;
  }
}

.not-found {
  display: flex;
  min-height: calc(100vh - 180px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.not-found > strong {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  background-clip: text;
  color: transparent;
  font-size: clamp(7rem, 25vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.not-found h1 {
  margin: 34px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.not-found > p:not(.eyebrow) {
  color: var(--muted);
}

/* Cinematic homepage */
html:has(body[data-header="cinema"]) {
  background: #1a3048;
}

body[data-header="cinema"] {
  background: transparent;
}

body[data-header="cinema"] .site-main {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

body[data-header="cinema"] .site-header {
  top: 18px;
  right: max(18px, 2.2vw);
  bottom: auto;
  left: max(18px, 2.2vw);
  width: auto;
  min-height: 54px;
  padding: 0 6px 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

body[data-header="cinema"] .brand {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.13em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 18px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
}

body[data-header="cinema"] .brand-mark {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 14px rgba(132, 255, 225, 0.72);
  transform: none;
}

body[data-header="cinema"] .site-nav {
  counter-reset: home-nav;
  gap: clamp(18px, 2.4vw, 38px);
}

body[data-header="cinema"] .site-nav a {
  position: relative;
  padding: 19px 0 17px;
  color: rgba(255, 255, 255, 0.68);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 18px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  counter-increment: home-nav;
}

body[data-header="cinema"] .site-nav a::before {
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.38);
  content: "0" counter(home-nav);
  font-size: 0.68rem;
}

body[data-header="cinema"] .site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #fff;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

body[data-header="cinema"] .site-nav a:hover::after,
body[data-header="cinema"] .site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

body[data-header="cinema"] .site-header.is-compact {
  background: transparent;
  box-shadow: none;
}

body[data-header="cinema"] .site-footer {
  display: none;
}

.cinema-home {
  --cinema-edge: clamp(24px, 5.5vw, 92px);
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.cinema-home::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 6, 0.2), rgba(3, 4, 6, 0.08)),
    var(--home-fallback) center / cover;
  content: "";
  transition: opacity 900ms ease;
}

.cinema-ready .cinema-home::before {
  opacity: 0;
}

.cinema-home::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: soft-light;
  opacity: 0.06;
  pointer-events: none;
}

.cinema-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 28%, transparent 58%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.cinema-home--content .cinema-shade {
  background:
    linear-gradient(180deg, rgba(12, 28, 44, 0.34) 0%, rgba(12, 28, 44, 0.12) 24%, rgba(12, 28, 44, 0.18) 62%, rgba(8, 20, 34, 0.52) 100%),
    linear-gradient(90deg, rgba(8, 20, 34, 0.22) 0%, transparent 28%, transparent 72%, rgba(8, 20, 34, 0.22) 100%);
}

.cinema-frame {
  position: absolute;
  z-index: 7;
  top: 112px;
  right: var(--cinema-edge);
  left: var(--cinema-edge);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.62);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  pointer-events: none;
}

.cinema-copies {
  position: relative;
  z-index: 6;
  width: min(780px, 72vw);
  min-height: 250px;
}

.cinema-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(38px);
  transition:
    opacity 1800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 2200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-copy.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cinema-eyebrow {
  margin: 0 0 20px;
  color: #e9c9a7;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.cinema-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #f4eadf;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(3.8rem, 7.6vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.42);
}

.cinema-subtitle {
  max-width: 530px;
  margin: 30px 0 0;
  color: rgba(244, 234, 223, 0.76);
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  letter-spacing: 0.05em;
}

.cinema-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(244, 234, 223, 0.48);
  color: #f4eadf;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.cinema-link span,
.cinema-latest header > a span {
  color: #e74d3c;
}

.cinema-controls {
  position: absolute;
  z-index: 21;
  right: auto;
  bottom: 36px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.cinema-rail {
  position: absolute;
  z-index: 12;
  right: max(18px, 2.2vw);
  bottom: 18px;
  left: max(18px, 2.2vw);
  display: flex;
  padding: 8px 6px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(4, 5, 7, 0.42);
  backdrop-filter: blur(14px);
}

.cinema-rail button {
  min-width: 0;
  flex: 1;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  text-align: left;
}

.cinema-rail-track {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.cinema-rail-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: #e9e2da;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.cinema-rail button.is-active {
  color: #fff;
}

.cinema-rail button:hover {
  color: rgba(255, 255, 255, 0.92);
}

.cinema-rail button.is-active .cinema-rail-track {
  background: rgba(255, 255, 255, 0.3);
}

.cinema-rail small {
  display: block;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 14px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
}

.cinema-rail small em {
  margin-right: 9px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.66rem;
  font-style: normal;
}

.cinema-rail small b {
  float: right;
  opacity: 0;
  font-weight: 400;
  transform: translateX(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cinema-rail button:hover small b,
.cinema-rail button.is-active small b {
  opacity: 0.72;
  transform: translateX(0);
}

.cinema-controls > button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 9, 11, 0.28);
  color: #f4eadf;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.cinema-dots {
  display: flex;
  gap: 7px;
}

.cinema-dots button {
  width: 20px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 240ms ease, background 240ms ease;
}

.cinema-dots button.is-active {
  width: 42px;
  background: #e74d3c;
}

.cinema-counter {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
}

.cinema-counter b {
  color: #f4eadf;
  font-size: 1rem;
}

.cinema-scroll {
  position: absolute;
  z-index: 8;
  right: var(--cinema-edge);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.cinema-scroll span {
  width: 46px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.cinema-scroll span::after {
  display: block;
  width: 50%;
  height: 100%;
  background: #e74d3c;
  content: "";
  animation: cinema-scroll 1.8s ease-in-out infinite;
}

@keyframes cinema-scroll {
  from { transform: translateX(-110%); }
  to { transform: translateX(220%); }
}

.cinema-latest {
  display: none;
}

/* Ashen Press / Bookshelf — full-bleed cinema shelf */
.press-feed--ashen {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
}

.press-feed--ashen .press-hero {
  position: absolute;
  z-index: 4;
  top: max(78px, 9svh);
  right: max(28px, 3.2vw);
  left: auto;
  width: min(38vw, 360px);
  margin: 0;
  padding: 0;
  text-align: right;
  transform: none;
  pointer-events: none;
}

.press-feed--ashen .press-hero .eyebrow {
  margin: 0 0 8px;
  color: rgba(232, 236, 244, 0.58);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.press-feed--ashen .press-hero h1 {
  margin: 0;
  color: #f5f2ec;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-shadow: 0 10px 48px rgba(0, 0, 0, 0.55);
}

.press-feed--ashen .press-hero p {
  max-width: 22rem;
  margin: 10px 0 0 auto;
  color: rgba(235, 232, 224, 0.68);
  font-size: 0.86rem;
  line-height: 1.55;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Ashen volume — category detail (opened book index) */
.ashen-volume {
  --volume-ink: #f7f1e8;
  --volume-muted: rgba(247, 241, 232, 0.78);
  --volume-dim: rgba(247, 241, 232, 0.42);
  --volume-cloth: #314033;
  --volume-foil: #e9c9a7;
  --volume-panel: rgba(255, 255, 255, 0.58);
  --volume-panel-border: rgba(255, 255, 255, 0.42);
  --volume-ink-deep: #17304a;
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: max(96px, 12svh) max(28px, 4.5vw) 96px;
  color: var(--volume-ink);
  overflow: hidden;
}

.ashen-volume__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 42% 34% at 18% 12%,
      color-mix(in srgb, var(--volume-cloth) 18%, transparent) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 78% 8%,
      rgba(255, 210, 160, 0.12) 0%,
      transparent 68%
    );
}

.ashen-volume__glow::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: var(--volume-cover);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(0.7);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 62%);
}

.ashen-volume__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 28, 44, 0.18) 0%, transparent 22%, transparent 70%, rgba(8, 20, 34, 0.28) 100%),
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 48%, rgba(8, 20, 34, 0.16) 100%);
}

.ashen-volume__hero {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto 56px;
}

.ashen-volume__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 36px;
  color: var(--volume-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.ashen-volume__back:hover {
  color: var(--volume-foil);
}

.ashen-volume__mast {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.ashen-volume__spine {
  display: block;
  width: 10px;
  border-radius: 2px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--volume-foil) 55%, var(--volume-cloth)) 0%,
      var(--volume-cloth) 28%,
      var(--volume-cloth) 78%,
      color-mix(in srgb, var(--volume-foil) 35%, var(--volume-cloth)) 100%
    );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--volume-foil) 28%, transparent),
    0 18px 40px color-mix(in srgb, var(--volume-cloth) 45%, transparent);
}

.ashen-volume__titles {
  min-width: 0;
  padding-top: 4px;
}

.ashen-volume__eyebrow {
  margin: 0 0 12px;
  color: #e9c9a7;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(8, 20, 34, 0.35);
}

.ashen-volume__titles h1 {
  margin: 0;
  color: #f7f1e8;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-shadow: 0 10px 36px rgba(8, 20, 34, 0.45);
}

.ashen-volume__deck {
  max-width: 28rem;
  margin: 14px 0 0;
  color: rgba(247, 241, 232, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(8, 20, 34, 0.4);
}

.ashen-volume__index {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 18px;
  list-style: none;
  border: 1px solid var(--volume-panel-border);
  border-radius: 22px;
  background: var(--volume-panel);
  box-shadow:
    0 18px 40px rgba(20, 40, 70, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
}

.ashen-volume__entry a {
  display: grid;
  grid-template-columns: 3.2ch 8.5rem minmax(0, 1fr) 12px;
  gap: 18px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(23, 48, 74, 0.1);
  color: var(--volume-ink-deep);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ashen-volume__entry a:hover {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--volume-foil) 28%, transparent),
    transparent 72%
  );
  border-bottom-color: color-mix(in srgb, var(--volume-foil) 45%, transparent);
}

.ashen-volume__num {
  color: rgba(23, 48, 74, 0.38);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.ashen-volume__entry time {
  color: rgba(23, 48, 74, 0.55);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.ashen-volume__entry strong {
  color: #17304a;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.35;
  transition: color 160ms ease;
}

.ashen-volume__entry a:hover strong {
  color: color-mix(in srgb, var(--volume-cloth) 55%, #17304a);
}

.ashen-volume__mark {
  width: 6px;
  height: 6px;
  margin-top: 0.35em;
  border-radius: 1px;
  background: transparent;
  transform: rotate(45deg);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.ashen-volume__entry a:hover .ashen-volume__mark {
  background: var(--volume-foil);
  box-shadow: 0 0 10px color-mix(in srgb, var(--volume-foil) 55%, transparent);
}

.ashen-volume__year {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 4px;
  padding: 0 4px;
  color: color-mix(in srgb, var(--volume-cloth) 40%, #17304a);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ashen-volume__year:first-child {
  margin-top: 18px;
}

.ashen-volume__year::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--volume-foil) 35%, transparent),
    transparent 90%
  );
}

.ashen-volume__empty {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  color: var(--volume-muted);
  font-size: 0.95rem;
}

.ashen-volume__pager {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  max-width: 920px;
  margin: 40px auto 0;
}

.ashen-volume__pager .pagination,
.ashen-volume__pager {
  gap: 10px;
  flex-wrap: wrap;
}

.ashen-volume__pager a,
.ashen-volume__pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #17304a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ashen-volume__pager a:hover {
  border-color: color-mix(in srgb, var(--volume-foil) 55%, transparent);
  color: color-mix(in srgb, var(--volume-cloth) 40%, #17304a);
  background: rgba(255, 255, 255, 0.78);
}

.ashen-volume__pager .current {
  border-color: color-mix(in srgb, var(--volume-foil) 65%, transparent);
  color: color-mix(in srgb, var(--volume-cloth) 45%, #17304a);
  background: rgba(255, 255, 255, 0.82);
}

.ashen-volume__pager .space {
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  color: var(--volume-dim);
}

.ashen-volume--archive .ashen-volume__entry time {
  min-width: 4.5rem;
}

.ashen-volume--archive {
  overflow: visible;
}

.ashen-volume--archive .ashen-volume__hero {
  max-width: 1080px;
  margin-bottom: 28px;
}

.ashen-archive-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px 28px;
  align-items: start;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.ashen-archive-years {
  position: sticky;
  top: max(88px, 10svh);
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(18, 32, 48, 0.34);
  box-shadow:
    0 14px 32px rgba(8, 20, 34, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.ashen-archive-years a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 248, 240, 0.86);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ashen-archive-years a small {
  color: rgba(255, 248, 240, 0.42);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ashen-archive-years a:hover,
.ashen-archive-years a.is-active {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.92);
  color: #17304a;
}

.ashen-archive-years a:hover small,
.ashen-archive-years a.is-active small {
  color: rgba(23, 48, 74, 0.45);
}

.ashen-volume--archive .ashen-volume__index,
.ashen-volume--archive .ashen-volume__empty {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ashen-volume--archive .ashen-volume__year {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 2px;
  padding: 8px 4px 10px;
  color: color-mix(in srgb, var(--chip-cloth, var(--volume-cloth)) 45%, #17304a);
  scroll-margin-top: 96px;
}

.ashen-volume--archive .ashen-volume__year:first-child {
  margin-top: 10px;
}

.ashen-volume--archive .ashen-volume__year span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.ashen-volume--archive .ashen-volume__year::after {
  content: "";
  flex: 1;
  order: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--chip-foil, var(--volume-foil)) 40%, transparent),
    transparent 92%
  );
}

.ashen-volume--archive .ashen-volume__year em {
  order: 2;
  color: rgba(23, 48, 74, 0.4);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.ashen-volume--archive .ashen-volume__entry a {
  grid-template-columns: 3.2ch 4.8rem minmax(0, 1fr) 12px;
  gap: 14px 16px;
  padding: 15px 4px;
}

.ashen-volume--archive .ashen-volume__entry:last-child a {
  border-bottom: none;
}


.ashen-volume--page {
  padding-bottom: 120px;
}

.ashen-volume__prose {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 36px auto 0;
  padding: 28px 32px;
  border: 1px solid var(--volume-panel-border);
  border-radius: 22px;
  background: var(--volume-panel);
  box-shadow:
    0 18px 40px rgba(20, 40, 70, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  color: rgba(23, 48, 74, 0.88);
  font-size: 1rem;
  line-height: 1.75;
}

.ashen-volume__prose > *:first-child {
  margin-top: 0;
}

.ashen-volume__prose a {
  color: color-mix(in srgb, var(--volume-cloth) 45%, #17304a);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--volume-foil) 55%, transparent);
  text-underline-offset: 0.18em;
}

.ashen-volume__prose a:hover {
  text-decoration-color: var(--volume-foil);
}

.ashen-volume__prose h2,
.ashen-volume__prose h3 {
  margin: 1.6em 0 0.55em;
  color: #17304a;
  letter-spacing: -0.03em;
}

.ashen-volume__prose code {
  padding: 0.12em 0.35em;
  border: 1px solid rgba(23, 48, 74, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86em;
}

.ashen-volume__comments {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 48px auto 0;
}

.ashen-friends {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 18px;
  list-style: none;
  border: 1px solid var(--volume-panel-border);
  border-radius: 22px;
  background: var(--volume-panel);
  box-shadow:
    0 18px 40px rgba(20, 40, 70, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
}

.ashen-friends__item a {
  display: grid;
  grid-template-columns: 3.2ch 44px minmax(0, 1fr) 12px;
  gap: 16px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(23, 48, 74, 0.1);
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ashen-friends__item a:hover {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--chip-foil) 32%, transparent),
    transparent 72%
  );
  border-bottom-color: color-mix(in srgb, var(--chip-foil) 45%, transparent);
}

.ashen-friends__num {
  color: rgba(23, 48, 74, 0.35);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.ashen-friends__avatar {
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--chip-foil) 40%, transparent);
  border-radius: 50%;
  object-fit: cover;
  background: color-mix(in srgb, var(--chip-cloth) 35%, #fff);
}

.ashen-friends__avatar--empty {
  display: block;
  box-shadow: inset 0 0 0 1px rgba(23, 48, 74, 0.08);
}

.ashen-friends__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ashen-friends__body strong {
  color: #17304a;
  font-size: 1.02rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  transition: color 160ms ease;
}

.ashen-friends__item a:hover .ashen-friends__body strong {
  color: color-mix(in srgb, var(--chip-cloth) 50%, #17304a);
}

.ashen-friends__body small {
  color: rgba(23, 48, 74, 0.58);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ashen-friends__mark {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: transparent;
  transform: rotate(45deg);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.ashen-friends__item a:hover .ashen-friends__mark {
  background: var(--chip-foil);
  box-shadow: 0 0 10px color-mix(in srgb, var(--chip-foil) 55%, transparent);
}

.ashen-about {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.ashen-about__portrait {
  position: relative;
  width: min(180px, 42vw);
  margin: 0;
}

.ashen-about__portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(20, 40, 70, 0.22);
}

.ashen-about__portrait-frame {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  pointer-events: none;
  mask-image: linear-gradient(135deg, #000 0 18%, transparent 18% 82%, #000 82%);
}

.ashen-about .ashen-volume__prose {
  margin-top: 0;
}

.ashen-about__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ashen-about__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #17304a;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.ashen-about__social a:hover {
  border-color: color-mix(in srgb, var(--chip-foil) 65%, transparent);
  background: rgba(255, 255, 255, 0.78);
  color: color-mix(in srgb, var(--chip-cloth) 45%, #17304a);
}

.ashen-about__social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Ashen poster — article signal-lock hero */
.ashen-article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 120px;
}

.ashen-poster {
  --poster-ink: #f7f1e8;
  --poster-muted: rgba(247, 241, 232, 0.82);
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--poster-ink);
}

.ashen-poster__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}

.ashen-poster__media {
  position: absolute;
  inset: -6%;
  background:
    linear-gradient(180deg, rgba(12, 28, 44, 0.12), rgba(8, 20, 34, 0.55)),
    var(--poster-cover, none) center / cover no-repeat;
  opacity: 0;
  transform: scale(1.12);
  filter: saturate(1.08) contrast(1.04) blur(8px);
  transition:
    opacity 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 2200ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

.ashen-poster:not(.ashen-poster--cover) .ashen-poster__media {
  background: transparent;
}

.ashen-poster__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 34, 0.28) 0%, rgba(8, 20, 34, 0.08) 42%, rgba(8, 20, 34, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.18) 0%, transparent 28%, transparent 52%, rgba(8, 20, 34, 0.48) 100%);
  pointer-events: none;
}

.ashen-poster__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(233, 226, 218, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 226, 218, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  transition: opacity 700ms ease;
}

.ashen-poster__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--poster-foil) 18%, transparent),
    transparent
  );
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.ashen-poster__wipe {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(255, 248, 238, 0.78) 0%,
      rgba(255, 236, 214, 0.52) 42%,
      rgba(233, 201, 167, 0.28) 68%,
      transparent 100%
    );
  transform-origin: left center;
  transform: translateX(0);
  opacity: 1;
  pointer-events: none;
  transition:
    transform 1280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 980ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

.ashen-poster__hud {
  position: absolute;
  inset: 18px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ashen-poster__marker {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid color-mix(in srgb, var(--poster-foil) 70%, transparent);
  opacity: 0.85;
  transition: opacity 600ms ease;
}

.ashen-poster__marker::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 0 solid color-mix(in srgb, var(--poster-foil) 35%, transparent);
}

.ashen-poster__marker--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.ashen-poster__marker--tl::after { border-top-width: 1px; border-left-width: 1px; }
.ashen-poster__marker--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.ashen-poster__marker--tr::after { border-top-width: 1px; border-right-width: 1px; }
.ashen-poster__marker--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.ashen-poster__marker--bl::after { border-bottom-width: 1px; border-left-width: 1px; }
.ashen-poster__marker--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.ashen-poster__marker--br::after { border-right-width: 1px; border-bottom-width: 1px; }

.ashen-poster__readout {
  position: absolute;
  top: 8px;
  right: 34px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: color-mix(in srgb, var(--poster-foil) 88%, #fff);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ashen-poster__readout b {
  min-width: 2.4ch;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.ashen-poster__copy {
  position: relative;
  z-index: 3;
  width: min(100% - 64px, 1120px);
  margin: 0 auto;
  padding: 120px 0 56px;
}

.ashen-poster__back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--poster-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition:
    color 180ms ease,
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ashen-poster__back:hover {
  color: var(--poster-foil);
}

.ashen-poster__mast {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.ashen-poster__spine {
  display: block;
  width: 10px;
  border-radius: 2px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--poster-foil) 55%, var(--poster-cloth)) 0%,
      var(--poster-cloth) 28%,
      var(--poster-cloth) 78%,
      color-mix(in srgb, var(--poster-foil) 35%, var(--poster-cloth)) 100%
    );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--poster-foil) 28%, transparent),
    0 18px 40px color-mix(in srgb, var(--poster-cloth) 45%, transparent);
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: top center;
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ashen-poster__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 0 0 14px;
  color: #e9c9a7;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(8, 20, 34, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 950ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}

.ashen-poster__eyebrow time {
  letter-spacing: 0.18em;
  color: rgba(247, 241, 232, 0.78);
}

.ashen-poster__titles h1 {
  margin: 0;
  max-width: 22ch;
  color: #f7f1e8;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-shadow: 0 10px 36px rgba(8, 20, 34, 0.45);
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1) 160ms,
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1) 160ms,
    filter 1100ms cubic-bezier(0.22, 1, 0.36, 1) 160ms;
}

.ashen-poster__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  color: var(--poster-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 950ms cubic-bezier(0.22, 1, 0.36, 1) 280ms,
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1) 280ms;
}

.ashen-poster__meta a {
  color: color-mix(in srgb, var(--poster-foil) 85%, #fff);
  text-decoration: none;
}

.ashen-poster__meta a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ashen-poster__cats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ashen-poster__cats a {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.ashen-poster__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--poster-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition:
    color 180ms ease,
    opacity 950ms cubic-bezier(0.22, 1, 0.36, 1) 420ms,
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1) 420ms;
}

.ashen-poster__scroll:hover {
  color: var(--poster-foil);
}

.ashen-poster__scroll i {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--poster-foil), transparent);
  transform-origin: top center;
  animation: ashen-poster-scroll 1.6s ease-in-out infinite;
}

/* Poster states */
.ashen-poster[data-poster="boot"] .ashen-poster__hud {
  opacity: 0;
}

.ashen-poster[data-poster="sync"] .ashen-poster__hud,
.ashen-poster[data-poster="reveal"] .ashen-poster__hud {
  opacity: 1;
}

.ashen-poster[data-poster="sync"] .ashen-poster__scan {
  opacity: 0.85;
  animation: ashen-poster-scan 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.ashen-poster[data-poster="sync"] .ashen-poster__marker {
  animation: ashen-poster-marker 1.35s ease-in-out infinite alternate;
}

.ashen-poster[data-poster="reveal"] .ashen-poster__wipe,
.ashen-poster[data-poster="live"] .ashen-poster__wipe {
  transform: translateX(108%);
  opacity: 0;
}

.ashen-poster[data-poster="reveal"] .ashen-poster__media,
.ashen-poster[data-poster="live"] .ashen-poster__media {
  opacity: 1;
  transform: scale(1.02);
  filter: saturate(0.96) contrast(1.02) blur(0);
}

.ashen-poster[data-poster="reveal"] .ashen-poster__scan {
  opacity: 0.4;
  animation: ashen-poster-scan 2s cubic-bezier(0.4, 0, 0.2, 1) 1;
}

.ashen-poster[data-poster="live"] .ashen-poster__hud {
  opacity: 0;
  transition-delay: 180ms;
}

.ashen-poster[data-poster="live"] .ashen-poster__grid {
  opacity: 0.1;
  transition: opacity 1100ms ease;
}

.ashen-poster[data-poster="live"] .ashen-poster__media {
  filter: saturate(0.92) contrast(1.02) blur(0);
}

.ashen-poster[data-poster="live"] .ashen-poster__back,
.ashen-poster[data-poster="live"] .ashen-poster__eyebrow,
.ashen-poster[data-poster="live"] .ashen-poster__titles h1,
.ashen-poster[data-poster="live"] .ashen-poster__meta,
.ashen-poster[data-poster="live"] .ashen-poster__scroll,
.ashen-poster[data-poster="live"] .ashen-poster__spine {
  opacity: 1;
  transform: none;
  filter: none;
}

.ashen-poster.is-settled .ashen-poster__media {
  transform: translate3d(0, calc(var(--poster-parallax, 0) * 1px), 0) scale(1.02);
}

@keyframes ashen-poster-scan {
  from { transform: translateY(-8%); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.55; }
  to { transform: translateY(390%); opacity: 0; }
}

@keyframes ashen-poster-marker {
  from { opacity: 0.35; }
  to { opacity: 0.95; }
}

@keyframes ashen-poster-scroll {
  0%, 100% { transform: scaleY(0.45); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

.ashen-article__body {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), 1120px);
  margin: -28px auto 0;
}

.ashen-article__toc {
  margin-bottom: 18px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  color: #17304a;
}

.ashen-article__toc strong {
  color: color-mix(in srgb, var(--poster-cloth, #243848) 40%, #17304a);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ashen-article__content {
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 64px);
  border-color: rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: rgba(252, 249, 244, 0.96);
  box-shadow:
    0 18px 40px rgba(20, 40, 70, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  color: #152a3f;
}

.ashen-article__content h1,
.ashen-article__content h2,
.ashen-article__content h3,
.ashen-article__content h4,
.ashen-article__content h5,
.ashen-article__content h6 {
  color: #102436;
}

.ashen-article__content p,
.ashen-article__content li,
.ashen-article__content td,
.ashen-article__content th,
.ashen-article__content figcaption {
  color: #1b3148;
}

.ashen-article__content li::marker {
  color: #3a5168;
}

.ashen-article__content strong,
.ashen-article__content b {
  color: #0f2235;
}

.ashen-article__content hr {
  border: 0;
  border-top: 1px solid rgba(23, 48, 74, 0.14);
}

.ashen-article__content pre {
  background: #152536;
  border-color: rgba(15, 34, 53, 0.28);
}

.ashen-article__content pre code,
.ashen-article__content pre code.hljs {
  background: transparent;
  color: #e7eef6;
}

.ashen-article__content a {
  color: color-mix(in srgb, var(--poster-cloth, #243848) 55%, #0d4f8c);
}

.ashen-article__content :not(pre) > code {
  padding: 0.14em 0.42em;
  border: 1px solid rgba(23, 48, 74, 0.12);
  border-radius: 6px;
  background: rgba(23, 48, 74, 0.08);
  color: #14324c;
}

.ashen-article__content blockquote {
  border-left-color: color-mix(in srgb, var(--poster-foil, #e9c9a7) 75%, transparent);
  color: #3a5168;
}

.ashen-article__content th,
.ashen-article__content td {
  border-color: rgba(23, 48, 74, 0.14);
}

.ashen-article__tags {
  margin-top: 28px;
}

.ashen-article__tags a {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(23, 48, 74, 0.78);
}

.ashen-article__nav {
  margin-top: 36px;
}

.ashen-article__nav a {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.55);
  color: #17304a;
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.ashen-article__nav a:hover {
  border-color: color-mix(in srgb, var(--poster-foil, #e9c9a7) 55%, transparent);
  background: rgba(255, 255, 255, 0.78);
}

.ashen-article__nav small {
  color: rgba(23, 48, 74, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
}

/* Ashen topics — 3D tag constellation */
.ashen-topics {
  --topics-ink: #e9e2da;
  --topics-muted: rgba(233, 226, 218, 0.62);
  position: relative;
  z-index: 2;
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  color: var(--topics-ink);
  overflow: hidden;
}

.ashen-topics__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 36% at 78% 18%, rgba(255, 210, 160, 0.16), transparent 70%),
    radial-gradient(ellipse 36% 30% at 18% 72%, rgba(120, 220, 255, 0.1), transparent 68%);
}

.ashen-topics__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 28, 44, 0.2) 0%, transparent 22%, transparent 78%, rgba(8, 20, 34, 0.28) 100%),
    radial-gradient(ellipse 78% 70% at 50% 42%, transparent 42%, rgba(8, 20, 34, 0.14) 100%);
}

.ashen-topics__hero {
  position: absolute;
  z-index: 4;
  top: max(88px, 10svh);
  left: max(28px, 4vw);
  max-width: 280px;
  pointer-events: none;
}

.ashen-topics__eyebrow {
  margin: 0 0 10px;
  color: #e9c9a7;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(8, 20, 34, 0.35);
}

.ashen-topics__hero h1 {
  margin: 0;
  color: #f7f1e8;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-shadow: 0 8px 28px rgba(8, 20, 34, 0.4);
}

.ashen-topics__field.tag-cloud {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: none;
  min-height: 100%;
  margin: 0;
  padding: 0;
  align-content: flex-start;
  overflow: hidden;
  pointer-events: none;
}

body:has(#three-css3d.is-spatial-visible) .ashen-topics__field {
  /* Keep layout box for scroll metrics; never show the flat chip strip under the 3D layer. */
  visibility: hidden;
}

.ashen-topics__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: none;
  padding: 6px 11px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #17304a;
  font-size: calc(0.62rem + var(--weight, 1) * 0.022rem);
  font-weight: 450;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 8px 20px rgba(20, 40, 70, 0.14);
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease;
}

.ashen-topics__chip:hover,
.ashen-topics__chip:focus-visible {
  border-color: color-mix(in srgb, var(--chip-foil, #e9c9a7) 70%, transparent);
  color: color-mix(in srgb, var(--chip-cloth, #243848) 45%, #17304a);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--chip-foil, #e9c9a7) 35%, transparent) inset,
    0 0 24px color-mix(in srgb, var(--chip-foil, #e9c9a7) 28%, transparent);
}

.ashen-topics__chip-name {
  display: inline-block;
  max-width: none;
  overflow: visible;
  line-height: 1;
  white-space: nowrap;
}

.ashen-topics__chip sup {
  margin: 0;
  color: rgba(23, 48, 74, 0.48);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

#three-css3d .ashen-topics__chip.spatial-node {
  border-color: color-mix(in srgb, var(--chip-foil, #d7e4ff) 40%, transparent);
}

#three-css3d .ashen-topics__chip.spatial-node:hover,
#three-css3d .ashen-topics__chip.spatial-node:focus-visible {
  border-color: color-mix(in srgb, var(--chip-foil, #d7e4ff) 78%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--chip-foil, #d7e4ff) 30%, transparent) inset,
    0 0 40px color-mix(in srgb, var(--chip-foil, #d7e4ff) 35%, transparent);
}

body.spatial-off .ashen-topics {
  height: auto;
  min-height: 100svh;
  padding: max(96px, 12svh) max(28px, 4.5vw) 96px;
  overflow: visible;
}

body.spatial-off .ashen-topics__hero {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 28px;
}

body.spatial-off .ashen-topics__field.tag-cloud {
  position: relative;
  inset: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 920px;
  min-height: 0;
}

.ashen-press.bookshelf,
.bookshelf__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ashen-press.bookshelf {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  container-type: inline-size;
}

.ashen-press.bookshelf::before,
.ashen-press.bookshelf::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  pointer-events: none;
}

.ashen-press.bookshelf::before {
  top: 0;
  height: 28%;
  background: linear-gradient(
    180deg,
    rgba(12, 28, 44, 0.28) 0%,
    rgba(12, 28, 44, 0.1) 55%,
    transparent 100%
  );
}

.ashen-press.bookshelf::after {
  bottom: 0;
  height: 22%;
  background: linear-gradient(
    0deg,
    rgba(8, 20, 34, 0.38) 0%,
    rgba(8, 20, 34, 0.12) 52%,
    transparent 100%
  );
}

.bookshelf__canvas {
  position: absolute;
  inset: 0;
  opacity: 0;
  touch-action: none;
  transition: opacity 420ms ease;
}

.bookshelf__canvas.is-ready {
  opacity: 1;
}

.bookshelf__source-controls {
  display: none;
}

.bookshelf__unavailable {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: rgba(244, 238, 230, 0.86);
  text-align: center;
  pointer-events: none;
}

.ashen-press[data-state="ready"] .bookshelf__unavailable {
  display: none;
}

.ashen-press[data-state="loading"] .bookshelf__unavailable,
.ashen-press[data-state="unavailable"] .bookshelf__unavailable {
  display: grid;
}

.ashen-uplink {
  --uplink-ink: #f7f1e8;
  --uplink-line: rgba(247, 241, 232, 0.5);
  --uplink-dim: rgba(247, 241, 232, 0.28);
  --uplink-lit: #fff8f0;
  overflow: hidden;
  background: rgba(12, 28, 44, 0.28);
  backdrop-filter: blur(8px);
}

.ashen-uplink__pool {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 48% 36% at 50% 48%,
    rgba(233, 226, 218, 0.1) 0%,
    rgba(233, 226, 218, 0.04) 42%,
    transparent 74%
  );
}

.ashen-uplink__frame {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(86vw, 640px);
  padding: 28px 22px 26px;
}

.ashen-uplink__plate {
  position: relative;
  display: grid;
  place-items: center;
  width: 168px;
  height: 96px;
  background: var(--uplink-line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.ashen-uplink__plate::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: linear-gradient(180deg, rgba(12, 13, 16, 0.96), rgba(7, 8, 11, 0.98));
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}

.ashen-uplink__readout {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--uplink-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1;
  text-shadow:
    0 0 4px rgba(242, 235, 227, 0.35),
    0 0 18px rgba(242, 235, 227, 0.18);
  animation: ashen-uplink-neon 4.3s steps(1, end) infinite;
}

.ashen-uplink__readout b {
  min-width: 2.2ch;
  font-size: 3rem;
  font-weight: 280;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ashen-uplink__readout u {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  opacity: 0.58;
  transform: translateY(-0.15em);
}

.ashen-uplink__haze {
  position: absolute;
  left: 8%;
  top: 58%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ashen-uplink__haze i {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--lit-w, 0px) + 160px);
  height: 160px;
  transform: translate(-80px, -84px);
  background: radial-gradient(
    ellipse 50% 50% at center,
    rgba(242, 235, 227, 0.2) 0%,
    rgba(242, 235, 227, 0.08) 40%,
    transparent 72%
  );
  filter: blur(10px);
}

.ashen-uplink__bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 44px;
}

.ashen-uplink__tick {
  flex: 0 0 auto;
  width: 5px;
  height: 28px;
  background: var(--uplink-dim);
  transform: skewX(12deg);
}

.ashen-uplink__tick.is-mark {
  height: 42px;
}

.ashen-uplink__tick.is-on {
  background: var(--uplink-lit);
  box-shadow:
    0 0 4px rgba(242, 235, 227, 0.45),
    0 0 12px rgba(242, 235, 227, 0.18);
}

.ashen-uplink__marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(233, 226, 218, 0.55);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}

.ashen-uplink__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--uplink-lit);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(242, 235, 227, 0.45);
  animation: ashen-uplink-dia 3.2s ease-in-out infinite;
}

.ashen-uplink__marker--tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.ashen-uplink__marker--tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.ashen-uplink__marker--tr::after { animation-delay: 0.5s; }
.ashen-uplink__marker--bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.ashen-uplink__marker--bl::after { animation-delay: 1.1s; }
.ashen-uplink__marker--br { right: 8px; bottom: 8px; border-right-width: 1px; border-bottom-width: 1px; }
.ashen-uplink__marker--br::after { animation-delay: 1.6s; }

.ashen-uplink__scan {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    rgba(233, 226, 218, 0.08) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}

@keyframes ashen-uplink-neon {
  0%, 40% { opacity: 1; }
  41% { opacity: 0.55; }
  42% { opacity: 1; }
  67% { opacity: 1; }
  68% { opacity: 0.72; }
  69.5% { opacity: 1; }
  70.5% { opacity: 0.42; }
  71.5% { opacity: 1; }
}

@keyframes ashen-uplink-dia {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) rotate(45deg) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ashen-uplink__readout,
  .ashen-uplink__marker::after {
    animation: none !important;
  }
}

.ashen-press-open {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(72px, calc(5svh + 44px));
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.58);
  color: #f2eee6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ashen-press-open:hover {
  background: rgba(18, 20, 26, 0.82);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateX(-50%) translateY(-2px);
}

.ashen-press-open[hidden] {
  display: none !important;
}

.ashen-press-back {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: max(72px, calc(5svh + 44px));
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.58);
  color: #f2eee6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ashen-press-back:hover {
  background: rgba(18, 20, 26, 0.82);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateX(-50%) translateY(-2px);
}

.ashen-press-back[hidden] {
  display: none !important;
}

.ashen-press[data-mode="detail"] .ashen-press-open {
  left: calc(50% + 88px);
  transform: translateX(-50%);
}

.ashen-press[data-mode="detail"] .ashen-press-open:hover {
  transform: translateX(-50%) translateY(-2px);
}

.ashen-press[data-mode="detail"] .ashen-press-back {
  left: calc(50% - 88px);
}

.ashen-press-rail {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(22px, 3.4svh);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(72vw, 520px);
  padding: 10px 14px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.ashen-press-rail[hidden] {
  display: none !important;
}

.ashen-press-rail-bar {
  flex: 1 1 0;
  min-width: 28px;
  max-width: 72px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background 180ms ease,
    width 180ms ease,
    flex-grow 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.ashen-press-rail-bar:hover {
  background: rgba(255, 255, 255, 0.48);
  transform: scaleY(1.35);
}

.ashen-press-rail-bar.is-active {
  flex-grow: 1.55;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(255, 255, 255, 0.28);
}

.hub-feed {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1280px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 0 180px;
  background: transparent;
}

.hub-hero {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100svh - 48px);
  max-width: 760px;
  margin: 0 auto 72px;
  padding: 96px 0 48px;
  text-align: center;
}

.hub-hero h1 {
  margin: 0;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hub-avatar-3d {
  --avatar-rx: 12deg;
  --avatar-ry: -16deg;
  --avatar-glow-x: 35%;
  --avatar-glow-y: 28%;
  width: min(42vw, 260px);
  height: min(42vw, 260px);
  margin: 0 auto 8px;
  perspective: 900px;
  cursor: grab;
  touch-action: none;
}

.hub-avatar-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform:
    rotateX(var(--avatar-rx))
    rotateY(var(--avatar-ry));
  transition: transform 120ms ease-out;
  animation: hub-avatar-float 5.6s ease-in-out infinite;
}

.hub-avatar-halo {
  position: absolute;
  inset: 8% 8% 2%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.42), rgba(120, 220, 255, 0.18) 42%, transparent 70%);
  filter: blur(18px);
  transform: translateZ(-40px) scale(1.08);
  pointer-events: none;
}

.hub-avatar-orbit {
  position: absolute;
  inset: -6%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.12),
    0 0 28px rgba(120, 220, 255, 0.18);
  transform: translateZ(-18px) rotateX(68deg);
  pointer-events: none;
  animation: hub-avatar-orbit 10s linear infinite;
}

.hub-avatar-core {
  position: absolute;
  inset: 14%;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    0 0 0 6px rgba(255, 255, 255, 0.28),
    0 0 40px rgba(255, 210, 160, 0.28);
  transform: translateZ(48px);
}

.hub-avatar-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  user-select: none;
}

.hub-avatar-shine {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120px circle at var(--avatar-glow-x) var(--avatar-glow-y),
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.08) 34%,
      transparent 62%
    );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hub-avatar-base {
  position: absolute;
  right: 18%;
  bottom: -2%;
  left: 18%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 30, 50, 0.35), transparent 70%);
  filter: blur(8px);
  transform: translateZ(-56px) rotateX(80deg);
  pointer-events: none;
}

@keyframes hub-avatar-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes hub-avatar-orbit {
  from { transform: translateZ(-18px) rotateX(68deg) rotateZ(0deg); }
  to { transform: translateZ(-18px) rotateX(68deg) rotateZ(360deg); }
}

.hub-hero p {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.7;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hub-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.hub-feed-header h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hub-feed-more {
  color: rgba(255, 255, 255, 0.58);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

.hub-feed-more:hover {
  color: #fff;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
  perspective: 1400px;
}


.hub-card {
  --hub-rx: 0deg;
  --hub-ry: 0deg;
  --hub-wx: 0deg;
  --hub-wy: 0deg;
  --hub-wz: 0deg;
  --hub-lift: 0px;
  --hub-glow-x: 50%;
  --hub-glow-y: 40%;
  --hub-glow: 0;
  position: relative;
  display: block;
  min-height: 380px;
  border-radius: 22px;
  color: #17304a;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transform-style: preserve-3d;
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--hub-delay, 0ms);
  will-change: transform;
}

.hub-card.is-visible {
  opacity: 1;
  transform:
    translate3d(0, var(--hub-lift), 0)
    rotateX(calc(var(--hub-rx) + var(--hub-wx)))
    rotateY(calc(var(--hub-ry) + var(--hub-wy)))
    rotateZ(var(--hub-wz));
  transition: opacity 520ms ease;
}

.hub-card-glow {
  position: absolute;
  z-index: 0;
  inset: -34px;
  border-radius: 40px;
  background:
    radial-gradient(
      300px circle at var(--hub-glow-x) var(--hub-glow-y),
      rgba(255, 255, 255, calc(0.55 * var(--hub-glow))),
      rgba(255, 196, 140, calc(0.34 * var(--hub-glow))) 28%,
      rgba(120, 220, 255, calc(0.22 * var(--hub-glow))) 52%,
      transparent 74%
    );
  opacity: var(--hub-glow);
  filter: blur(24px);
  transition: opacity 140ms ease;
  pointer-events: none;
}

.hub-card-face {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 40px rgba(20, 40, 70, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  transform: translateZ(0);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.hub-card-wind {
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0.38) 49%,
      rgba(180, 235, 255, 0.22) 54%,
      rgba(255, 255, 255, 0) 64%,
      transparent 100%
    );
  background-size: 240% 100%;
  background-position: 130% 0;
  opacity: 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.hub-card.is-glowing .hub-card-wind {
  opacity: 1;
  animation: hub-wind-streak 1.35s cubic-bezier(0.37, 0.01, 0.28, 1) infinite;
}

.hub-card:hover .hub-card-face,
.hub-card.is-glowing .hub-card-face {
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 58px rgba(20, 40, 70, 0.2),
    0 0 36px rgba(255, 210, 160, 0.28),
    0 0 64px rgba(120, 220, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@keyframes hub-wind-streak {
  0% { background-position: 140% 0; }
  100% { background-position: -50% 0; }
}

.hub-card-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 28%, transparent 48%, rgba(255, 248, 240, 0.12) 100%),
    var(--hub-cover, linear-gradient(135deg, #8ec5ff, #f7d9a8)) center / cover no-repeat;
  transform: translateZ(18px) scale(1.04);
}

.hub-card-cover em {
  position: absolute;
  top: 16px;
  left: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hub-card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 54px 18px 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 250, 245, 0.42) 38%,
      rgba(255, 252, 248, 0.78) 100%
    );
  backdrop-filter: blur(10px);
  transform: translateZ(36px);
}

.hub-card-body small {
  color: rgba(40, 58, 78, 0.62);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.hub-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #17304a;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hub-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-card-tags span {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(35, 55, 75, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (max-width: 1100px) {
  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 900px) {
  .post-grid,
  .taxonomy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
  }

  body[data-header="cinema"] .site-header {
    top: 12px;
    right: 12px;
    bottom: auto;
    left: 12px;
    padding-left: 4px;
  }

  body[data-header="cinema"] .nav-toggle {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
  }

  .cinema-home {
    inset: 0;
    min-height: 100svh;
    padding: 0;
  }

  .hub-feed {
    width: min(calc(100% - 28px), 1280px);
    padding: 0 0 100px;
  }

  .hub-hero {
    min-height: calc(100svh - 36px);
    margin-bottom: 48px;
    padding: 88px 0 32px;
  }

  .hub-avatar-3d {
    width: min(58vw, 210px);
    height: min(58vw, 210px);
  }

  .hub-hero p {
    font-size: 0.88rem;
  }

  .hub-feed-header {
    align-items: start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .press-feed--ashen .press-hero {
    top: max(70px, 8svh);
    right: max(16px, 3vw);
    width: min(52vw, 220px);
  }

  .press-feed--ashen .press-hero h1 {
    font-size: clamp(1.25rem, 5.2vw, 1.7rem);
  }

  .press-feed--ashen .press-hero p {
    display: none;
  }

  .ashen-volume {
    padding: max(88px, 10svh) 20px 72px;
  }

  .ashen-volume__hero {
    margin-bottom: 36px;
  }

  .ashen-volume__back {
    margin-bottom: 28px;
  }

  .ashen-volume__mast {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ashen-volume__spine {
    width: 100%;
    height: 4px;
    background:
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--volume-foil) 55%, var(--volume-cloth)) 0%,
        var(--volume-cloth) 28%,
        var(--volume-cloth) 78%,
        color-mix(in srgb, var(--volume-foil) 35%, var(--volume-cloth)) 100%
      );
  }

  .ashen-volume__titles h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .ashen-volume__entry a {
    grid-template-columns: 3ch minmax(0, 1fr) 10px;
    gap: 10px 14px;
    padding: 16px 2px;
  }

  .ashen-volume__entry time {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.7rem;
  }

  .ashen-volume__entry strong {
    grid-column: 2;
    grid-row: 1;
  }

  .ashen-volume__mark {
    grid-column: 3;
    grid-row: 1;
  }

  .ashen-friends__item a {
    grid-template-columns: 3ch 40px minmax(0, 1fr) 10px;
    gap: 10px 12px;
    padding: 14px 2px;
  }

  .ashen-friends__avatar {
    width: 40px;
    height: 40px;
  }

  .ashen-archive-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ashen-archive-years {
    position: sticky;
    top: 72px;
    z-index: 5;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ashen-archive-years::-webkit-scrollbar {
    display: none;
  }

  .ashen-archive-years a {
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .ashen-volume--archive .ashen-volume__entry a {
    grid-template-columns: 3ch 3.8rem minmax(0, 1fr) 10px;
    gap: 10px 12px;
    padding: 14px 2px;
  }

  .ashen-about__portrait {
    width: min(148px, 46vw);
  }

  .ashen-poster {
    min-height: 100svh;
  }

  .ashen-poster__copy {
    width: min(100% - 32px, 1120px);
    padding: 108px 0 48px;
  }

  .ashen-poster__mast {
    gap: 18px;
  }

  .ashen-poster__titles h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .ashen-poster__readout {
    right: 28px;
    top: 4px;
    font-size: 0.62rem;
  }

  .ashen-article__body {
    width: min(calc(100% - 24px), 1120px);
    margin-top: -16px;
  }

  .ashen-article__content {
    padding: 22px 18px;
  }

  .ashen-topics {
    height: 100svh;
    min-height: 100svh;
    padding: 0;
  }

  .ashen-topics__hero {
    top: max(76px, 8svh);
    left: 20px;
    max-width: 200px;
  }

  .ashen-topics__hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .ashen-topics__field.tag-cloud {
    margin: 0;
    min-height: 100%;
  }

  .ashen-press.bookshelf {
    height: 100svh;
    min-height: 560px;
  }

  .ashen-press-open {
    bottom: max(64px, calc(4svh + 40px));
    padding: 11px 16px;
    font-size: 0.7rem;
  }

  .ashen-press-back {
    bottom: max(64px, calc(4svh + 40px));
    padding: 11px 16px;
    font-size: 0.7rem;
  }

  .ashen-press[data-mode="detail"] .ashen-press-open {
    left: 50%;
    bottom: max(112px, calc(4svh + 88px));
  }

  .ashen-press[data-mode="detail"] .ashen-press-back {
    left: 50%;
  }

  .ashen-press-rail {
    width: min(88vw, 420px);
    gap: 10px;
    bottom: max(16px, 2.8svh);
  }

  .ashen-press-rail-bar {
    min-width: 18px;
    height: 3px;
  }

  .hub-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hub-card,
  .hub-card-face {
    min-height: 340px;
  }

  .cinema-frame {
    top: 92px;
    right: 22px;
    left: 22px;
  }

  .cinema-copies {
    width: 100%;
    min-height: 270px;
  }

  .cinema-copy h1 {
    font-size: clamp(3.4rem, 17vw, 5.4rem);
  }

  .cinema-subtitle {
    max-width: 90%;
    margin-top: 22px;
    font-size: 0.88rem;
  }

  .cinema-controls {
    right: auto;
    bottom: 88px;
    left: 50%;
  }

  body[data-header="cinema"] .site-nav {
    top: calc(100% + 8px);
    bottom: auto;
  }

  .cinema-rail {
    right: 12px;
    bottom: 12px;
    left: 12px;
    overflow-x: auto;
    padding: 6px 2px 8px;
  }

  .cinema-rail button {
    min-width: 124px;
    padding: 8px 9px;
  }

  .cinema-scroll {
    right: 22px;
    bottom: 32px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: 180px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #10121e;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .site-main {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    min-height: 83vh;
  }

  .post-grid,
  .taxonomy-grid,
  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-grid-block .post-card {
    display: flex;
  }

  .post-grid-block .post-card-cover {
    height: 150px;
    margin: -14px -14px 20px;
  }

  .post-card {
    min-height: 280px;
  }

  .timeline-item {
    grid-template-columns: 85px 1fr;
    gap: 10px;
  }

  .article-content {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .article-header-cover {
    min-height: 360px;
    padding: 30px 22px;
  }

  .social-links,
  .friends-grid {
    grid-template-columns: 1fr;
  }

  .spatial-toggle {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
}

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

  .post-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #three-css3d {
    display: none !important;
  }

  .cinema-copy,
  .cinema-home::before {
    transition: none;
  }

  .cinema-scroll span::after {
    animation: none;
  }

  .hub-card.is-glowing .hub-card-wind {
    animation: none;
  }

  .ashen-poster__scan,
  .ashen-poster__marker,
  .ashen-poster__scroll i {
    animation: none !important;
  }

  .ashen-poster .ashen-poster__wipe {
    transform: translateX(108%);
    opacity: 0;
    transition: none;
  }

  .ashen-poster .ashen-poster__media,
  .ashen-poster .ashen-poster__back,
  .ashen-poster .ashen-poster__eyebrow,
  .ashen-poster .ashen-poster__titles h1,
  .ashen-poster .ashen-poster__meta,
  .ashen-poster .ashen-poster__scroll,
  .ashen-poster .ashen-poster__spine,
  .ashen-poster .ashen-poster__hud {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
    filter: none;
  }

  .ashen-archive__card,
  .ashen-archive__row,
  .ashen-archive__item {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

@media print {
  #three-root,
  .site-header,
  .site-footer,
  .go-top,
  .post-nav,
  .comment-shell {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-main,
  .article-shell {
    width: 100%;
    padding: 0;
  }

  .article-content {
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .article-content p,
  .article-content li {
    color: #222;
  }
}
