/* Fast Chinese typography: use fonts already available on the visitor's device.
   This follows the system-first stack used by CSDN pages and avoids a large webfont request. */
:root {
  --font-ui-zh: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-display-zh: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-ui-zh);
}

/* Keep the editorial display treatment while ensuring Chinese glyphs render cleanly. */
.font-serif-display {
  font-family: var(--font-display-zh);
  font-weight: 700;
}

body { font-weight: 500; color: #161616; }
button, input, textarea, select { font-weight: 500; }
.text-\[11px\], .text-\[10px\], .text-\[10\.5px\], .text-\[12px\] { font-weight: 300; }
.text-white\/80 { color: #030303 !important; }

/* Existing mono labels remain intentionally monospaced. */
.font-mono,
.font-mono-tech {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Review-pass visual corrections. */
h1, h2, h3, h4, h5, h6, strong, b {
  font-family: var(--font-display-zh);
  font-weight: 700;
}

/* Keep the hero headline bold but compact on wide screens. */
section:first-of-type h1 {
  font-size: 80px !important;
  line-height: 1.14 !important;
  width: 1000px;
  max-width: 100%;
}
section:first-of-type .max-w-2xl { max-width: 1000px !important; }
section:first-of-type p.animate-fade-up-delay-2 {
  width: 600px !important;
  max-width: 100% !important;
}
@media (max-width: 767px) {
  section:first-of-type h1 {
    font-size: 54px !important;
    line-height: 1.12 !important;
  }
  section:first-of-type p.animate-fade-up-delay-2 {
    width: 100% !important;
  }
}

section#studio {
  background-color: #fff !important;
}
section#studio h2 {
  font-size: 70px !important;
  width: 1000px;
  max-width: 100%;
  line-height: 1.18 !important;
}

section#work h2,
section#process h2,
section#journal h2 {
  line-height: 1.24 !important;
}

/* Black headline with a narrow moving rainbow laser band. */
.text-shimmer {
  background: linear-gradient(100deg, #050505 0%, #050505 42%, #ff3cac 47%, #00d4ff 50%, #f9d423 53%, #050505 58%, #050505 100%) 0 0 / 240% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: rainbow-laser 4s linear infinite !important;
}
@keyframes rainbow-laser {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}

/* Secondary hero CTA: darker body with a visible prismatic halo. */
.animate-fade-up-delay-3 a.group:nth-of-type(2) {
  position: relative;
  isolation: isolate;
  background: rgba(18, 22, 30, 0.42) !important;
  color: #fff !important;
  border-color: transparent !important;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 0 18px rgba(0, 204, 255, .18), 0 0 28px rgba(255, 61, 172, .16);
}
.animate-fade-up-delay-3 a.group:nth-of-type(2)::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 999px;
  /* A short horizontal laser sweep, clipped to the glass edge. */
  background: linear-gradient(90deg, transparent 0%, transparent 42%, #ff63dc 47%, #28ecff 50%, #ffe76a 53%, transparent 58%, transparent 100%);
  background-size: 240% 100%;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: blur(.4px) saturate(1.35);
  opacity: 1;
  animation: button-sweep 2.8s linear infinite;
}
@keyframes button-sweep {
  from { background-position: -120% 0; }
  to { background-position: 120% 0; }
}

/* Make the course-list CTA match the hero CTA scale. */
section#work a[href="#all-work"] {
  padding: 13px 22px !important;
  font-size: 15px !important;
}

/* Shorter, more legible case-study images. */
section#work .grid > a > div.relative.w-full {
  aspect-ratio: 16 / 6 !important;
}
section#work .grid > a {
  align-self: start !important;
  height: auto !important;
  margin-top: 0 !important;
  transform: none !important;
}
section#work .grid > a h3 {
  font-size: 50px !important;
  line-height: 1.08 !important;
}
section#work .grid > a:nth-child(4) h3 {
  font-size: 40px !important;
}

/* The lead journal image should support the article, not dominate the viewport. */
section#journal .lg\:col-span-7 > div.relative.w-full {
  aspect-ratio: 16 / 5.5 !important;
}

/* These Chinese headlines read better upright in the course voice. */
section:first-of-type h1 > .italic,
section#studio h2 > .italic,
section#process h2 > .italic,
section#journal h2 > .italic {
  font-style: normal !important;
}

/* Keep the community status label and value on the same horizontal axis. */
section#studio .mt-3.pt-3.border-t.border-neutral-200 {
  align-items: center !important;
  min-height: 28px;
}
section#studio .mt-3.pt-3.border-t.border-neutral-200 > span:last-child {
  white-space: nowrap;
}

/* Darken the floating header navigation so it remains legible over the hero. */
header.fixed.top-0 nav {
  background-color: rgba(12, 12, 12, 0.32) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
header.fixed.top-0 nav a {
  color: rgba(255, 255, 255, 0.92) !important;
}
header.fixed.top-0 nav a:hover {
  color: #fff !important;
}

/* The large in-app SEO footer is intentionally hidden; the compact static footer remains. */
#root > div.relative.min-h-screen > footer.bg-neutral-950 {
  display: none !important;
}

.animate-fade-up-delay-2.mt-7 {
  color: #030303 !important;
}

.animate-fade-up-delay-3 a[class*="border-white/30"] {
  color: #030303 !important;
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(3, 3, 3, 0.38) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.animate-fade-up-delay-3 a[class*="border-white/30"]:hover {
  background-color: #fff !important;
  border-color: #030303 !important;
}

/* Hero metric captions: darker, more direct labels. */
.animate-fade-up-delay-4.mt-12.grid > div > div:nth-child(2) {
  color: #1a1a1a !important;
  font-weight: 300;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.animate-marquee.font-serif-display {
  font-size: 22px !important;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .animate-marquee.font-serif-display { font-size: 26px !important; }
}

section#journal .max-w-md h3 {
  white-space: nowrap;
  font-size: clamp(22px, 2.2vw, 32px) !important;
}

section#journal > div.relative.px-6 > div.flex.flex-wrap button {
  color: rgba(255, 255, 255, 0.9) !important;
}
section#journal > div.relative.px-6 > div.flex.flex-wrap button.bg-white {
  color: #111 !important;
}

/* Glass-laser treatment for journal cards: luminous edge, blur, and a cool prismatic sheen. */
section#journal a.group.grid {
  background: linear-gradient(120deg, rgba(255,255,255,.18), rgba(255,255,255,.04) 34%, rgba(130,190,255,.12) 58%, rgba(255,255,255,.05)) !important;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 12px 32px rgba(0,0,0,.18);
}
section#journal a.group.grid:hover {
  border-color: rgba(182, 224, 255, 0.8) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 16px 38px rgba(73, 135, 190, .2);
}

#site-footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px 24px 40px;
  font-size: 13px;
  font-weight: 300;
}
#site-footer .footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
#site-footer strong { color: #fff; font-size: 14px; }
#site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
#site-footer a:hover { color: #fff; }
