* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #e5e7eb;
  background: #0c0f14;
}

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

body.home {
  background: #05070c;
  color: #e6ebf5;
}

.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-bottom: 120px;
}

.landing-page::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(35% 35% at 20% 20%, rgba(86, 144, 255, 0.5), transparent 60%),
    radial-gradient(40% 40% at 80% 10%, rgba(150, 90, 255, 0.4), transparent 65%),
    radial-gradient(45% 45% at 70% 80%, rgba(0, 255, 200, 0.25), transparent 60%),
    linear-gradient(120deg, rgba(5, 8, 16, 0.9), rgba(10, 12, 20, 0.9));
  filter: blur(0px);
  animation: cosmic 18s ease-in-out infinite;
  z-index: 0;
}

.landing-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 120px 24px 48px;
}

.hero-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(190, 255, 223, 0.7);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  margin: 0 0 18px;
  line-height: 1.05;
  font-weight: 700;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.studio-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.studio-logo svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #d7e3ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.9);
  margin: 0 0 10px;
}

.hero-subtitle-en {
  font-size: 16px;
  letter-spacing: 0.02em;
  color: rgba(190, 216, 255, 0.75);
  margin: 0 0 22px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.7);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #22d3ee, #2dd4bf);
  color: #041114;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}

.btn-outline {
  border: 1px solid rgba(226, 232, 240, 0.4);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  display: block;
  margin-left: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.45));
  background: #05070c;
  border-radius: 20px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0) 85%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.projects,
.lab,
.about {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  margin: 0 0 28px;
}

.section-head p {
  margin: 0 0 32px;
  max-width: 640px;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.7;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 12px;
}

.project-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: rgba(10, 14, 24, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 234, 212, 0.6);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}

.project-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card--myth .project-cover {
  background-image: url("/images/hero/showcase-poster.svg");
  background-size: cover;
}

.project-card--history .project-cover {
  background: url("/images/hero/history-poster.svg");
  background-size: 115%;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card--lab .project-cover {
  background: url("/images/hero/lab-poster.svg");
  background-size: 115%;
  background-position: center;
  background-repeat: no-repeat;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
}

.project-body h3 {
  margin: 0;
  font-size: 20px;
}

.project-body p {
  margin: 0 0 8px;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.7;
  font-size: 14px;
}

.lab-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lab-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(9, 13, 22, 0.8);
  color: #e5e7eb;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.lab-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lab-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 12px;
}

.lab-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.lab-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.65);
  line-height: 1.6;
  font-size: 14px;
}

.about-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.about-content p {
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.8;
  margin: 0 0 24px;
}

.about-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.about-panel {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-panel-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(148, 163, 184, 0.75);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(9, 13, 22, 0.8);
  font-size: 13px;
  color: rgba(226, 232, 240, 0.85);
}

.about-links {
  display: grid;
  gap: 10px;
}

.about-links a {
  color: rgba(226, 232, 240, 0.8);
  font-size: 14px;
}

.about-links a:hover {
  color: #38bdf8;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    margin: 0 auto;
  }

  .project-grid,
  .lab-grid,
  .about-inner,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.module-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
  color: #e5e7eb;
  text-decoration: none;
  background: rgba(12, 16, 28, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.module-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.module-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.module-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.7;
  font-size: 14px;
}

.module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.showcase-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  background: rgba(5, 7, 12, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.showcase-visual img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.showcase-quote {
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.showcase-desc {
  margin: 0 0 26px;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  color: rgba(226, 232, 240, 0.7);
  font-size: 14px;
}

.cta {
  padding-bottom: 120px;
}

.cta-inner {
  border-radius: 28px;
  padding: 40px;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 12px;
}

.cta-inner p {
  margin: 0 auto 26px;
  max-width: 720px;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.7;
}

.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-form input {
  min-width: min(320px, 100%);
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(5, 8, 16, 0.8);
  color: #e2e8f0;
  font-size: 14px;
}

.cta-form button {
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #22d3ee, #2dd4bf);
  color: #041114;
  font-weight: 600;
  cursor: pointer;
}

.topbar {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.topbar-link {
  font-size: 14px;
  color: #9ca3af;
}

.page .topbar-link {
  color: #9ca3af;
}

.reading {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.reading-article {
  background: transparent;
}

.reading-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 12px 0 8px;
}

.reading-meta {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 32px;
}

.reading-content {
  font-size: 18px;
  line-height: 1.9;
  color: #e5e7eb;
}

.reading-content h1:first-of-type {
  display: none;
}

.reading-content h2,
.reading-content h3 {
  margin-top: 36px;
}

.reading-content blockquote {
  margin: 24px 0;
  padding: 12px 18px;
  border-left: 3px solid #e5e7eb;
  background: #121620;
}

.reading-content img {
  max-width: 100%;
  border-radius: 12px;
}

.next-chapter {
  margin-top: 48px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(8, 12, 20, 0.6);
}

.next-link {
  display: inline-flex;
  font-size: 18px;
  font-weight: 600;
  color: #e5e7eb;
}

.next-link:hover {
  color: #22d3ee;
}

.next-placeholder {
  font-size: 16px;
  color: rgba(148, 163, 184, 0.85);
}

.list {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}

.list-header {
  margin: 32px 0 24px;
}

.list-title {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 12px;
}

.list-desc {
  color: #9ca3af;
}

.list-body {
  margin-bottom: 20px;
  color: #9ca3af;
}

.list-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.list-chapters {
  counter-reset: chapter;
}

.list-chapters .list-item {
  position: relative;
  padding-left: 38px;
}

.list-chapters .list-item::before {
  counter-increment: chapter;
  content: counter(chapter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.55);
  letter-spacing: 0.15em;
}

.catalog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #1f2937;
  background: #0c0f14;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  color: #e5e7eb;
  text-decoration: none;
}

.catalog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.catalog-card--static {
  cursor: default;
}

.catalog-card--placeholder {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(10, 14, 24, 0.55);
}

.catalog-card--placeholder .catalog-cover {
  background: linear-gradient(120deg, rgba(24, 33, 58, 0.9), rgba(10, 18, 32, 0.9));
}

.catalog-cover {
  height: 180px;
  background: linear-gradient(120deg, rgba(18, 24, 48, 0.95), rgba(68, 45, 96, 0.9));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.catalog-card--ouroboros .catalog-cover {
  background-color: #0b111f;
  background-image: none !important;
  height: auto;
  aspect-ratio: 1624 / 923;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 88%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 88%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.catalog-card--ouroboros .catalog-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/novels/ouroboros-eye.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05);
}

.catalog-card--ouroboros .catalog-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(9, 16, 30, 0) 55%, rgba(9, 16, 30, 0.85) 100%);
  pointer-events: none;
}

.catalog-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.catalog-title {
  font-size: 18px;
  font-weight: 600;
}

.catalog-desc {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

.catalog-meta {
  display: flex;
  gap: 12px;
  color: #9ca3af;
  font-size: 13px;
}

.catalog-links {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.catalog-links a {
  color: #e5e7eb;
}

.list-item {
  padding: 14px 0;
  border-bottom: 1px solid #1f2937;
}

.list-link {
  font-size: 18px;
  font-weight: 600;
  color: #e5e7eb;
}

.list-summary {
  margin-top: 8px;
  color: #9ca3af;
  font-size: 14px;
}

.list-group-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.novel-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}

.novel-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #1f2937;
  background: #0c0f14;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.novel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.novel-cover {
  height: 180px;
  background: linear-gradient(120deg, rgba(18, 24, 48, 0.95), rgba(68, 45, 96, 0.9));
  background-size: cover;
  background-position: center;
}

.novel-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.novel-title {
  font-size: 18px;
  font-weight: 600;
}

.novel-desc {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

.novel-meta {
  display: flex;
  gap: 12px;
  color: #9ca3af;
  font-size: 13px;
}

.novel-links {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.novel-links a {
  color: #e5e7eb;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-title {
    white-space: normal;
  }

  .module-grid,
  .stats-grid,
  .showcase-inner {
    grid-template-columns: 1fr;
  }

  .showcase-inner {
    padding: 28px;
  }
}

body.page {
  background: #0c0f14;
  color: #e5e7eb;
}

@keyframes cosmic {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(4%, -3%, 0) scale(1.05);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}