:root {
  color-scheme: light;
  --bg: #f8fbff;
  --panel: #ffffff;
  --panel-soft: #f5f8ff;
  --ink: #121826;
  --muted: #66738a;
  --quiet: #98a2b3;
  --line: rgba(177, 193, 224, 0.52);
  --line-strong: rgba(122, 149, 202, 0.68);
  --blue: #4a78f5;
  --cyan: #32b8d7;
  --violet: #8a7cff;
  --shadow: 0 16px 42px rgba(30, 52, 102, 0.075);
  --shadow-soft: 0 8px 24px rgba(43, 70, 124, 0.05);
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(74, 120, 245, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 120, 245, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(138, 124, 255, 0.11), transparent 24rem),
    radial-gradient(circle at 18% 34%, rgba(50, 184, 215, 0.075), transparent 22rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  background-size:
    48px 48px,
    48px 48px,
    auto,
    auto,
    auto;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(177, 193, 224, 0.38);
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 2.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 246, 255, 0.84));
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
}

.nav a {
  padding: 0.5rem 0.68rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: rgba(74, 120, 245, 0.075);
}

.hero,
.section {
  padding-block: 4.5rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(20rem, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: 0;
  padding-block: 4.2rem 3.8rem;
  border-bottom: 1px solid var(--line);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::before {
  position: absolute;
  inset: 1.2rem auto auto 0;
  width: 6.5rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0.55;
}

.hero::after {
  position: absolute;
  z-index: 0;
  right: 34%;
  bottom: 0.85rem;
  width: min(50rem, 54vw);
  aspect-ratio: 1772 / 868;
  content: "";
  pointer-events: none;
  background: url("./assets/phantom-horse.png") center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0.3;
  transform: translateX(0);
  filter: saturate(0.95);
}

.hero-copy {
  max-width: 44rem;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: clamp(3.45rem, 5.9vw, 6.4rem);
  font-weight: 600;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  font-weight: 750;
}

.hero-lede,
.section-heading p {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 39rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.72rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-weight: 750;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 0 0 4px rgba(74, 120, 245, 0.08);
}

.button--primary {
  border-color: var(--blue);
  background: linear-gradient(135deg, #4777f4, #5d8cff);
  color: #fff;
}

.button--quiet {
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

.hero-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(177, 193, 224, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 255, 0.7)),
    linear-gradient(180deg, rgba(74, 120, 245, 0.04), transparent);
  box-shadow: var(--shadow-soft);
}

.hero-panel div {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 0.95rem;
  row-gap: 0.18rem;
  padding: 0.95rem 1.08rem;
  border-bottom: 1px solid rgba(177, 193, 224, 0.42);
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.hero-panel span,
.doc-index {
  color: var(--blue);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-panel strong {
  grid-column: 2;
  display: block;
  margin-bottom: 0.25rem;
}

.hero-panel p {
  grid-column: 2;
}

.hero-panel p,
.doc-row p,
.work-card p,
.signal-card p,
.contact-box p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(16rem, 0.48fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-heading,
.doc-console,
.work-card,
.signal-card,
.contact-box,
.plain-panel {
  min-width: 0;
}

.section-heading.compact {
  max-width: 42rem;
}

.doc-console,
.work-card,
.contact-box {
  border: 1px solid rgba(177, 193, 224, 0.54);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 1rem;
  border-bottom: 1px solid rgba(177, 193, 224, 0.42);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.console-head a,
.text-link {
  color: var(--blue);
  font-weight: 800;
}

.doc-list {
  display: grid;
}

.doc-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.92rem 1rem;
  border-bottom: 1px solid rgba(177, 193, 224, 0.38);
  transition: background 160ms ease;
}

.doc-row:last-child {
  border-bottom: 0;
}

.doc-row:hover {
  background: rgba(74, 120, 245, 0.045);
}

.doc-row h3 {
  margin-bottom: 0.2rem;
}

.doc-title-link {
  color: inherit;
  text-decoration: none;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.doc-title-link:hover,
.doc-title-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 5rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.64);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.9rem;
}

.work-card {
  padding: 1.2rem;
}

.case-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
}

.case-list div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(177, 193, 224, 0.42);
}

.case-list dt {
  color: var(--blue);
  font-weight: 800;
}

.case-list dd {
  margin: 0;
  color: var(--muted);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(177, 193, 224, 0.52);
  border-radius: 14px;
  background: rgba(177, 193, 224, 0.46);
  box-shadow: var(--shadow-soft);
}

.signal-card {
  min-height: 10.8rem;
  padding: 1.05rem;
  background: rgba(255, 255, 255, 0.78);
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.signal-card:hover,
.signal-card:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(74, 120, 245, 0.18);
}

.signal-card span {
  display: block;
  margin-bottom: 2.25rem;
  color: var(--quiet);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
}

.world-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 0.9rem;
}

.world-strip figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(177, 193, 224, 0.52);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.world-strip img {
  aspect-ratio: 4 / 3;
}

.world-strip figure:first-child img {
  aspect-ratio: 3 / 4;
}

.world-strip figcaption {
  padding: 0.85rem 0.95rem;
  color: var(--muted);
  font-weight: 750;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.5fr);
  gap: 2rem;
  align-items: start;
}

.contact-box {
  padding: 1rem;
}

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.detail-hero {
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.detail-hero h1 {
  max-width: 52rem;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.34fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: 4rem;
  border-bottom: 1px solid var(--line);
}

.side-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 1rem;
}

.plain-panel {
  padding: 1.2rem;
  border: 1px solid rgba(177, 193, 224, 0.54);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.plain-panel p:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

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

@media (max-width: 980px) {
  .hero,
  .split-section,
  .contact-section,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .world-strip {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
  }

  .hero::after {
    right: 18%;
    bottom: 1rem;
    width: min(40rem, 72vw);
    opacity: 0.24;
    transform: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 1rem, var(--container));
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .detail-hero {
    padding-block: 3.2rem;
  }

  .hero::after {
    top: 6.1rem;
    right: -2rem;
    bottom: auto;
    width: 27rem;
    opacity: 0.18;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 3.4rem);
  }

  h2 {
    font-size: 2rem;
  }

  .doc-row {
    grid-template-columns: 2rem 1fr;
  }

  .status-pill {
    grid-column: 2;
    justify-self: start;
  }

  .case-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}
