/* ==========================================================================
   MUSUBI · 糸守观测站
   A private observatory — hand-written CSS, no frameworks, no remote assets.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --bg: #050912;
  --bg-deep: #02050a;
  --ink: #f2eee4;
  --ink-soft: #d5d9d8;
  --muted: #8d9aa5;
  --dim: #596876;
  --line: rgba(215, 229, 235, 0.14);
  --line-soft: rgba(215, 229, 235, 0.075);
  --cyan: #9fe7e2;
  --gold: #f0c08d;
  --rose: #e7a3a0;
  --red: #c74852;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Yu Mincho", "Hiragino Mincho ProN", SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --latin: "Didot", "Bodoni MT", "Baskerville", "Palatino Linotype", "Times New Roman", serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --accent: var(--gold);
  --accent-rgb: 240, 192, 141;
  --accent-deep: #8d5a36;
  --header-h: 92px;
  --footer-h: 66px;
}

/* ---------- Reset -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 65% 42%, rgba(36, 70, 88, 0.2), transparent 34%),
    linear-gradient(180deg, #03070e 0%, #08101a 45%, #151820 100%);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

body.is-panel-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  color: #fff8ee;
  background: rgba(199, 72, 82, 0.65);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 10px 16px;
  color: #081018;
  background: var(--gold);
  border-radius: 3px;
  font-size: 13px;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 32px;
  color: var(--ink);
  background: var(--bg-deep);
  text-align: center;
}

.noscript a {
  margin: 0 4px;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}

/* ---------- Opening ------------------------------------------------------ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(44, 66, 78, 0.16), transparent 35%),
    #03060b;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.intro.is-done {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.intro__knot {
  width: clamp(92px, 12vw, 128px);
  margin-bottom: 30px;
  opacity: 0;
  animation: introAppear 1.4s 0.15s var(--ease) forwards;
}

.intro__thread {
  stroke: var(--red);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  filter: drop-shadow(0 0 5px rgba(199, 72, 82, 0.55));
  animation: drawThread 2.1s 0.15s var(--ease) forwards;
}

.intro__thread--b {
  animation-delay: 0.32s;
  opacity: 0.65;
}

.intro__dot {
  fill: var(--gold);
  opacity: 0;
  animation: introAppear 0.5s 1.85s ease forwards;
}

.intro__jp {
  color: rgba(242, 238, 228, 0.76);
  font-family: var(--serif);
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.35em;
  opacity: 0;
  animation: introAppear 1.2s 0.8s var(--ease) forwards;
}

.intro__meta {
  margin-top: 18px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  opacity: 0;
  animation: introAppear 1.2s 1.1s var(--ease) forwards;
}

.intro__meta span {
  margin: 0 6px;
  color: var(--red);
}

@keyframes drawThread {
  to { stroke-dashoffset: 0; }
}

@keyframes introAppear {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- World / sky -------------------------------------------------- */
.world {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #050912;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  touch-action: none;
  cursor: default;
}

.sky-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 38%, rgba(72, 146, 154, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(2, 5, 10, 0.1) 0%, transparent 40%, rgba(3, 8, 13, 0.2) 72%, rgba(2, 5, 8, 0.7) 100%);
  transition: background 1.6s var(--ease), opacity 1.2s var(--ease);
}

.world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 35%, rgba(2, 5, 9, 0.32) 100%),
    linear-gradient(90deg, rgba(2, 5, 9, 0.46), transparent 30%, transparent 78%, rgba(2, 5, 9, 0.28));
}

.grain {
  position: absolute;
  inset: -30%;
  z-index: 12;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(3) infinite;
}

@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-2%, 1%, 0); }
  66% { transform: translate3d(1%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.sky.is-parallax {
  will-change: transform;
}

/* ---------- Horizon ------------------------------------------------------ */
.horizon {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: clamp(360px, 53vh, 640px);
  pointer-events: none;
  transform: translate3d(calc(var(--parallax-x, 0) * -8px), 0, 0);
  transition: filter 1.6s var(--ease);
}

.horizon svg {
  width: 100%;
  height: 100%;
}

.horizon__glow {
  position: absolute;
  bottom: 28%;
  left: 19%;
  width: 70%;
  height: 46%;
  background: radial-gradient(ellipse at 52% 56%, rgba(226, 162, 119, 0.16), transparent 68%);
  filter: blur(26px);
  opacity: 0.85;
  transition: opacity 1.5s var(--ease), transform 1.5s var(--ease);
}

.horizon__mist {
  position: absolute;
  z-index: 2;
  height: 13%;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(22px);
  mix-blend-mode: screen;
  opacity: 0.34;
  background: linear-gradient(90deg, transparent, rgba(190, 180, 191, 0.15) 28%, rgba(227, 194, 183, 0.1) 60%, transparent);
}

.horizon__cloudbank {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(22px);
  opacity: 0.52;
}

.horizon__cloudbank--a {
  top: 14%;
  left: 8%;
  width: 58%;
  height: 24%;
  background:
    radial-gradient(ellipse at 35% 50%, rgba(237, 188, 177, 0.28), transparent 58%),
    radial-gradient(ellipse at 65% 45%, rgba(149, 173, 186, 0.15), transparent 62%);
  transform: rotate(-2.5deg);
  animation: bankDriftA 27s ease-in-out infinite alternate;
}

.horizon__cloudbank--b {
  top: 22%;
  right: 2%;
  width: 48%;
  height: 20%;
  opacity: 0.4;
  background:
    radial-gradient(ellipse at 55% 50%, rgba(216, 164, 181, 0.25), transparent 58%),
    radial-gradient(ellipse at 35% 40%, rgba(220, 163, 130, 0.14), transparent 60%);
  transform: rotate(2deg);
  animation: bankDriftB 33s ease-in-out infinite alternate;
}

@keyframes bankDriftA {
  to { transform: translate3d(3%, -2%, 0) rotate(-1deg) scale(1.05); opacity: 0.34; }
}

@keyframes bankDriftB {
  to { transform: translate3d(-3%, 1%, 0) rotate(1deg) scale(1.04); opacity: 0.58; }
}

.horizon__mist--a {
  top: 57%;
  left: -8%;
  width: 72%;
  animation: mistDriftA 31s ease-in-out infinite alternate;
}

.horizon__mist--b {
  top: 67%;
  right: -12%;
  width: 64%;
  opacity: 0.24;
  animation: mistDriftB 39s ease-in-out infinite alternate;
}

@keyframes mistDriftA {
  to { transform: translate3d(8%, -3%, 0) scaleX(1.08); opacity: 0.2; }
}

@keyframes mistDriftB {
  to { transform: translate3d(-6%, 2%, 0) scaleX(1.12); opacity: 0.4; }
}

.cloud-bands {
  animation: cloudDrift 36s ease-in-out infinite alternate;
}

@keyframes cloudDrift {
  to { transform: translate3d(1.4%, 0, 0); opacity: 0.6; }
}

.lake-lines path {
  animation: lakeRipple 9s ease-in-out infinite;
}

.lake-lines path:nth-child(2n) {
  animation-delay: -3.4s;
}

.lake-lines path:nth-child(3n) {
  animation-delay: -6.1s;
}

@keyframes lakeRipple {
  0%, 100% { opacity: 0.06; transform: translateX(0); }
  50% { opacity: 0.24; transform: translateX(7px); }
}

.lake-glints circle {
  animation: lakeGlint 5.8s ease-in-out infinite;
}

.lake-glints circle:nth-child(2n) {
  animation-delay: -2.1s;
}

.lake-glints circle:nth-child(3n) {
  animation-delay: -4.2s;
}

@keyframes lakeGlint {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.55; transform: scale(1.2); }
}

.lake-reflection {
  animation: reflectionBreathe 7s ease-in-out infinite;
}

@keyframes reflectionBreathe {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 1; }
}

.valley-clouds {
  animation: valleyDrift 34s ease-in-out infinite alternate;
}

@keyframes valleyDrift {
  to { transform: translate3d(1.2%, -1.5%, 0); opacity: 0.34; }
}

.lake-cloud-bands {
  animation: lakeClouds 26s ease-in-out infinite alternate;
}

@keyframes lakeClouds {
  to { transform: translate3d(-1%, 0, 0); opacity: 0.64; }
}

.lake-boat {
  transform-box: fill-box;
  transform-origin: center;
  animation: boatBob 7s ease-in-out infinite;
}

@keyframes boatBob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0.3deg); }
  50% { transform: translate3d(4px, 1.5px, 0) rotate(-0.4deg); }
}

.lake-boat circle {
  animation: boatLantern 4.8s ease-in-out infinite;
}

@keyframes boatLantern {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

.figure-grass {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: grassBreathe 8s ease-in-out infinite alternate;
}

@keyframes grassBreathe {
  to { transform: skewX(1.2deg); }
}

.town-lights circle {
  animation: townFlicker 5s ease-in-out infinite;
}

.town-lights circle:nth-child(2n) {
  animation-delay: -2.4s;
}

.town-lights circle:nth-child(3n) {
  animation-delay: -3.8s;
}

@keyframes townFlicker {
  0%, 100% { opacity: 0.8; }
  45% { opacity: 0.32; }
  62% { opacity: 1; }
}

.fireflies {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.fireflies span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 3px;
  height: 3px;
  background: #f3c38d;
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    0 0 6px 2px rgba(245, 191, 128, 0.55),
    0 0 18px 7px rgba(213, 149, 102, 0.16);
  animation: fireflyFloat 8.5s var(--d, 0s) ease-in-out infinite;
}

@keyframes fireflyFloat {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
  22% { opacity: 0.8; }
  52% { opacity: 0.35; transform: translate3d(13px, -26px, 0) scale(1); }
  72% { opacity: 0.85; }
  100% { opacity: 0; transform: translate3d(-7px, -44px, 0) scale(0.8); }
}

.overlook {
  position: absolute;
  right: clamp(52px, 8vw, 138px);
  bottom: clamp(10px, 2vh, 26px);
  z-index: 4;
  width: clamp(300px, 30vw, 462px);
  pointer-events: none;
  opacity: 0.97;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.25));
  transform: translate3d(calc(var(--parallax-x, 0) * -14px), 0, 0);
  transition: opacity 1.6s var(--ease), filter 1.6s var(--ease), transform 1.6s var(--ease);
}

.overlook svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.red-thread {
  animation: redThreadPulse 5.5s ease-in-out infinite;
}

@keyframes redThreadPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.figures {
  filter:
    drop-shadow(0 0 12px rgba(7, 12, 17, 0.45))
    drop-shadow(0 0 9px rgba(240, 171, 132, 0.07));
}

.overlook-fireflies circle {
  animation: overlookGlint 6.5s ease-in-out infinite;
}

.overlook-fireflies circle:nth-child(2n) {
  animation-delay: -2.6s;
}

.overlook-fireflies circle:nth-child(3n) {
  animation-delay: -4.4s;
}

@keyframes overlookGlint {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.vertical-note {
  position: absolute;
  top: 50%;
  right: clamp(22px, 2.5vw, 42px);
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: rgba(205, 216, 219, 0.35);
  transform: translateY(-50%);
  pointer-events: none;
}

.vertical-note__index {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.vertical-note__name {
  writing-mode: vertical-rl;
  color: rgba(226, 165, 151, 0.64);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-shadow: 0 0 18px rgba(199, 72, 82, 0.16);
}

.vertical-note__text {
  writing-mode: vertical-rl;
  color: rgba(220, 228, 229, 0.44);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.28em;
}

.vertical-note__line {
  width: 1px;
  height: 74px;
  background: linear-gradient(180deg, rgba(224, 232, 232, 0.24), transparent);
}

.vertical-note__meta {
  writing-mode: vertical-rl;
  color: rgba(185, 198, 203, 0.28);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(22px, 4.2vw, 64px);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(226, 235, 236, 0.16);
  border-radius: 50%;
  transition: border-color 0.5s var(--ease), transform 1.2s var(--ease), background 0.5s;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(199, 72, 82, 0.28);
  border-radius: 50%;
}

.brand__mark svg {
  width: 21px;
  height: 21px;
  stroke: var(--rose);
  stroke-width: 1.3;
  stroke-linecap: round;
  transition: stroke 0.5s;
}

.brand:hover .brand__mark {
  border-color: rgba(240, 192, 141, 0.5);
  background: rgba(240, 192, 141, 0.04);
  transform: rotate(90deg);
}

.brand:hover .brand__mark svg {
  stroke: var(--gold);
}

.brand__word {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__name {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.32em;
}

.brand__sub {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.2em;
}

.header-status {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(221, 230, 231, 0.53);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.header-status__muted {
  color: rgba(182, 196, 200, 0.32);
}

.status-pulse {
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: statusPulse 3.6s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 5px rgba(159, 231, 226, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 14px rgba(159, 231, 226, 0.9); }
}

.header-slash {
  color: var(--red);
  opacity: 0.7;
}

.header-rule {
  width: 36px;
  height: 1px;
  margin: 0 2px;
  background: rgba(222, 232, 233, 0.2);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.twilight-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: rgba(221, 229, 230, 0.5);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  transition: color 0.35s, background 0.35s, border-color 0.35s;
}

.twilight-toggle:hover,
.twilight-toggle:focus-visible {
  color: var(--gold);
  background: rgba(240, 192, 141, 0.035);
  border-color: rgba(240, 192, 141, 0.17);
}

.twilight-toggle[aria-pressed="true"] {
  color: var(--gold);
  border-color: rgba(240, 192, 141, 0.25);
  background: rgba(240, 192, 141, 0.06);
}

.twilight-toggle__orb {
  position: relative;
  width: 13px;
  height: 13px;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 0.7s var(--ease), background 0.5s, box-shadow 0.5s;
}

.twilight-toggle__orb::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -2px;
  width: 11px;
  height: 11px;
  background: #050a10;
  border-radius: 50%;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}

.twilight-toggle[aria-pressed="true"] .twilight-toggle__orb {
  background: currentColor;
  box-shadow: 0 0 12px rgba(240, 192, 141, 0.4);
  transform: rotate(180deg);
}

.twilight-toggle[aria-pressed="true"] .twilight-toggle__orb::after {
  opacity: 0;
  transform: translateX(10px);
}

.twilight-toggle__label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  color: rgba(221, 229, 230, 0.56);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  color: var(--ink);
  background: rgba(233, 241, 242, 0.035);
  border-color: var(--line);
}

.sound-toggle[aria-pressed="true"] {
  color: var(--gold);
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 13px;
}

.sound-bars i {
  width: 1.5px;
  height: 4px;
  background: currentColor;
  border-radius: 2px;
  animation: soundWave 1.25s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0.6;
}

.sound-bars i:nth-child(2) { height: 9px; animation-delay: -0.2s; }
.sound-bars i:nth-child(3) { height: 6px; animation-delay: -0.45s; }
.sound-bars i:nth-child(4) { height: 11px; animation-delay: -0.7s; }
.sound-toggle[aria-pressed="true"] .sound-bars i {
  animation-play-state: running;
  opacity: 1;
}

@keyframes soundWave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.sound-toggle__label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.sound-toggle__label span {
  color: var(--dim);
}

.sound-toggle[aria-pressed="true"] .sound-toggle__label span {
  color: var(--gold);
}

.clock {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.clock__place {
  color: var(--dim);
}

.clock__time {
  color: rgba(225, 233, 234, 0.64);
  font-variant-numeric: tabular-nums;
}

/* ---------- Hero copy ---------------------------------------------------- */
.home {
  position: absolute;
  inset: 0;
  z-index: 10;
  min-height: 100svh;
  pointer-events: none;
}

.hero {
  position: absolute;
  inset: 0;
}

.hero__copy {
  position: absolute;
  top: 49.5%;
  left: clamp(28px, 7.2vw, 118px);
  z-index: 11;
  width: min(44vw, 590px);
  transform: translateY(-49%);
  pointer-events: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 2.8vh, 30px);
  color: rgba(208, 219, 220, 0.45);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.24em;
  line-height: 1;
}

.eyebrow i {
  width: 26px;
  height: 1px;
  background: rgba(199, 72, 82, 0.65);
}

.hero__signature {
  position: relative;
  width: fit-content;
}

.hero__wordmark {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}

.hero__film-title {
  display: block;
  color: rgba(245, 241, 232, 0.96);
  font-family: var(--serif);
  font-size: clamp(54px, 6.3vw, 94px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.015em;
  text-shadow: 0 0 48px rgba(238, 229, 210, 0.09);
  white-space: nowrap;
}

.hero__brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.hero__brand {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.42em;
}

.seal {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #f5e4d4;
  background: rgba(157, 46, 53, 0.88);
  border: 1px solid rgba(244, 210, 190, 0.35);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(7deg);
  -webkit-text-fill-color: currentColor;
  box-shadow: 0 0 18px rgba(199, 72, 82, 0.18);
}

.hero__signature-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: rgba(214, 221, 218, 0.44);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.hero__signature-jp {
  color: rgba(231, 211, 190, 0.58);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.hero__signature-line {
  width: 22px;
  height: 1px;
  background: rgba(199, 72, 82, 0.58);
}

.hero__thread {
  width: min(100%, 338px);
  height: 27px;
  margin-top: 15px;
  overflow: visible;
}

.hero__thread path {
  fill: none;
  stroke: rgba(195, 73, 82, 0.54);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 135 20;
  animation: threadFlow 13s linear infinite;
}

.hero__thread path:nth-child(2) {
  stroke: rgba(231, 159, 140, 0.36);
  stroke-width: 0.6;
  stroke-dasharray: 58 18;
  animation-direction: reverse;
  animation-duration: 18s;
}

.hero__thread circle {
  fill: rgba(228, 171, 152, 0.7);
}

@keyframes threadFlow {
  to { stroke-dashoffset: -620; }
}

.hero__jp {
  margin-top: clamp(22px, 3.2vh, 32px);
  color: rgba(217, 226, 224, 0.64);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.23em;
}

.hero__description {
  margin-top: 16px;
  color: rgba(201, 209, 210, 0.68);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 2.05;
  letter-spacing: 0.07em;
}

.hero__description-accent {
  color: rgba(241, 219, 191, 0.92);
}

.hero__hint {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: clamp(34px, 5vh, 58px);
  color: rgba(190, 202, 204, 0.4);
}

.hint-line {
  width: 1px;
  height: 37px;
  margin-top: 3px;
  background: linear-gradient(180deg, rgba(223, 233, 233, 0.35), transparent);
}

.hero__hint p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.65;
}

.hint-state--split {
  display: none;
}

body.is-split .hint-state--single {
  display: none;
}

body.is-split .hint-state--split {
  display: block;
}

.hero__hint p .hint-state--single {
  color: rgba(225, 216, 200, 0.62);
}

body.is-split .hero__hint p .hint-state--split {
  color: rgba(225, 216, 200, 0.6);
}

.hint-rejoin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 4px;
  padding: 0;
  color: rgba(224, 174, 160, 0.68);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.55;
  letter-spacing: 0.13em;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}

.hint-rejoin[hidden] {
  display: none;
}

.hint-rejoin__knot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: rgba(245, 195, 177, 0.9);
  font-family: var(--serif);
  font-size: 8px;
  line-height: 1;
  border: 1px solid rgba(199, 72, 82, 0.4);
  border-radius: 2px;
}

.hint-rejoin:hover {
  color: rgba(255, 215, 195, 0.94);
}

.hint-rejoin:hover .hint-rejoin__knot {
  background: rgba(155, 45, 55, 0.2);
  border-color: rgba(228, 128, 114, 0.66);
}

.hint-rejoin:focus-visible {
  outline: 1px dashed rgba(228, 158, 141, 0.7);
  outline-offset: 4px;
}

body.is-split .hint-line {
  background: linear-gradient(180deg, rgba(199, 72, 82, 0.62), transparent);
}

/* ---------- Reveal ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
}

body.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease);
}

body.is-ready [data-reveal="1"] { transition-delay: 0.1s; }
body.is-ready [data-reveal="2"] { transition-delay: 0.2s; }
body.is-ready [data-reveal="3"] { transition-delay: 0.36s; }
body.is-ready [data-reveal="4"] { transition-delay: 0.48s; }
body.is-ready [data-reveal="5"] { transition-delay: 0.6s; }
body.is-ready [data-reveal="6"] { transition-delay: 0.72s; }

body.is-ready .comet-zone {
  animation: zoneAppear 2.2s 0.45s var(--ease) both;
}

@keyframes zoneAppear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Comet / interactive zone ------------------------------------ */
.comet-zone {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.comet-fg {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.orbit-decor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.3s 0.35s var(--ease);
}

body.is-split .orbit-decor {
  opacity: 1;
}

.orbit-decor__ring {
  position: absolute;
  top: var(--core-y, 43%);
  left: var(--core-x, 69%);
  width: calc(var(--orbit-rx, 240px) * 2 + 86px);
  height: calc(var(--orbit-ry, 210px) * 2 + 86px);
  border: 1px dashed rgba(217, 231, 233, 0.085);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-17deg);
}

.orbit-decor__ring--two {
  width: calc(var(--orbit-rx, 240px) * 2 + 178px);
  height: calc(var(--orbit-ry, 210px) * 2 + 178px);
  border-color: rgba(217, 231, 233, 0.04);
  transform: translate(-50%, -50%) rotate(12deg);
}

.orbit-decor__mark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(221, 234, 235, 0.2);
  border-left: 1px solid rgba(221, 234, 235, 0.2);
}

.orbit-decor__mark--tl {
  top: calc(var(--core-y, 43%) - var(--orbit-ry, 210px) - 62px);
  left: calc(var(--core-x, 69%) - var(--orbit-rx, 240px) - 62px);
}

.orbit-decor__mark--br {
  top: calc(var(--core-y, 43%) + var(--orbit-ry, 210px) + 54px);
  left: calc(var(--core-x, 69%) + var(--orbit-rx, 240px) + 52px);
  transform: rotate(180deg);
}

.nucleus {
  position: absolute;
  top: var(--core-y, 43%);
  left: var(--core-x, 69%);
  z-index: 5;
  width: 240px;
  height: 240px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  isolation: isolate;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease), transform 1.1s var(--ease);
  outline: none;
}

body.is-split .nucleus {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.64);
}

.nucleus__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 168%;
  height: 168%;
  background:
    radial-gradient(circle, rgba(255, 243, 221, 0.23) 0%, rgba(173, 225, 221, 0.09) 18%, rgba(88, 144, 154, 0.035) 40%, transparent 67%);
  border-radius: 50%;
  filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease);
  animation: nucleusBreathe 7s ease-in-out infinite;
}

.nucleus::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  background: #fff8e8;
  border-radius: 50%;
  box-shadow:
    0 0 12px 4px rgba(255, 242, 214, 0.95),
    0 0 44px 11px rgba(177, 230, 225, 0.36),
    0 0 105px 38px rgba(121, 190, 191, 0.13);
  transform: translate(-50%, -50%);
  transition: transform 0.7s var(--ease), box-shadow 0.7s, width 0.8s, height 0.8s;
}

body.is-split .nucleus::before {
  width: 8px;
  height: 8px;
  box-shadow:
    0 0 9px 3px rgba(255, 242, 214, 0.9),
    0 0 30px 8px rgba(177, 230, 225, 0.28),
    0 0 72px 22px rgba(121, 190, 191, 0.1);
}

body:not(.is-split) .nucleus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(226, 238, 235, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: splitInvite 3.6s ease-out infinite;
}

@keyframes splitInvite {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.68); }
  22% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.75); }
}

.nucleus__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 232px;
  height: 78px;
  border: 1px solid rgba(196, 229, 227, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  pointer-events: none;
  transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), width 1.2s var(--ease), height 1.2s var(--ease);
}

.nucleus__orbit::before {
  content: "";
  position: absolute;
  top: 46%;
  left: -2px;
  width: 4px;
  height: 4px;
  background: rgba(255, 223, 183, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 206, 154, 0.5);
}

.nucleus__orbit--two {
  width: 182px;
  height: 244px;
  border-style: dashed;
  border-color: rgba(197, 227, 225, 0.055);
  transform: translate(-50%, -50%) rotate(36deg);
}

.nucleus__orbit--two::before {
  top: auto;
  right: 8%;
  bottom: 2%;
  left: auto;
  background: rgba(188, 235, 229, 0.62);
}

body.is-split .nucleus__orbit {
  width: 72px;
  height: 36px;
  opacity: 0.36;
}

body.is-split .nucleus__orbit--two {
  width: 48px;
  height: 72px;
  opacity: 0.22;
}

.nucleus__cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: opacity 0.7s, width 1.1s var(--ease), height 1.1s var(--ease);
}

body.is-split .nucleus__cross {
  width: 176px;
  height: 176px;
  opacity: 0.25;
}

.nucleus__cross::before,
.nucleus__cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(213, 239, 237, 0.3), transparent);
  transform: translate(-50%, -50%);
}

.nucleus__cross::before {
  width: 100%;
  height: 1px;
}

.nucleus__cross::after {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(213, 239, 237, 0.3), transparent);
}

.nucleus__caption {
  position: absolute;
  top: calc(50% + 46px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 13px 6px;
  color: rgba(224, 231, 226, 0.68);
  background: rgba(4, 10, 16, 0.38);
  border: 1px solid rgba(214, 232, 233, 0.13);
  border-radius: 4px;
  backdrop-filter: blur(7px);
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 0.4s, border-color 0.4s, background 0.4s, top 1.1s var(--ease), padding 1.1s var(--ease);
}

.nucleus__caption-cn {
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.nucleus__caption-en {
  color: rgba(203, 218, 218, 0.32);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1.4;
  letter-spacing: 0.2em;
}

body.is-split .nucleus__caption {
  top: 50%;
  left: calc(50% - 34px);
  padding: 6px 10px;
  background: rgba(4, 10, 16, 0.48);
  border-color: rgba(214, 232, 233, 0.12);
  transform: translate(-100%, -50%);
}

body.is-split .nucleus__caption-cn {
  font-size: 9px;
  color: rgba(209, 222, 219, 0.55);
}

body.is-split .nucleus__caption-en {
  display: none;
}

.nucleus:hover .nucleus__halo,
.nucleus:focus-visible .nucleus__halo {
  transform: translate(-50%, -50%) scale(1.1);
}

.nucleus:hover::before,
.nucleus:focus-visible::before {
  transform: translate(-50%, -50%) scale(1.35);
}

.nucleus:hover .nucleus__cross,
.nucleus:focus-visible .nucleus__cross {
  opacity: 0.75;
}

.nucleus:hover .nucleus__caption,
.nucleus:focus-visible .nucleus__caption {
  color: var(--gold);
  border-color: rgba(240, 192, 141, 0.28);
  background: rgba(4, 9, 15, 0.68);
}

.nucleus:hover .nucleus__orbit,
.nucleus:focus-visible .nucleus__orbit {
  border-color: rgba(240, 192, 141, 0.24);
}

.nucleus:focus-visible {
  outline: 1px dashed rgba(240, 192, 141, 0.6);
  outline-offset: 8px;
}

@keyframes nucleusBreathe {
  0%, 100% { opacity: 0.78; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

/* ---------- Comet shards ------------------------------------------------- */
.shard {
  --shard-accent: var(--gold);
  --shard-rgb: 240, 192, 141;
  position: absolute;
  top: 0;
  left: -999px;
  z-index: 6;
  display: block;
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 50%;
  text-align: left;
  pointer-events: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  will-change: left, top;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s var(--ease) 0.35s, visibility 0.85s;
}

body.is-split .shard {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 1.15s var(--ease) 0.45s, visibility 1.15s;
}

body.is-split .shard--about {
  transition-delay: 0.55s;
}

body.is-split .shard--projects {
  transition-delay: 1.1s;
}

body.is-split .shard--knowledge {
  transition-delay: 1.7s;
}

body.is-transforming .shard {
  pointer-events: none;
}

.shard--projects {
  --shard-accent: #f0c08d;
  --shard-rgb: 240, 192, 141;
}

.shard--knowledge {
  --shard-accent: #9fe7e2;
  --shard-rgb: 159, 231, 226;
}

.shard--about {
  --shard-accent: #eda6a1;
  --shard-rgb: 237, 166, 161;
}

.shard__marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.7s var(--ease);
}

.shard__marker::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(var(--shard-rgb), 0.23);
  border-top-color: rgba(var(--shard-rgb), 0.78);
  border-radius: 50%;
  animation: shardSpin 21s linear infinite;
}

.shard--knowledge .shard__marker::before {
  animation-duration: 27s;
  animation-direction: reverse;
}

.shard--about .shard__marker::before {
  animation-duration: 33s;
}

.shard__marker::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(var(--shard-rgb), 0.15);
  border-radius: 50%;
  box-shadow: inset 0 0 16px rgba(var(--shard-rgb), 0.05);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.shard__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(var(--shard-rgb), 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.7s var(--ease), height 0.7s var(--ease), border-color 0.4s;
}

.shard__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #f7f2e8;
  border-radius: 50%;
  box-shadow:
    0 0 7px 2px rgba(var(--shard-rgb), 0.9),
    0 0 24px 8px rgba(var(--shard-rgb), 0.2);
  transform: translate(-50%, -50%);
  transition: transform 0.7s var(--ease), box-shadow 0.5s;
}

@keyframes shardSpin {
  to { transform: rotate(360deg); }
}

.shard__text {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 206px;
  padding: 7px 10px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  transform: translateY(-50%);
  transition: background 0.4s var(--ease), border-color 0.4s, transform 0.45s var(--ease), backdrop-filter 0.4s;
}

.shard__top {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
  white-space: nowrap;
}

.shard__index {
  color: rgba(var(--shard-rgb), 0.66);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.shard__cn {
  color: rgba(244, 241, 232, 0.94);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 18px rgba(2, 6, 11, 0.8);
  transition: color 0.35s;
}

.shard__plus {
  color: var(--shard-accent);
  font-family: var(--sans);
  font-size: 11px;
  opacity: 0;
  transform: translate(-4px, 3px);
  transition: opacity 0.35s, transform 0.35s;
}

.shard__en {
  margin-top: 4px;
  color: rgba(210, 223, 225, 0.48);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.35s;
}

.shard__desc {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(205, 218, 220, 0.62);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(3px);
  transition: max-height 0.5s var(--ease), opacity 0.4s, transform 0.4s var(--ease), margin 0.4s;
}

.shard__count {
  margin-top: 4px;
  color: rgba(var(--shard-rgb), 0.42);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
  line-height: 1.5;
  white-space: nowrap;
}

.shard__main {
  margin-top: 5px;
  color: rgba(234, 169, 153, 0.64);
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* 主彗星本体就是知识库入口，不再额外画一颗漂浮的主星 */
body.is-split .shard--knowledge {
  width: 150px;
  height: 150px;
  z-index: 6;
}

body.is-split .shard--knowledge .shard__marker {
  opacity: 0;
  visibility: hidden;
}

/* 从最上面的关于我往下：关于我 → 项目 → 知识库（主彗星） */
body.is-split .shard .shard__text {
  top: calc(50% + 36px);
  right: auto;
  left: 50%;
  align-items: center;
  width: clamp(154px, 16vw, 206px);
  text-align: center;
  transform: translateX(-50%);
}

body.is-split .shard .shard__top {
  justify-content: center;
}

body.is-split .shard--knowledge .shard__text {
  background: rgba(4, 10, 17, 0.2);
  border-color: rgba(159, 231, 226, 0.08);
}

body.is-split .shard--knowledge:focus-visible .shard__text {
  outline: 1px dashed rgba(159, 231, 226, 0.54);
  outline-offset: 6px;
}

.shard:hover .shard__marker,
.shard:focus-visible .shard__marker {
  transform: translate(-50%, -50%) scale(1.11);
}

.shard:hover .shard__marker::before,
.shard:focus-visible .shard__marker::before {
  border-top-color: var(--shard-accent);
  animation-duration: 8s;
}

.shard:hover .shard__marker::after,
.shard:focus-visible .shard__marker::after {
  border-color: rgba(var(--shard-rgb), 0.32);
  box-shadow: inset 0 0 22px rgba(var(--shard-rgb), 0.11);
}

.shard:hover .shard__ring,
.shard:focus-visible .shard__ring {
  width: 23px;
  height: 23px;
  border-color: rgba(var(--shard-rgb), 0.48);
}

.shard:hover .shard__dot,
.shard:focus-visible .shard__dot {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow:
    0 0 10px 3px rgba(var(--shard-rgb), 1),
    0 0 46px 16px rgba(var(--shard-rgb), 0.28);
}

.shard:hover .shard__text,
.shard:focus-visible .shard__text {
  background: rgba(4, 10, 17, 0.58);
  border-color: rgba(var(--shard-rgb), 0.12);
  backdrop-filter: blur(10px);
}

.shard:hover .shard__cn,
.shard:focus-visible .shard__cn {
  color: var(--shard-accent);
}

.shard:hover .shard__plus,
.shard:focus-visible .shard__plus {
  opacity: 1;
  transform: translate(0, 0);
}

.shard:hover .shard__en,
.shard:focus-visible .shard__en {
  color: rgba(var(--shard-rgb), 0.7);
}

.shard:hover .shard__desc,
.shard:focus-visible .shard__desc {
  max-height: 42px;
  margin-top: 5px;
  opacity: 1;
  transform: translateY(0);
}

.shard:hover .shard__count,
.shard:focus-visible .shard__count {
  color: rgba(var(--shard-rgb), 0.58);
}

.shard:focus-visible {
  outline: none;
}

.shard:focus-visible .shard__marker::after {
  outline: 1px solid rgba(var(--shard-rgb), 0.85);
  outline-offset: 7px;
}

.twilight-whisper {
  position: absolute;
  z-index: 7;
  right: 17%;
  bottom: 19%;
  color: rgba(255, 235, 203, 0);
  font-family: var(--serif);
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.19em;
  opacity: 0;
  filter: blur(7px);
  transform: translateY(8px);
  transition: opacity 2s var(--ease), color 2s var(--ease), filter 2s var(--ease), transform 2s var(--ease);
  pointer-events: none;
  text-shadow: 0 0 28px rgba(255, 205, 141, 0.22);
}

/* ---------- Twilight mode ------------------------------------------------ */
body.is-kataware .sky-wash {
  background:
    radial-gradient(ellipse at 64% 36%, rgba(255, 187, 119, 0.17), transparent 36%),
    linear-gradient(180deg, rgba(67, 39, 67, 0.18) 0%, rgba(141, 82, 79, 0.14) 38%, rgba(246, 157, 105, 0.17) 64%, rgba(10, 13, 18, 0.45) 100%);
}

body.is-kataware .horizon {
  filter: saturate(1.3) brightness(1.19) hue-rotate(-5deg);
}

body.is-kataware .horizon__glow {
  opacity: 1;
  transform: scale(1.16) translateY(-8px);
}

body.is-kataware .ridge-clouds {
  opacity: 0.9;
}

body.is-kataware .lake-cloud-bands {
  opacity: 1;
}

body.is-kataware .horizon__mist {
  opacity: 0.6;
  filter: blur(22px) brightness(1.1);
}

body.is-kataware .hero__film-title {
  color: #ffe6c4;
  text-shadow:
    0 0 48px rgba(255, 194, 132, 0.11),
    0 0 110px rgba(255, 170, 112, 0.06);
}

body.is-kataware .hero__brand {
  color: #ffd19a;
}

body.is-kataware .horizon__mist {
  opacity: 0.48;
}

body.is-kataware .overlook {
  filter:
    drop-shadow(0 18px 35px rgba(0, 0, 0, 0.22))
    sepia(0.08)
    saturate(1.06);
}

body.is-kataware .fireflies span {
  background: #ffd59a;
}

body.is-kataware .twilight-whisper {
  color: rgba(255, 235, 203, 0.85);
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

body.is-kataware .nucleus__caption {
  color: var(--gold);
  border-color: rgba(240, 192, 141, 0.25);
}

body.is-kataware .nucleus__halo {
  background:
    radial-gradient(circle, rgba(255, 226, 181, 0.24) 0%, rgba(255, 183, 123, 0.1) 20%, rgba(172, 101, 91, 0.04) 44%, transparent 68%);
}

body.is-kataware .vertical-note__text {
  color: rgba(255, 220, 179, 0.5);
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--footer-h);
  padding: 0 clamp(22px, 4.2vw, 64px);
  color: rgba(202, 215, 217, 0.45);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 5, 9, 0.28));
}

.site-footer__left,
.site-footer__center,
.site-footer__right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.site-footer__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(201, 215, 217, 0.34);
}

.site-footer__center i {
  display: inline-block;
  width: 2px;
  height: 2px;
  background: rgba(199, 72, 82, 0.8);
  border-radius: 50%;
}

.footer-mark {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: rgba(240, 192, 141, 0.65);
  border: 1px solid rgba(240, 192, 141, 0.2);
  font-family: var(--serif);
  font-size: 8px;
  line-height: 1;
}

.footer-divider {
  width: 20px;
  height: 1px;
  background: rgba(208, 223, 225, 0.13);
}

.footer-muted {
  color: rgba(185, 202, 204, 0.26);
}

/* ICP 备案号：法定展示项，必须可点、可读，所以单独给 pointer-events 和更高的对比度 */
.footer-icp {
  color: rgba(202, 215, 217, 0.6);
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.25s ease;
}

.footer-icp:hover,
.footer-icp:focus-visible {
  color: rgba(240, 192, 141, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Custom cursor ------------------------------------------------ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 160;
  width: 32px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}

body.has-pointer .cursor {
  opacity: 1;
}

.cursor__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(231, 239, 237, 0.35);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), border-color 0.35s, opacity 0.35s;
}

.cursor__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(240, 192, 141, 0.8);
  transform: translate(-50%, -50%);
}

.cursor.is-hovering .cursor__ring {
  border-color: rgba(240, 192, 141, 0.75);
  transform: scale(1.55);
}

.cursor.is-hovering .cursor__dot {
  transform: translate(-50%, -50%) scale(1.6);
}

.cursor.is-down .cursor__ring {
  transform: scale(0.7);
}

@media (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Interface layer / panel ------------------------------------- */
.interface-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 5, 9, 0.72);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(13px) saturate(0.8);
  -webkit-backdrop-filter: blur(13px) saturate(0.8);
  transition: opacity 0.65s var(--ease);
}

.interface-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.interface-layer[hidden] {
  display: none;
}

.memory-panel {
  position: absolute;
  inset: clamp(0px, 1.35vw, 22px);
  overflow: hidden;
  color: var(--ink);
  background: #05090f;
  border: 1px solid rgba(226, 238, 238, 0.13);
  border-radius: clamp(0px, 1.7vw, 26px);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  clip-path: circle(0 at var(--origin-x, 70%) var(--origin-y, 40%));
  transition: clip-path 0.95s var(--ease);
  outline: none;
}

.interface-layer.is-open .memory-panel {
  clip-path: circle(155% at var(--origin-x, 70%) var(--origin-y, 40%));
}

.memory-panel[data-theme="projects"] {
  --accent: #f0c08d;
  --accent-rgb: 240, 192, 141;
  --accent-deep: #8d5a36;
}

.memory-panel[data-theme="knowledge"] {
  --accent: #9fe7e2;
  --accent-rgb: 159, 231, 226;
  --accent-deep: #3c7778;
}

.memory-panel[data-theme="about"] {
  --accent: #eda6a1;
  --accent-rgb: 237, 166, 161;
  --accent-deep: #874d51;
}

.panel-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 90% 3%, rgba(var(--accent-rgb), 0.11), transparent 30%),
    radial-gradient(ellipse at 52% 100%, rgba(var(--accent-rgb), 0.035), transparent 48%),
    linear-gradient(115deg, rgba(11, 23, 32, 0.46), transparent 38%, rgba(3, 6, 10, 0.2));
}

.panel-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 13% 23%, #fff 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 78% 17%, #fff 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 41% 74%, #fff 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 91% 63%, #fff 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 63% 43%, #fff 0 0.4px, transparent 0.7px);
  background-size: 173px 173px, 257px 257px, 211px 211px, 307px 307px, 139px 139px;
}

.panel-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.032;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.panel-atmosphere__ring {
  position: absolute;
  top: -24vw;
  right: -14vw;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgba(var(--accent-rgb), 0.09);
  border-radius: 50%;
}

.panel-atmosphere__ring::before,
.panel-atmosphere__ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), 0.055);
  border-radius: 50%;
}

.panel-atmosphere__ring::before {
  inset: 8%;
}

.panel-atmosphere__ring::after {
  inset: 19%;
}

.panel-atmosphere__star {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px 5px rgba(var(--accent-rgb), 0.24);
  animation: panelStar 6s ease-in-out infinite;
}

.panel-atmosphere__star--a { top: 21%; left: 77%; }
.panel-atmosphere__star--b { top: 67%; left: 91%; width: 3px; height: 3px; animation-delay: -2s; }
.panel-atmosphere__star--c { top: 83%; left: 8%; width: 2px; height: 2px; animation-delay: -4s; }

@keyframes panelStar {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.1); }
}

.panel-atmosphere__index {
  position: absolute;
  right: clamp(22px, 5vw, 88px);
  bottom: -0.18em;
  color: rgba(var(--accent-rgb), 0.045);
  font-family: var(--latin);
  font-size: clamp(260px, 40vw, 660px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.08em;
  user-select: none;
}

.panel-chrome {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 78px;
  padding: 0 clamp(22px, 3.6vw, 58px);
  background: #060a10;
}

.panel-chrome::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -24px;
  left: 0;
  height: 24px;
  background: linear-gradient(180deg, #060a10, rgba(6, 10, 16, 0));
  pointer-events: none;
}

.panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.panel-brand .brand__mark {
  width: 30px;
  height: 30px;
}

.panel-brand .brand__mark svg {
  width: 17px;
  height: 17px;
}

.panel-brand__text {
  color: rgba(223, 232, 233, 0.54);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.panel-brand__text i {
  margin: 0 6px;
  color: var(--accent);
  font-style: normal;
}

.panel-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(238, 245, 244, 0.025);
  border: 1px solid rgba(218, 232, 233, 0.08);
  border-radius: 99px;
}

.panel-nav button {
  padding: 7px 14px;
  color: rgba(207, 220, 221, 0.42);
  background: transparent;
  border: 0;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.09em;
  transition: color 0.3s, background 0.3s;
}

.panel-nav button span {
  margin-right: 6px;
  color: rgba(207, 220, 221, 0.27);
  font-family: var(--mono);
  font-size: 7px;
}

.panel-nav button:hover,
.panel-nav button:focus-visible {
  color: var(--ink);
}

.panel-nav button.is-active {
  color: #0a1116;
  background: var(--accent);
}

.panel-nav button.is-active span {
  color: rgba(8, 15, 20, 0.55);
}

.panel-close {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0 7px 14px;
  color: rgba(214, 225, 226, 0.56);
  background: transparent;
  border: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.panel-close:hover,
.panel-close:focus-visible {
  color: var(--accent);
}

.panel-close__icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(214, 231, 231, 0.15);
  border-radius: 50%;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}

.panel-close:hover .panel-close__icon {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: rotate(90deg);
}

.panel-close__icon svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 1.2;
}

.panel-close kbd {
  padding: 2px 5px;
  color: rgba(202, 218, 220, 0.29);
  background: rgba(228, 239, 240, 0.035);
  border: 1px solid rgba(224, 236, 237, 0.09);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.panel-scroll {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 122px clamp(24px, 5.4vw, 92px) 96px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.3) transparent;
}

.panel-scroll::-webkit-scrollbar {
  width: 8px;
}

.panel-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.22);
  border: 2px solid #05090f;
  border-radius: 99px;
}

.panel-scroll:focus-visible {
  outline: none;
}

.panel-content {
  width: min(100%, 1180px);
  margin: 0 auto;
  animation: interfaceIn 0.6s var(--ease) both;
}

@keyframes interfaceIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  height: 2px;
  background: rgba(219, 232, 233, 0.055);
}

.panel-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
  transition: width 0.1s linear;
}

/* ---------- Panel content common ---------------------------------------- */
.interface-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-soft);
}

.interface-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 25px;
  color: rgba(var(--accent-rgb), 0.75);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.interface-kicker::before {
  content: "";
  width: 23px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.48);
}

.interface-title {
  margin-left: -0.04em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(48px, 6.1vw, 92px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.interface-title em {
  color: var(--accent);
  font-style: normal;
}

.interface-lead {
  max-width: 540px;
  margin-top: 27px;
  color: rgba(200, 212, 214, 0.7);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2.05;
  letter-spacing: 0.035em;
}

.interface-aside {
  padding-bottom: 5px;
}

.interface-aside__label {
  color: rgba(188, 204, 205, 0.4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.8;
}

.interface-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.interface-stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.interface-stats strong {
  color: rgba(var(--accent-rgb), 0.88);
  font-family: var(--latin);
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.interface-stats span {
  color: rgba(188, 204, 205, 0.46);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.interface-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: rgba(197, 211, 212, 0.42);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.interface-note::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
}

.interface-body {
  padding-top: clamp(35px, 4.5vw, 58px);
}

.interface-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 6px 12px;
  color: rgba(200, 213, 215, 0.56);
  background: transparent;
  border: 1px solid rgba(218, 231, 232, 0.11);
  border-radius: 99px;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--ink);
  border-color: rgba(var(--accent-rgb), 0.27);
}

.filter-chip[aria-pressed="true"] {
  color: #081015;
  background: var(--accent);
  border-color: var(--accent);
}

.toolbar-count {
  flex: 0 0 auto;
  color: rgba(190, 206, 208, 0.42);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.interface-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(65px, 8vw, 110px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.interface-footer__mark {
  color: rgba(190, 205, 206, 0.24);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  line-height: 1.9;
}

.interface-footer__mark em {
  color: rgba(var(--accent-rgb), 0.55);
  font-style: normal;
}

/* 面板页脚同样要挂备案号：面板是全屏覆盖的，主页面页脚在这里看不见 */
.interface-footer__icp {
  color: rgba(190, 205, 206, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
}

.interface-footer__icp:hover,
.interface-footer__icp:focus-visible {
  color: rgba(var(--accent-rgb), 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.next-interface {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  color: rgba(213, 226, 227, 0.56);
  background: transparent;
  border: 0;
  text-align: right;
  transition: color 0.3s;
}

.next-interface:hover,
.next-interface:focus-visible {
  color: var(--accent);
}

.next-interface__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-interface__label small {
  color: rgba(187, 204, 205, 0.3);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.13em;
}

.next-interface__label strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.next-interface__arrow {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.next-interface:hover .next-interface__arrow {
  border-color: rgba(var(--accent-rgb), 0.55);
  transform: translateX(4px);
}

.next-interface__arrow svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1;
}

/* ---------- Projects ----------------------------------------------------- */
.project-list {
  border-top: 1px solid var(--line-soft);
}

.project-card {
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.5s var(--ease);
}

.project-card.is-hidden {
  display: none;
}

.project-card.is-open {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.025), transparent 70%);
}

.project-trigger {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 92px 98px 28px;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 25px 4px 25px 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.project-trigger__no {
  color: rgba(var(--accent-rgb), 0.52);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.project-trigger__title {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.project-trigger__title strong {
  overflow: hidden;
  color: rgba(240, 237, 228, 0.93);
  font-family: var(--serif);
  font-size: clamp(20px, 2.15vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.35s, transform 0.5s var(--ease);
}

.project-trigger:hover .project-trigger__title strong {
  color: var(--accent);
  transform: translateX(4px);
}

.project-trigger__title small {
  overflow: hidden;
  color: rgba(184, 200, 202, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-trigger__year {
  color: rgba(196, 211, 212, 0.52);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.project-trigger__status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(var(--accent-rgb), 0.7);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.project-trigger__status::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.6);
}

.project-trigger__icon {
  position: relative;
  width: 22px;
  height: 22px;
  justify-self: end;
}

.project-trigger__icon::before,
.project-trigger__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: rgba(208, 223, 224, 0.45);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.project-trigger__icon::before {
  transform: translate(-50%, -50%);
}

.project-trigger__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.project-card.is-open .project-trigger__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.project-card.is-open .project-trigger__icon::before {
  background: var(--accent);
}

.project-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--ease);
}

.project-card.is-open .project-panel {
  grid-template-rows: 1fr;
}

.project-panel__clip {
  overflow: hidden;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: clamp(30px, 5vw, 70px);
  padding: 2px 0 42px 68px;
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity 0.55s 0.08s var(--ease), transform 0.55s 0.08s var(--ease);
}

.project-card.is-open .project-detail {
  opacity: 1;
  transform: translateY(0);
}

.project-detail__copy {
  padding-top: 5px;
}

.project-summary {
  color: rgba(var(--accent-rgb), 0.88);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.project-description {
  max-width: 620px;
  margin-top: 13px;
  color: rgba(195, 208, 210, 0.65);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 2.05;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.project-meta dt {
  margin-bottom: 5px;
  color: rgba(185, 201, 203, 0.4);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
}

.project-meta dd {
  color: rgba(206, 217, 218, 0.7);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 8px;
  color: rgba(var(--accent-rgb), 0.68);
  background: rgba(var(--accent-rgb), 0.045);
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: rgba(var(--accent-rgb), 0.82);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.27);
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}

.project-link:hover {
  gap: 12px;
  color: var(--accent);
  border-color: var(--accent);
}

.project-link--private {
  color: rgba(190, 205, 206, 0.26);
  border-bottom-color: rgba(190, 205, 206, 0.1);
  pointer-events: none;
}

.project-visual {
  position: relative;
  min-height: 246px;
  overflow: hidden;
  border: 1px solid rgba(219, 233, 234, 0.1);
  border-radius: 2px;
  isolation: isolate;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(2, 5, 9, 0.55));
  pointer-events: none;
}

.project-visual__label {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 13px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  color: rgba(228, 236, 234, 0.4);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.11em;
}

.project-visual--orbit {
  background:
    radial-gradient(circle at 62% 45%, rgba(232, 183, 128, 0.2), transparent 24%),
    radial-gradient(ellipse at 35% 20%, rgba(83, 135, 143, 0.18), transparent 40%),
    linear-gradient(145deg, #0b1720, #071017 62%, #050a10);
}

.project-visual--orbit::before {
  content: "";
  position: absolute;
  top: 47%;
  left: 57%;
  width: 190px;
  height: 150px;
  border: 1px solid rgba(240, 192, 141, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(240, 192, 141, 0.025),
    0 0 0 64px rgba(240, 192, 141, 0.018);
  transform: translate(-50%, -50%) rotate(-24deg);
}

.project-visual--orbit .art-comet {
  position: absolute;
  top: 41%;
  left: 65%;
  width: 6px;
  height: 6px;
  background: #fff4dd;
  border-radius: 50%;
  box-shadow:
    0 0 12px 4px rgba(255, 230, 190, 0.9),
    -25px 10px 30px 7px rgba(159, 231, 226, 0.1),
    -70px 28px 45px 6px rgba(159, 231, 226, 0.06);
}

.project-visual--orbit .art-tail {
  position: absolute;
  top: 31%;
  left: 17%;
  width: 60%;
  height: 35%;
  border-top: 1px solid rgba(159, 231, 226, 0.25);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.project-visual--orbit .art-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(232, 242, 238, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(159, 231, 226, 0.5);
}

.project-visual--orbit .art-star:nth-child(4) { top: 22%; left: 23%; }
.project-visual--orbit .art-star:nth-child(5) { top: 67%; left: 41%; opacity: 0.5; }
.project-visual--orbit .art-star:nth-child(6) { top: 34%; left: 81%; opacity: 0.7; }

.project-visual--dusk {
  background:
    radial-gradient(circle at 68% 43%, rgba(255, 221, 171, 0.45), rgba(221, 141, 112, 0.12) 20%, transparent 46%),
    linear-gradient(180deg, #10192b 0%, #303146 38%, #a76d71 68%, #d2a181 78%, #131a22 79%, #080e14 100%);
}

.project-visual--dusk::before {
  content: "";
  position: absolute;
  top: 44%;
  left: 68%;
  width: 34px;
  height: 34px;
  background: rgba(255, 231, 188, 0.85);
  border-radius: 50%;
  box-shadow:
    0 0 35px 13px rgba(255, 193, 137, 0.22),
    0 0 90px 48px rgba(255, 172, 123, 0.12);
  transform: translate(-50%, -50%);
}

.project-visual--dusk .art-horizon {
  position: absolute;
  right: 0;
  bottom: 21%;
  left: 0;
  height: 1px;
  background: rgba(255, 223, 184, 0.28);
}

.project-visual--dusk .art-hill {
  position: absolute;
  right: -5%;
  bottom: 21%;
  left: -5%;
  height: 24%;
  background: #050a0e;
  clip-path: polygon(0 70%, 8% 54%, 19% 70%, 31% 34%, 42% 65%, 54% 45%, 69% 69%, 82% 38%, 100% 64%, 100% 100%, 0 100%);
}

.project-visual--dusk .art-plane {
  position: absolute;
  top: 27%;
  left: 31%;
  width: 13px;
  height: 1px;
  background: rgba(255, 244, 221, 0.6);
  transform: rotate(-16deg);
  box-shadow: 0 0 8px rgba(255, 237, 201, 0.35);
}

.project-visual--lake {
  background:
    radial-gradient(ellipse at 52% 72%, rgba(132, 207, 206, 0.15), transparent 34%),
    linear-gradient(180deg, #071018 0%, #10222b 42%, #172a30 48%, #0a171e 49%, #050c12 100%);
}

.project-visual--lake::before {
  content: "";
  position: absolute;
  top: 8%;
  right: 14%;
  left: 14%;
  height: 38%;
  background: radial-gradient(ellipse at 50% 100%, rgba(199, 234, 229, 0.05), transparent 65%);
  border-radius: 50%;
}

.project-visual--lake .art-moon {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 49px;
  height: 49px;
  background: rgba(224, 239, 232, 0.88);
  border-radius: 50%;
  box-shadow: 0 0 34px 12px rgba(196, 235, 232, 0.2);
  transform: translateX(-50%);
}

.project-visual--lake .art-waterline {
  position: absolute;
  top: 47%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(178, 223, 220, 0.2);
}

.project-visual--lake .art-reflection {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 42px;
  height: 27%;
  background: linear-gradient(180deg, rgba(230, 242, 232, 0.17), transparent);
  filter: blur(5px);
  transform: translateX(-50%);
}

.project-visual--lake .art-ridge {
  position: absolute;
  right: -4%;
  bottom: 0;
  left: -4%;
  height: 54%;
  background: #050c11;
  clip-path: polygon(0 41%, 11% 30%, 18% 63%, 28% 48%, 34% 69%, 46% 37%, 53% 56%, 64% 47%, 73% 71%, 84% 42%, 92% 71%, 100% 59%, 100% 100%, 0 100%);
  opacity: 0.9;
}

.empty-state {
  padding: 80px 20px;
  color: rgba(192, 207, 209, 0.36);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
}

.empty-state::before {
  content: "✳";
  display: block;
  margin-bottom: 15px;
  color: rgba(var(--accent-rgb), 0.4);
  font-size: 18px;
}

/* ---------- Knowledge ---------------------------------------------------- */
.knowledge-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 17px;
}

.knowledge-meta-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.knowledge-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 220px;
  flex: 0 0 auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}

.search-box:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
}

.search-box svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke: rgba(195, 212, 213, 0.36);
  stroke-width: 1.2;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 5px 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.search-box input::placeholder {
  color: rgba(188, 204, 206, 0.34);
}

.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-decoration {
  display: none;
}

.search-box__clear {
  display: none;
  padding: 2px;
  color: rgba(190, 208, 209, 0.36);
  background: transparent;
  border: 0;
  font-size: 12px;
  line-height: 1;
}

.search-box.has-value .search-box__clear {
  display: block;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.022), transparent 55%),
    rgba(9, 17, 23, 0.36);
  border: 1px solid rgba(214, 231, 231, 0.09);
  border-radius: 3px;
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
}

.note-card:hover {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.045), transparent 55%),
    rgba(9, 17, 23, 0.46);
  border-color: rgba(var(--accent-rgb), 0.21);
}

.note-card.is-hidden {
  display: none;
}

.note-card.is-open {
  border-color: rgba(var(--accent-rgb), 0.25);
}

.note-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: rgba(var(--accent-rgb), 0.55);
  transition: height 0.6s var(--ease);
}

.note-card.is-open::before {
  height: 100%;
}

.note-trigger {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  padding: 24px 24px 20px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(var(--accent-rgb), 0.64);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.note-meta__cat {
  display: flex;
  align-items: center;
  gap: 7px;
}

.note-meta__cat::before {
  content: "";
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}

.note-meta__date {
  color: rgba(181, 198, 200, 0.38);
}

.note-title {
  margin-top: 24px;
  color: rgba(241, 238, 230, 0.9);
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.025em;
  transition: color 0.3s;
}

.note-trigger:hover .note-title {
  color: var(--accent);
}

.note-en {
  margin-top: 7px;
  color: rgba(188, 204, 206, 0.36);
  font-family: var(--latin);
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.note-excerpt {
  margin-top: 15px;
  color: rgba(196, 210, 212, 0.58);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.025em;
}

.note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}

.note-read {
  color: rgba(181, 199, 201, 0.38);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
}

.note-plus {
  position: relative;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 50%;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.note-plus::before,
.note-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.5);
  transform: translate(-50%, -50%);
}

.note-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.note-card.is-open .note-plus {
  border-color: rgba(var(--accent-rgb), 0.38);
  transform: rotate(45deg);
}

.note-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}

.note-card.is-open .note-body {
  grid-template-rows: 1fr;
}

.note-body__clip {
  overflow: hidden;
}

.note-body__inner {
  padding: 0 24px 25px;
  border-top: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.45s 0.05s;
}

.note-card.is-open .note-body__inner {
  border-top-color: var(--line-soft);
  opacity: 1;
}

.note-body__inner p {
  margin-top: 15px;
  color: rgba(198, 211, 213, 0.7);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 2.1;
  letter-spacing: 0.02em;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.note-tag {
  color: rgba(var(--accent-rgb), 0.58);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.note-tag::before {
  content: "#";
  margin-right: 1px;
  opacity: 0.5;
}

.note-footnote {
  margin-top: 18px;
  padding-top: 12px;
  color: rgba(184, 201, 203, 0.4);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

/* ---------- About -------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(35px, 6vw, 90px);
  align-items: start;
}

.identity-card {
  position: relative;
  padding: 31px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), 0.075), transparent 50%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.024), transparent 50%),
    rgba(7, 14, 20, 0.45);
  border: 1px solid rgba(219, 233, 234, 0.1);
  border-radius: 3px;
}

.identity-card::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 13px;
  width: 22px;
  height: 22px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.24);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.24);
}

.identity-orbit {
  position: relative;
  display: grid;
  width: min(100%, 235px);
  aspect-ratio: 1;
  margin: 3px auto 29px;
  place-items: center;
}

.identity-orbit__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 50%;
}

.identity-orbit__ring::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(var(--accent-rgb), 0.13);
  border-radius: 50%;
  animation: shardSpin 60s linear infinite;
}

.identity-orbit__ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
}

.identity-orbit__cord {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(199, 72, 82, 0.3);
  border-radius: 48% 52% 55% 45% / 50% 40% 60% 50%;
  transform: rotate(27deg);
}

.identity-orbit__cord:nth-child(3) {
  inset: 20%;
  border-color: rgba(199, 72, 82, 0.16);
  transform: rotate(-32deg);
}

.identity-orbit__monogram {
  position: relative;
  z-index: 2;
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  color: var(--accent);
  background:
    radial-gradient(circle at 40% 30%, rgba(var(--accent-rgb), 0.1), transparent 60%),
    #081119;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 47px;
  line-height: 1;
  text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.17);
  box-shadow:
    0 0 0 9px rgba(var(--accent-rgb), 0.022),
    0 16px 42px rgba(0, 0, 0, 0.25);
}

.identity-orbit__star {
  position: absolute;
  top: 21%;
  left: 78%;
  width: 3px;
  height: 3px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(255, 247, 230, 0.5);
}

.identity-name {
  color: rgba(243, 239, 231, 0.93);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.29em;
  line-height: 1.4;
}

.identity-role {
  margin-top: 7px;
  color: rgba(var(--accent-rgb), 0.7);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.identity-location {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  color: rgba(183, 201, 203, 0.34);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.09em;
}

.identity-location::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(var(--accent-rgb), 0.4);
}

.identity-status {
  margin-top: 21px;
  padding-top: 16px;
  color: rgba(192, 207, 209, 0.43);
  border-top: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.about-narrative {
  padding-top: 3px;
}

.about-narrative h3 {
  margin-bottom: 23px;
  color: rgba(240, 237, 229, 0.9);
  font-family: var(--serif);
  font-size: clamp(23px, 2.5vw, 33px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.about-narrative h3::first-letter {
  color: var(--accent);
}

.about-narrative p {
  max-width: 650px;
  margin-bottom: 16px;
  color: rgba(196, 209, 211, 0.65);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.025em;
}

.about-quote {
  position: relative;
  margin-top: 31px;
  padding: 3px 0 3px 22px;
  border-left: 1px solid rgba(199, 72, 82, 0.42);
}

.about-quote p {
  margin: 0;
  color: rgba(236, 220, 202, 0.83);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.about-quote span {
  display: block;
  margin-top: 6px;
  color: rgba(183, 199, 201, 0.36);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.about-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(45px, 6vw, 68px);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.parameter {
  min-height: 96px;
  padding: 21px 23px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.parameter dt {
  color: rgba(var(--accent-rgb), 0.5);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.09em;
}

.parameter dd {
  margin-top: 11px;
  color: rgba(214, 223, 224, 0.74);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.about-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: clamp(38px, 6vw, 88px);
  margin-top: clamp(48px, 6vw, 74px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: rgba(var(--accent-rgb), 0.58);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.section-label::after {
  content: "";
  width: 35px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.17);
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 25px 16px;
  border-left: 1px solid var(--line-soft);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -3px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.34);
}

.timeline-item:last-child::before {
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: none;
}

.timeline-time {
  color: rgba(var(--accent-rgb), 0.52);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.timeline-content strong {
  display: block;
  color: rgba(226, 234, 234, 0.8);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.timeline-content p {
  margin-top: 5px;
  color: rgba(185, 201, 203, 0.5);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.9;
}

.contact-list {
  border-top: 1px solid var(--line-soft);
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link__label {
  color: rgba(185, 201, 203, 0.42);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.contact-link__value {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(214, 225, 226, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.contact-link__value svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.5;
  transition: transform 0.35s var(--ease);
}

.contact-link:hover .contact-link__value svg {
  transform: translate(2px, -2px);
}

.colophon {
  margin-top: 35px;
}

.colophon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(215, 230, 231, 0.06);
}

.colophon-row span:first-child {
  color: rgba(185, 201, 203, 0.38);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.colophon-row span:last-child {
  color: rgba(195, 209, 210, 0.55);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-align: right;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 15px;
  color: rgba(190, 204, 206, 0.45);
  background: rgba(var(--accent-rgb), 0.025);
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.025em;
}

.privacy-note::before {
  content: "結";
  flex: 0 0 auto;
  color: rgba(var(--accent-rgb), 0.48);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1280px) {
  .header-status {
    display: none;
  }

  .hero__copy {
    width: min(45vw, 520px);
  }

  .shard__text {
    width: 178px;
  }

  .project-trigger {
    grid-template-columns: 40px minmax(0, 1fr) 72px 28px;
    gap: 18px;
  }

  .project-trigger__status {
    display: none;
  }

  .shard__text {
    width: 190px;
  }
}

@media (max-width: 1120px) {
  body.is-split .shard--projects .shard__desc,
  body.is-split .shard--about .shard__desc {
    display: none;
  }
}

@media (max-width: 1040px) {
  .site-header {
    --header-h: 80px;
  }

  .hero__copy {
    left: clamp(24px, 5.5vw, 58px);
    width: min(45vw, 440px);
  }

  .hero__description {
    font-size: 12px;
  }

  .hero__film-title {
    font-size: clamp(52px, 6.6vw, 72px);
  }

  .vertical-note {
    display: none;
  }

  .shard__text {
    width: 154px;
  }

  .interface-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .interface-aside {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .interface-stats {
    min-width: 280px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .interface-note {
    margin-top: 0;
  }

  .project-detail {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding-left: 58px;
  }

  .about-grid {
    grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
    gap: 45px;
  }

  .identity-card {
    padding: 24px;
  }
}

@media (max-width: 880px) {
  body {
    overflow: hidden;
  }

  .world {
    min-height: 100svh;
  }

  .site-header {
    height: 74px;
    padding: 0 20px;
  }

  .brand__sub {
    display: none;
  }

  .header-tools {
    gap: 7px;
  }

  .sound-toggle {
    padding: 7px 8px;
  }

  .sound-toggle__label,
  .twilight-toggle__label {
    display: inline;
    font-size: 7px;
    letter-spacing: 0.06em;
  }

  .twilight-toggle {
    padding: 7px 8px;
  }

  .clock {
    padding-left: 10px;
  }

  .hero__copy {
    top: auto;
    right: 22px;
    bottom: 66px;
    left: 22px;
    width: auto;
    transform: none;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: 6px;
  }

  .hero__film-title {
    font-size: clamp(48px, 9vw, 78px);
    line-height: 1.02;
  }

  .hero__brandline {
    margin-top: 13px;
  }

  .hero__brand {
    font-size: 9px;
  }

  .seal {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }

  .hero__signature-meta {
    margin-top: 10px;
    font-size: 6px;
  }

  .hero__thread {
    height: 22px;
    margin-top: 11px;
  }

  .hero__jp {
    margin-top: 13px;
    font-size: 11px;
  }

  .hero__description {
    margin-top: 9px;
    font-size: 11px;
    line-height: 1.85;
  }

  .hero__hint {
    margin-top: 16px;
  }

  .hero__hint p {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 3px;
    font-size: 7px;
  }

  .hint-line {
    height: 24px;
  }

  .overlook {
    display: none;
  }

  .hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 7;
    height: 47%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 11, 0.42) 48%, rgba(2, 6, 11, 0.7));
    pointer-events: none;
  }

  .hero__copy {
    z-index: 11;
  }

  .site-footer {
    height: 52px;
    padding: 0 22px;
    font-size: 6px;
  }

  .site-footer__center,
  .site-footer__right {
    display: none;
  }

  .horizon {
    height: clamp(300px, 46vh, 430px);
  }

  .orbit-decor__ring {
    width: calc(var(--orbit-rx, 170px) * 2 + 50px);
    height: calc(var(--orbit-ry, 105px) * 2 + 50px);
  }

  .orbit-decor__ring--two {
    width: calc(var(--orbit-rx, 170px) * 2 + 110px);
    height: calc(var(--orbit-ry, 105px) * 2 + 110px);
  }

  .orbit-decor__mark {
    display: none;
  }

  .nucleus {
    width: 178px;
    height: 178px;
  }

  .nucleus__cross {
    width: 220px;
    height: 220px;
  }

  body.is-split .nucleus__cross {
    width: 136px;
    height: 136px;
  }

  .nucleus__orbit {
    width: 174px;
    height: 60px;
  }

  .nucleus__orbit--two {
    width: 136px;
    height: 182px;
  }

  body.is-split .nucleus__orbit {
    width: 56px;
    height: 28px;
  }

  body.is-split .nucleus__orbit--two {
    width: 38px;
    height: 57px;
  }

  .nucleus__caption {
    top: calc(50% + 38px);
    padding: 6px 10px;
  }

  .nucleus__caption-cn {
    font-size: 9px;
  }

  .nucleus__caption-en {
    font-size: 5.5px;
  }

  body.is-split .nucleus__caption {
    top: 50%;
    left: calc(50% - 27px);
    padding: 5px 8px;
  }

  .shard {
    width: 48px;
    height: 48px;
  }

  .shard__marker {
    width: 48px;
    height: 48px;
  }

  .shard__text,
  .shard--knowledge .shard__text {
    top: calc(100% + 3px);
    right: auto;
    left: 50%;
    align-items: center;
    width: max-content;
    max-width: 130px;
    padding: 3px 4px;
    text-align: center;
    transform: translateX(-50%);
    background: none;
    border-color: transparent;
    backdrop-filter: none;
  }

  body.is-split .shard--knowledge {
    width: 124px;
    height: 124px;
  }

  body.is-split .shard .shard__text {
    top: calc(50% + 28px);
    right: auto;
    left: 50%;
    width: max-content;
    max-width: 130px;
    padding: 3px 4px;
    align-items: center;
    text-align: center;
    transform: translateX(-50%);
  }

  body.is-split .shard--knowledge .shard__text {
    background: rgba(4, 10, 17, 0.2);
  }

  .shard__top {
    justify-content: center;
    gap: 5px;
  }

  .shard__index {
    font-size: 6px;
  }

  .shard__cn {
    font-size: 14px;
    text-shadow: 0 1px 12px rgba(2, 6, 11, 0.95), 0 0 22px rgba(2, 6, 11, 0.7);
  }

  .shard__plus {
    display: none;
  }

  .shard__en {
    margin-top: 2px;
    font-size: 5.5px;
    letter-spacing: 0.08em;
  }

  .shard__desc {
    display: none;
  }

  .shard__count {
    display: none;
  }

  .shard:hover .shard__text,
  .shard:focus-visible .shard__text {
    background: none;
    border-color: transparent;
    backdrop-filter: none;
  }

  .twilight-whisper {
    right: 22px;
    bottom: 28%;
    font-size: 10px;
  }

  .interface-layer {
    background: rgba(2, 5, 9, 0.92);
  }

  .memory-panel {
    inset: 0;
    border: 0;
    border-radius: 0;
  }

  .panel-chrome {
    grid-template-columns: 1fr auto;
    height: 65px;
    padding: 0 18px;
  }

  .panel-nav {
    display: none;
  }

  .panel-brand__text {
    font-size: 6px;
  }

  .panel-close {
    padding-left: 8px;
    font-size: 0;
  }

  .panel-close kbd {
    display: none;
  }

  .panel-close__icon {
    width: 32px;
    height: 32px;
  }

  .panel-scroll {
    padding: 94px 22px 70px;
  }

  .interface-kicker {
    margin-bottom: 18px;
    font-size: 7px;
  }

  .interface-title {
    font-size: clamp(40px, 9vw, 58px);
    line-height: 1.16;
  }

  .interface-lead {
    margin-top: 20px;
    font-size: 11px;
    line-height: 2;
  }

  .interface-aside {
    display: block;
  }

  .interface-stats {
    min-width: 0;
    margin-top: 21px;
    padding-top: 17px;
    border-top: 1px solid var(--line-soft);
  }

  .interface-note {
    margin-top: 14px;
  }

  .interface-hero {
    padding-bottom: 35px;
  }

  .interface-body {
    padding-top: 32px;
  }

  .interface-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 21px;
  }

  .filter-chip {
    padding: 5px 10px;
    font-size: 8px;
  }

  .project-trigger {
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    gap: 12px;
    padding: 19px 0;
  }

  .project-trigger__year,
  .project-trigger__status {
    display: none;
  }

  .project-trigger__title strong {
    font-size: 18px;
  }

  .project-trigger__title small {
    font-size: 6px;
  }

  .project-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 0 32px 44px;
  }

  .project-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .project-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .project-visual {
    min-height: 195px;
    order: -1;
  }

  .project-detail__visual {
    order: -1;
  }

  .knowledge-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .search-box {
    width: 100%;
  }

  .note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-card {
    min-height: 0;
  }

  .note-trigger {
    padding: 20px;
  }

  .note-title {
    margin-top: 17px;
    font-size: 19px;
  }

  .note-body__inner {
    padding: 0 20px 22px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .identity-card {
    max-width: 100%;
  }

  .identity-orbit {
    width: 190px;
    margin-bottom: 23px;
  }

  .identity-orbit__monogram {
    width: 82px;
    height: 82px;
    font-size: 39px;
  }

  .about-params {
    margin-top: 34px;
  }

  .about-lower {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    margin-top: 38px;
  }

  .about-narrative p {
    font-size: 11px;
  }

  .interface-footer {
    margin-top: 55px;
    padding-top: 20px;
  }

  .interface-footer__mark {
    font-size: 6px;
  }

  .next-interface__label strong {
    font-size: 16px;
  }

  .memory-panel {
    --origin-x: 50% !important;
    --origin-y: 45% !important;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 16px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 10px;
  }

  .brand {
    gap: 9px;
  }

  .clock {
    display: none;
  }

  .hero__copy {
    bottom: 58px;
    right: 18px;
    left: 18px;
  }

  .hero__film-title {
    font-size: clamp(43px, 11.5vw, 60px);
    letter-spacing: 0.02em;
  }

  .hero__brandline {
    gap: 9px;
    margin-top: 11px;
  }

  .hero__brand {
    font-size: 8px;
    letter-spacing: 0.32em;
  }

  .seal {
    width: 21px;
    height: 21px;
    font-size: 9px;
  }

  .hero__signature-meta {
    gap: 7px;
    font-size: 6px;
    letter-spacing: 0.05em;
  }

  .hero__signature-jp {
    font-size: 8px;
  }

  .hero__thread {
    width: min(100%, 265px);
    height: 18px;
    margin-top: 9px;
  }

  .hero__jp {
    margin-top: 11px;
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .hero__description {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.75;
  }

  .hero__hint {
    margin-top: 13px;
  }

  .hint-line {
    height: 19px;
  }

  .hint-rejoin {
    gap: 5px;
    margin-top: 3px;
    font-size: 6.5px;
  }

  .hint-rejoin__knot {
    width: 12px;
    height: 12px;
    font-size: 7px;
  }

  .eyebrow {
    gap: 8px;
    font-size: 7px;
    letter-spacing: 0.15em;
  }

  .eyebrow i {
    width: 16px;
  }

  .site-footer {
    height: 42px;
    padding: 0 18px;
  }

  .site-footer__left {
    gap: 7px;
  }

  .footer-mark {
    width: 16px;
    height: 16px;
    font-size: 7px;
  }

  .footer-divider {
    display: none;
  }

  .shard__en {
    display: none;
  }

  .shard__text {
    top: calc(100% + 1px);
  }

  .shard__cn {
    font-size: 15px;
  }

  .twilight-whisper {
    top: calc(var(--core-y, 29%) + 138px);
    right: auto;
    bottom: auto;
    left: 22px;
    width: auto;
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 0.08em;
    text-align: left;
  }

  .panel-chrome {
    height: 58px;
    padding: 0 15px;
  }

  .panel-brand .brand__mark {
    width: 28px;
    height: 28px;
  }

  .panel-brand__text {
    display: block;
    overflow: hidden;
    max-width: 126px;
    font-size: 6.5px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .panel-brand__text i {
    margin: 0 3px;
  }

  .panel-scroll {
    padding: 82px 17px 55px;
  }

  .interface-title {
    font-size: clamp(35px, 10.5vw, 46px);
  }

  .interface-kicker {
    font-size: 8px;
    letter-spacing: 0.09em;
  }

  .interface-lead {
    font-size: 12px;
  }

  .interface-stats strong {
    font-size: 22px;
  }

  .interface-stats span {
    font-size: 8px;
  }

  .project-detail {
    padding-left: 0;
  }

  .project-trigger {
    grid-template-columns: 26px minmax(0, 1fr) 18px;
    gap: 8px;
  }

  .project-trigger__title strong {
    font-size: 16px;
  }

  .project-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .project-meta__item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px dashed rgba(215, 230, 231, 0.06);
  }

  .project-meta dt {
    margin: 0;
  }

  .project-meta dd {
    text-align: right;
  }

  .project-visual {
    min-height: 175px;
  }

  .note-trigger {
    padding: 17px;
  }

  .note-body__inner {
    padding: 0 17px 20px;
  }

  .note-title {
    font-size: 17px;
  }

  .note-excerpt {
    font-size: 11px;
  }

  .about-narrative h3 {
    font-size: 23px;
  }

  .about-quote p {
    font-size: 14px;
  }

  .about-params {
    grid-template-columns: minmax(0, 1fr);
  }

  .parameter {
    min-height: 0;
    padding: 15px 17px;
  }

  .timeline-item {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 12px;
  }

  .interface-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .next-interface {
    align-self: flex-end;
  }

  .contact-link {
    padding: 13px 0;
  }

  .contact-link__value {
    font-size: 10px;
  }
}

@media (max-height: 720px) and (min-width: 881px) {
  .hero__copy {
    top: 50%;
  }

  .hero__film-title {
    font-size: clamp(48px, 5.8vw, 75px);
  }

  .hero__jp {
    margin-top: 14px;
  }

  .hero__description {
    margin-top: 8px;
  }

  .hero__hint {
    margin-top: 18px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .site-footer {
    --footer-h: 48px;
  }
}

@media (max-height: 620px) and (max-width: 880px) {
  .hero__description,
  .eyebrow,
  .hero__hint {
    display: none;
  }

  .hero__jp {
    margin-top: 8px;
  }

  .hero__copy {
    bottom: 58px;
  }

  .hero__film-title {
    font-size: 41px;
  }

  .hero__thread {
    height: 18px;
  }
}

/* ---------- Motion / accessibility -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .intro {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .grain {
    animation: none;
  }

  .twilight-whisper {
    filter: none;
  }

  .shard,
  body.is-split .shard,
  body.is-split .shard--knowledge,
  body.is-split .shard--about {
    transition-delay: 0s !important;
  }
}

@media print {
  body {
    overflow: visible;
    color: #111;
    background: #fff;
  }

  .intro,
  .sky,
  .horizon,
  .grain,
  .comet-zone,
  .site-header,
  .site-footer,
  .interface-layer {
    display: none !important;
  }

  .world,
  .home,
  .hero,
  .hero__copy {
    position: static;
    height: auto;
    min-height: 0;
    color: #111;
    transform: none;
  }

  .hero__film-title {
    color: #111;
    text-shadow: none;
  }

  .overlook,
  .fireflies {
    display: none !important;
  }
}


/* ---------- Competition module inside Projects -------------------------- */
.project-side-log {
  margin-top: clamp(46px, 6vw, 78px);
}

.competition-module {
  position: relative;
  scroll-margin-top: 98px;
  padding: clamp(20px, 2.8vw, 30px);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--accent-rgb), 0.055), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 58%),
    rgba(9, 17, 23, 0.28);
  border: 1px solid rgba(216, 231, 232, 0.085);
  border-radius: 3px;
}

.competition-module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.competition-module__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.competition-module__title p {
  color: rgba(var(--accent-rgb), 0.5);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.competition-module__title h3 {
  margin-top: 7px;
  color: rgba(240, 237, 228, 0.9);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.045em;
}

.competition-module__title h3 span {
  margin-left: 8px;
  color: rgba(190, 205, 206, 0.3);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.competition-module__meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.competition-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(185, 207, 201, 0.45);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.competition-source i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.competition-source[data-state="ready"] {
  color: #93ccb4;
}

.competition-source[data-state="loading"] {
  color: var(--accent);
}

.competition-source[data-state="loading"] i {
  animation: competitionPulse 1.3s ease-in-out infinite;
}

.competition-source[data-state="error"] {
  color: #cf8d8d;
}

.competition-expand,
.competition-mini-action,
.competition-more,
.competition-action {
  color: rgba(var(--accent-rgb), 0.72);
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.competition-expand {
  padding: 5px 10px;
}

.competition-mini-action {
  display: grid;
  width: 23px;
  height: 23px;
  padding: 0;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.competition-expand:hover,
.competition-expand:focus-visible,
.competition-mini-action:hover,
.competition-mini-action:focus-visible,
.competition-more:hover,
.competition-more:focus-visible,
.competition-action:hover,
.competition-action:focus-visible {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.competition-mini-action:disabled {
  cursor: wait;
  opacity: 0.35;
}

.competition-module__lead {
  max-width: 560px;
  margin-top: 12px;
  color: rgba(191, 206, 207, 0.48);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.9;
}

.competition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.competition-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: rgba(198, 212, 213, 0.46);
  background: transparent;
  border: 1px solid rgba(215, 231, 231, 0.1);
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.competition-pill i,
.competition-status::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 7px currentColor;
}

.competition-pill span {
  opacity: 0.55;
}

.competition-pill:hover,
.competition-pill:focus-visible,
.competition-pill[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.04);
}

.competition-pill[data-status="评估中"],
.competition-status[data-status="评估中"] {
  color: #eec18d;
}

.competition-pill[data-status="未报名"],
.competition-status[data-status="未报名"] {
  color: #a8c1c6;
}

.competition-pill[data-status="已报名"],
.competition-status[data-status="已报名"] {
  color: #9fd8be;
}

.competition-pill[data-status="已结束"],
.competition-status[data-status="已结束"] {
  color: #bd9696;
}

.competition-module__list-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 4px;
  color: rgba(188, 204, 205, 0.3);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.11em;
}

.competition-module__list {
  border-top: 1px solid var(--line-soft);
}

.competition-card {
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease);
}

.competition-card.is-hidden {
  display: none;
}

.competition-card.is-open {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.025), transparent 72%);
}

.competition-trigger {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 76px 155px 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 2px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.competition-no {
  color: rgba(var(--accent-rgb), 0.38);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.competition-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.competition-name {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(238, 235, 226, 0.86);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.3s, transform 0.4s var(--ease);
}

.competition-trigger:hover .competition-name {
  color: var(--accent);
  transform: translateX(3px);
}

.competition-sub {
  overflow: hidden;
  color: rgba(183, 199, 201, 0.38);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(200, 214, 215, 0.55);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.competition-window {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: rgba(188, 204, 205, 0.4);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
}

.competition-window span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-window span:first-child {
  color: rgba(var(--accent-rgb), 0.62);
}

.competition-window .is-muted {
  color: rgba(188, 204, 205, 0.3);
}

.competition-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
}

.competition-toggle::before,
.competition-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  background: rgba(205, 220, 221, 0.4);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.competition-toggle::before {
  transform: translate(-50%, -50%);
}

.competition-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.competition-card.is-open .competition-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.competition-card.is-open .competition-toggle::before {
  background: var(--accent);
}

.competition-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.competition-card.is-open .competition-panel {
  grid-template-rows: 1fr;
}

.competition-panel__clip {
  overflow: hidden;
}

.competition-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  gap: clamp(20px, 4vw, 40px);
  padding: 2px 0 24px 44px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.45s 0.06s var(--ease), transform 0.45s 0.06s var(--ease);
}

.competition-card.is-open .competition-detail {
  opacity: 1;
  transform: translateY(0);
}

.competition-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 11px 18px;
}

.competition-fact {
  padding-top: 6px;
  border-top: 1px solid rgba(218, 232, 232, 0.07);
}

.competition-fact span {
  display: block;
  margin-bottom: 4px;
  color: rgba(187, 204, 205, 0.32);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.09em;
}

.competition-fact strong {
  display: block;
  color: rgba(209, 219, 217, 0.7);
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.competition-log {
  padding-left: 15px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.16);
}

.competition-log__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(var(--accent-rgb), 0.42);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.competition-log__head em {
  color: rgba(190, 206, 207, 0.28);
  font-style: normal;
}

.competition-timeline {
  display: grid;
  gap: 9px;
  margin-top: 11px;
  padding: 0;
  list-style: none;
}

.competition-timeline li {
  position: relative;
  padding-left: 12px;
}

.competition-timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 4px;
  height: 4px;
  background: rgba(198, 214, 214, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 7px currentColor;
}

.competition-timeline li[data-status="评估中"]::before { background: #eec18d; color: #eec18d; }
.competition-timeline li[data-status="未报名"]::before { background: #a8c1c6; color: #a8c1c6; }
.competition-timeline li[data-status="已报名"]::before { background: #9fd8be; color: #9fd8be; }
.competition-timeline li[data-status="已结束"]::before { background: #bd9696; color: #bd9696; }

.competition-timeline time {
  display: block;
  color: rgba(185, 201, 202, 0.28);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.03em;
}

.competition-log__body p {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
  color: rgba(199, 213, 214, 0.55);
  font-family: var(--sans);
  font-size: 8.5px;
  line-height: 1.5;
}

.competition-log__body p span {
  color: rgba(187, 203, 204, 0.35);
}

.competition-log__body p i {
  color: rgba(187, 203, 204, 0.24);
  font-style: normal;
}

.competition-log__body p strong {
  color: rgba(225, 224, 214, 0.7);
  font-weight: 400;
}

.competition-timeline li[data-status="评估中"] .competition-log__body p strong { color: #eec18d; }
.competition-timeline li[data-status="已报名"] .competition-log__body p strong { color: #9fd8be; }
.competition-timeline li[data-status="已结束"] .competition-log__body p strong { color: #bd9696; }

.competition-log__body small {
  display: block;
  margin-top: 3px;
  color: rgba(188, 204, 205, 0.42);
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1.7;
}

.competition-log__empty {
  margin-top: 12px;
  color: rgba(188, 204, 205, 0.28);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.competition-note {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 10px;
  color: rgba(187, 204, 205, 0.52);
  border-top: 1px solid rgba(218, 232, 232, 0.07);
  font-family: var(--serif);
  font-size: 9.5px;
  line-height: 1.75;
}

.competition-note span {
  color: rgba(var(--accent-rgb), 0.48);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.competition-module__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: rgba(188, 204, 205, 0.3);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.competition-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 7px;
}

.competition-module__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 13px 0 8px;
}

.competition-module__tools {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.competition-search {
  width: 190px;
}

.competition-module__empty {
  padding: 28px 12px;
  color: rgba(190, 206, 207, 0.38);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: center;
}

.competition-module__empty--filter {
  border-top: 1px solid var(--line-soft);
}

.competition-module__empty p {
  margin-bottom: 12px;
}

.competition-action {
  padding: 6px 11px;
}

.competition-module__loading {
  padding-top: 2px;
}

.competition-module__loading p {
  margin: 10px 0 4px;
  color: rgba(188, 204, 205, 0.35);
  font-family: var(--serif);
  font-size: 10px;
}

.competition-module__loading p span {
  margin-left: 7px;
  color: rgba(var(--accent-rgb), 0.4);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.competition-skeleton-list {
  border-top: 1px solid var(--line-soft);
}

.competition-skeleton {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.competition-skeleton span {
  display: block;
  width: 72%;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(210, 226, 226, 0.035), rgba(210, 226, 226, 0.09), rgba(210, 226, 226, 0.035));
  background-size: 220% 100%;
  animation: competitionShimmer 1.9s linear infinite;
}

.competition-skeleton span:last-child {
  width: 46%;
  height: 6px;
  margin-top: 6px;
  opacity: 0.65;
}

.competition-module__error {
  margin-top: 16px;
  padding: 15px 16px;
  background: rgba(70, 33, 34, 0.1);
  border: 1px solid rgba(188, 111, 111, 0.17);
}

.competition-module__error p {
  color: rgba(219, 197, 192, 0.55);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.8;
}

.competition-module__error p strong {
  color: rgba(236, 211, 200, 0.82);
  font-weight: 400;
}

.competition-module__error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.competition-module__error-actions small {
  color: rgba(188, 204, 205, 0.28);
  font-family: var(--mono);
  font-size: 6px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.competition-module__endpoint {
  margin-top: 10px;
  color: rgba(188, 204, 205, 0.24);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.04em;
}

.competition-module__endpoint code {
  color: rgba(var(--accent-rgb), 0.38);
  font-family: inherit;
}

@keyframes competitionPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes competitionShimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@media (max-width: 1120px) {
  .competition-trigger {
    grid-template-columns: 28px minmax(0, 1fr) 76px 20px;
    grid-template-areas:
      "no main status toggle"
      "no window window toggle";
    row-gap: 4px;
  }

  .competition-no { grid-area: no; }
  .competition-main { grid-area: main; }
  .competition-status { grid-area: status; }
  .competition-window { grid-area: window; flex-direction: row; flex-wrap: wrap; gap: 3px 10px; }
  .competition-toggle { grid-area: toggle; }

  .competition-detail {
    grid-template-columns: 1fr;
    padding-left: 32px;
  }

  .competition-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .competition-module {
    scroll-margin-top: 82px;
    padding: 17px 15px;
  }

  .competition-module__head {
    flex-direction: column;
    gap: 11px;
  }

  .competition-module__meta {
    justify-content: flex-start;
  }

  .competition-module__title h3 span {
    display: inline-block;
    margin-top: 4px;
    margin-left: 0;
  }

  .competition-pills {
    margin-top: 14px;
  }

  .competition-trigger {
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    grid-template-areas:
      "no main toggle"
      "no status toggle"
      "no window toggle";
    gap: 3px 10px;
    padding: 12px 0;
  }

  .competition-status {
    align-self: start;
  }

  .competition-window {
    flex-direction: column;
    gap: 2px;
  }

  .competition-module__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .competition-module__tools {
    align-items: flex-end;
    justify-content: space-between;
  }

  .competition-search {
    width: min(100%, 220px);
    flex: 1 1 170px;
  }

  .competition-detail {
    gap: 20px;
    padding: 4px 0 20px 20px;
  }

  .competition-facts {
    gap: 10px 14px;
  }

  .competition-log {
    padding-left: 13px;
  }
}

@media (max-width: 480px) {
  .competition-module__title h3 {
    font-size: 18px;
  }

  .competition-pill {
    padding: 4px 7px;
    font-size: 7.5px;
  }

  .competition-trigger {
    grid-template-columns: 18px minmax(0, 1fr) 16px;
  }

  .competition-name {
    font-size: 13px;
  }

  .competition-facts {
    grid-template-columns: 1fr;
  }

  .competition-module__foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .competition-source[data-state="loading"] i,
  .competition-skeleton span {
    animation: none;
  }

  .competition-panel,
  .competition-detail,
  .competition-toggle::before,
  .competition-toggle::after {
    transition-duration: 0.01ms;
  }
}


.project-toolbar__side {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.project-side-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: rgba(var(--accent-rgb), 0.5);
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.3s;
}

.project-side-link::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 7px currentColor;
}

.project-side-link:hover,
.project-side-link:focus-visible {
  color: var(--accent);
}

@media (max-width: 760px) {
  .project-toolbar__side {
    width: 100%;
    justify-content: space-between;
  }
}

