@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/urbanist-500.woff2") format("woff2");
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/urbanist-600.woff2") format("woff2");
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/urbanist-700.woff2") format("woff2");
}
@font-face {
  font-family: Caveat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/caveat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/noto-sans-sc-500.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/noto-sans-sc-600.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/noto-sans-sc-700.woff2") format("woff2");
}
@font-face {
  font-family: "Ma Shan Zheng";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ma-shan-zheng.woff2") format("woff2");
}

:root {
  --bg: #f6f6f6;
  --ink: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.6);
  --line: rgba(26, 26, 26, 0.1);
  --white: #fff;
  --sans: Urbanist, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --script: Caveat, "Ma Shan Zheng", cursive;
  --script-zh: "Ma Shan Zheng", Caveat, cursive;
  --shadow: 0 12px 30px rgba(26, 26, 26, 0.08);
  --guide: max(20px, calc(50% - 560px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

.sr, .skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.guides::before,
.guides::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  z-index: 5;
  pointer-events: none;
}
.guides::before { left: var(--guide); }
.guides::after { right: var(--guide); }

.id-pill,
.menu-btn {
  position: fixed;
  top: 18px;
  z-index: 60;
  background: var(--white);
  box-shadow: var(--shadow);
}
.id-pill {
  left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff7a18;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.id-text { display: flex; flex-direction: column; line-height: 1.15; }
.id-text strong { font-size: 14px; }
.id-text small { font-size: 10px; color: var(--muted); font-weight: 600; }

.menu-btn {
  right: 18px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 0; transform: rotate(-45deg); }

.overlay {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 55;
  width: min(260px, calc(100% - 36px));
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(26, 26, 26, 0.14);
  padding: 10px 8px 12px;
}
.overlay[hidden] { display: none; }
.overlay-nav a {
  display: block;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 12px;
}
.overlay-nav a:hover { background: #f3f3f3; }
.overlay-meta {
  margin: 6px 14px 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero, .block {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}
.hero {
  padding: 128px 0 40px;
  text-align: center;
  position: relative;
}
.scribble {
  font-family: var(--script);
  font-weight: 400;
  font-size: 22px;
  color: var(--muted);
  margin: 0 auto 8px;
  transform: rotate(-8deg) translateX(28%);
  width: fit-content;
}
.scribble-inline {
  transform: rotate(-6deg);
  margin-bottom: 8px;
}
h1 {
  margin: 0;
  font-size: clamp(72px, 12vw, 144px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
.hero-en {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 0;
}
.btn-dark { background: #1a1a1a; color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-light:hover { transform: translateY(-1px); }

.svc-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 72px;
  text-align: left;
  align-items: start;
}
.svc {
  background: #fff;
  border-radius: 32px;
  padding: 22px 22px 26px;
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.06);
  border-top: 5px solid var(--accent);
  transform: rotate(var(--rot));
  min-width: 0;
}
.svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 18px 0 18px;
}
.svc h2 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.svc p, .lead, .poster li, .path p, .contact-role {
  font-weight: 500;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.svc p { margin: 0; }

.block { padding: 96px 0 10px; }
.center-block { text-align: center; }
.display {
  margin: 0;
  font-size: clamp(56px, 8vw, 80px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.about-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  text-align: left;
}
.facts p { margin: 0 0 28px; }
.facts small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}
.facts strong {
  display: block;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.facts-end { text-align: right; }

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.text-link {
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}
.lead {
  max-width: 720px;
  margin: 22px 0 28px;
}
.decks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.deck {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(var(--rot));
  min-width: 0;
}
.deck h3 {
  margin: 0;
  background: var(--cap);
  padding: 16px 20px 14px;
  font-size: 14px;
  font-weight: 600;
}
.deck ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
}
.deck li {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.idea {
  margin-top: 36px;
  background: #fff;
  border-radius: 32px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(26, 26, 26, 0.05);
}
.idea p {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: left;
}
.idea .hero-actions { margin-top: 0; }

.works {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}
.work {
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.05);
  min-width: 0;
  overflow: hidden;
}
.poster { padding: 22px 22px 26px; }
.kicker {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.poster h3 {
  margin: 0 0 8px;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.poster-sub { margin: 0 0 8px; font-size: 18px; }
.poster ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.early { margin-top: 28px; }
.early p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.early ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.early li {
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.path {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 22px;
  text-align: left;
}
.path::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #e6e6e6;
}
.path li {
  width: min(460px, calc(50% - 36px));
  position: relative;
}
.path li.right { margin-left: auto; }
.path li::after {
  content: "";
  position: absolute;
  top: 36px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 6px var(--bg);
}
.path li.left::after { right: -41px; }
.path li.right::after { left: -41px; }
.path article {
  background: #fff;
  border-radius: 28px;
  padding: 26px 24px 22px;
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.05);
  position: relative;
}
.path article::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--dot);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  background: #f3f3f3;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.path h3 {
  margin: 16px 0 8px;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.path p { margin: 0; }

.products {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}
.products a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 132px;
  background: #fff;
  border-radius: 24px;
  padding: 18px 18px 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.products a:hover { transform: translateY(-2px); }
.products small { color: var(--muted); font-size: 12px; }
.products strong { font-size: 22px; letter-spacing: -0.03em; }
.products span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact { padding-bottom: 40px; }
.contact-role { margin: 16px auto 0; max-width: 640px; }
.contact-grid {
  margin: 36px auto 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}
.contact-grid a {
  text-decoration: none;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.contact-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.contact-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.colophon {
  width: min(1080px, calc(100% - 48px));
  margin: 10px auto 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.colophon a { color: var(--ink); }
.colophon p { margin: 0; }

@media (max-width: 980px) {
  .about-grid,
  .decks,
  .products,
  .contact-grid { grid-template-columns: 1fr; }
  .facts-end, .center-block .facts { text-align: left; }
  .path::before { left: 8px; }
  .path li, .path li.right {
    width: auto;
    margin-left: 28px;
  }
  .path li.left::after,
  .path li.right::after { left: -28px; right: auto; }
  .works { grid-template-columns: 1fr; }
  .idea { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 800px) {
  .guides { display: none; }
  .svc-row { grid-template-columns: 1fr; }
  .svc { transform: none; }
  .deck { transform: none; }
  .scribble { transform: none; margin-left: auto; margin-right: auto; }
  .id-pill { max-width: calc(100% - 88px); }
  .hero { padding-top: 112px; }
  .hero .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .hero-actions .btn { width: 100%; }
  .block-head { align-items: flex-start; flex-direction: column; }
  .colophon { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc, .deck, .scribble { transform: none; }
}
