:root {
  color-scheme: dark;
  --bg: oklch(0.085 0 0);
  --bg-raised: oklch(0.14 0.015 258);
  --surface: oklch(0.18 0.021 258);
  --surface-strong: oklch(0.235 0.026 258);
  --line: oklch(0.34 0.026 258);
  --line-strong: oklch(0.49 0.05 246);
  --ink: oklch(0.94 0.012 260);
  --muted: oklch(0.74 0.025 248);
  --quiet: oklch(0.58 0.026 248);
  --primary: oklch(0.78 0.18 190);
  --primary-deep: oklch(0.57 0.16 195);
  --accent: oklch(0.72 0.21 330);
  --amber: oklch(0.77 0.15 60);
  --green: oklch(0.75 0.17 145);
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 18px 40px oklch(0 0 0 / 0.32);
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.brand-lockup span {
  display: grid;
  gap: 2px;
}

.brand-lockup strong {
  font-size: 18px;
  line-height: 1;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(0.1 0.01 258 / 0.82);
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--surface-strong);
  outline: none;
}

.language-toggle {
  min-width: 46px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid oklch(0.78 0.18 190 / 0.46);
  border-radius: var(--radius);
  color: var(--primary);
  background: oklch(0.1 0.01 258 / 0.82);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  color: oklch(0.08 0 0);
  background: var(--primary);
  outline: none;
}

main {
  position: relative;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: clamp(48px, 7vw, 86px) 0 clamp(56px, 7vw, 88px);
}

.studio-tag {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid oklch(0.77 0.18 190 / 0.34);
  border-radius: 999px;
  color: var(--primary);
  background: oklch(0.18 0.05 190 / 0.36);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 8ch;
  font-size: clamp(68px, 14vw, 168px);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-subtitle {
  margin-top: 18px;
  color: var(--primary);
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
}

.hero-body {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-body.zh {
  margin-top: 10px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-action {
  color: oklch(0.08 0 0);
  background: var(--primary);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: oklch(0.14 0.014 258 / 0.72);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-mark {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, oklch(0.18 0.02 260), oklch(0.1 0 0));
  box-shadow: var(--shadow);
}

.hero-mark img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.section-block {
  padding: clamp(48px, 7vw, 80px) 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: var(--space-lg);
}

.project-heading {
  max-width: none;
}

.section-kicker,
.section-heading > p {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.section-heading > p:only-child {
  margin-bottom: 0;
}

.section-heading h2,
.contact-section h2 {
  font-size: clamp(31px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: stretch;
  gap: clamp(16px, 2vw, 22px);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(0.135 0.012 258 / 0.92);
}

.featured-project {
  border-color: oklch(0.78 0.18 190 / 0.54);
  background: oklch(0.16 0.025 222 / 0.94);
}

.project-visual {
  min-height: clamp(138px, 14vw, 160px);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.project-visual span {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.visual-midgard {
  background:
    linear-gradient(135deg, oklch(0.18 0.06 145), oklch(0.1 0.015 258)),
    var(--surface);
  color: var(--green);
}

.visual-hexa {
  background:
    conic-gradient(from 30deg, oklch(0.2 0.06 190), oklch(0.14 0.08 300), oklch(0.2 0.06 190));
  color: var(--primary);
}

.visual-lord {
  background:
    linear-gradient(150deg, oklch(0.19 0.06 330), oklch(0.1 0.012 258)),
    var(--surface);
  color: var(--accent);
}

.project-title-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.project-title-row h3 {
  font-size: 22px;
  line-height: 1.2;
}

.status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-live {
  color: oklch(0.08 0 0);
  background: var(--primary);
}

.status-prototype {
  color: oklch(0.08 0 0);
  background: var(--green);
}

.status-dev {
  color: oklch(0.08 0 0);
  background: var(--accent);
}

.status-future {
  color: var(--ink);
  background: oklch(0.24 0.025 258);
  border: 1px solid var(--line-strong);
}

.placeholder-project {
  background: oklch(0.12 0.01 258 / 0.78);
}

.visual-future {
  background:
    linear-gradient(135deg, oklch(0.16 0.02 258), oklch(0.095 0.004 258)),
    var(--surface);
  color: oklch(0.76 0.08 248);
}

.visual-future span {
  font-size: 44px;
}

.project-card p {
  color: var(--muted);
  line-height: 1.68;
  min-height: 3.25em;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.project-meta div {
  padding: 10px;
  background: oklch(0.105 0.011 258);
}

.project-meta-action-cell {
  display: flex;
  align-items: stretch;
}

.project-meta dt {
  margin-bottom: 4px;
  color: var(--quiet);
  font-size: 12px;
}

.project-meta dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.project-play-action {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(0.78 0.18 190 / 0.42);
  border-radius: 6px;
  color: oklch(0.08 0 0);
  background: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.project-play-action:hover,
.project-play-action:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.project-play-action-disabled {
  color: oklch(0.92 0.025 300);
  background: oklch(0.35 0.085 318 / 0.58);
  border-color: oklch(0.72 0.16 318 / 0.4);
  cursor: not-allowed;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.about-section {
  padding-top: clamp(52px, 7vw, 80px);
}

.about-copy {
  display: grid;
  gap: 14px;
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.about-copy p:not(.section-kicker) {
  max-width: 58ch;
  margin-top: 4px;
}

.principle-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.principle-list li {
  display: grid;
  grid-template-columns: minmax(96px, 0.34fr) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list strong {
  color: var(--primary);
  font-size: 17px;
  line-height: 1.35;
}

.principle-list span {
  color: var(--muted);
  line-height: 1.65;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.62fr);
  gap: 32px;
  align-items: center;
  margin: clamp(74px, 10vw, 124px) 0;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(0.135 0.012 258 / 0.9);
}

.contact-section p:not(.studio-tag) {
  max-width: 58ch;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid oklch(0.78 0.18 190 / 0.55);
  border-radius: var(--radius);
  color: var(--ink);
  background: oklch(0.18 0.05 190 / 0.22);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

.site-footer div {
  display: grid;
  gap: 7px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.filing-links {
  text-align: right;
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .about-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 24px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-mark {
    max-width: 420px;
  }

  .project-title-row {
    display: grid;
  }

  .site-footer {
    display: grid;
  }

  .filing-links {
    text-align: left;
  }
}

@media (max-width: 460px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 22px, var(--max));
  }

  .brand-lockup small {
    display: none;
  }

  .language-toggle {
    min-width: 42px;
    min-height: 40px;
    padding: 0 10px;
  }

  .hero h1 {
    font-size: clamp(58px, 24vw, 90px);
  }

  .hero-actions a,
  .contact-link {
    width: 100%;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .principle-list li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
