/* ---------- tokens ---------- */
:root {
  --paper: #f6f7f9;
  --card: #ffffff;
  --ink: #14161c;
  --ink-soft: #2a2e38;
  --muted: #5c6474;
  --line: #e3e6ee;
  --accent: #2b52e0;
  --accent-ink: #1c39a6;
  --accent-soft: #e9edfd;
  --accent-tint: #f3f5fe;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 999px;
  --shadow: 0 18px 48px rgba(28, 40, 84, 0.10);
  --shadow-sm: 0 6px 18px rgba(28, 40, 84, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.18; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(43, 82, 224, 0.24); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfd4e0; }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 249, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.brand-text em {
  font-style: normal; margin-left: 7px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.28s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 62px 0 78px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border-radius: var(--pill); padding: 6px 12px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.035em; }
.lede { margin-top: 20px; max-width: 30em; font-size: 17px; color: var(--muted); line-height: 1.75; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* concept card */
.hero-visual { display: flex; flex-direction: column; gap: 18px; }
.concept {
  position: relative;
  min-height: 320px;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}
.concept:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius-lg); }
.concept-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 34px 32px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.62s var(--ease), opacity 0.32s var(--ease);
}
.concept-back {
  transform: rotateY(180deg);
  opacity: 0;
  background: linear-gradient(160deg, #ffffff 0%, var(--accent-tint) 100%);
  border-color: #d9e0fb;
}
.concept.flipped .concept-front { transform: rotateY(-180deg); opacity: 0; }
.concept.flipped .concept-back { transform: rotateY(0deg); opacity: 1; }

.concept-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.concept-term { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.concept-en { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.concept-ask {
  margin-top: auto; font-size: 13px; color: #8b92a3;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.concept-note { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.concept-src { margin-top: auto; font-size: 12.5px; color: var(--accent-ink); letter-spacing: 0.02em; }

.card-dots { display: flex; gap: 8px; justify-content: center; }
.card-dots button {
  width: 26px; height: 4px; border-radius: var(--pill);
  border: none; background: #d5dae6; cursor: pointer; padding: 0;
  transition: background 0.22s var(--ease), width 0.22s var(--ease);
}
.card-dots button.is-active { background: var(--accent); width: 38px; }

/* ---------- sections ---------- */
.section-title { font-size: clamp(24px, 3.1vw, 34px); letter-spacing: -0.03em; max-width: 24em; }

/* notes */
.notes {
  padding: 76px 0 84px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.notes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: var(--pill);
  min-height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.post-list { display: grid; }
.post { border-bottom: 1px solid #eef0f6; }
.post a {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 22px 6px;
  transition: background 0.22s var(--ease), padding 0.22s var(--ease);
}
.post a:hover { background: var(--accent-tint); padding-left: 14px; padding-right: 14px; }
.post time {
  font-family: var(--mono); font-size: 12.5px; color: #8b92a3;
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.post h3 { font-size: 18px; letter-spacing: -0.015em; transition: color 0.2s var(--ease); }
.post a:hover h3 { color: var(--accent-ink); }
.post p { margin-top: 7px; font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 58ch; }
.post-meta { display: flex; align-items: center; gap: 12px; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: var(--pill); padding: 4px 11px;
}
.rt { font-family: var(--mono); font-size: 12px; color: #8b92a3; font-variant-numeric: tabular-nums; }
.post.is-hidden { display: none; }
.empty-hint { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* series */
.series { padding: 80px 0; }
.series-grid { margin-top: 38px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.series-side { display: grid; gap: 20px; }
.series-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.series-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.series-lead { background: linear-gradient(165deg, #ffffff 0%, var(--accent-tint) 100%); border-color: #dde3fb; }
.series-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.series-head h3 { font-size: 21px; letter-spacing: -0.02em; }
.series-count { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.series-card > p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.series-items { margin-top: 6px; display: grid; gap: 10px; }
.series-items li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-soft); }
.series-items li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--accent);
}

/* map */
.map { padding: 8px 0 88px; }
.map-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.map-col { border-top: 1px solid var(--line); padding-top: 18px; }
.map-col h3 { font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.map-col li { font-size: 14px; color: var(--muted); padding: 5px 0; line-height: 1.6; }

/* about */
.about { padding: 80px 0 92px; background: #fff; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.about-copy .section-title { margin-bottom: 20px; }
.about-copy p { font-size: 15.5px; color: var(--muted); line-height: 1.85; max-width: 34em; }
.about-copy p + p { margin-top: 16px; }
.about-facts { display: grid; }
.about-facts > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eef0f6;
}
.about-facts > div:first-child { border-top: 1px solid var(--line); }
.about-facts dt { font-size: 13px; color: #8b92a3; }
.about-facts dd { font-size: 14px; color: var(--ink-soft); }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--paper); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 0.8fr 1.2fr; gap: 40px; }
.footer-desc { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 26em; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-record p { font-size: 13px; color: var(--muted); padding: 3px 0; }
.footer-record a.icp {
  display: inline; font-size: 13px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-record a.icp:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #eef0f6;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12.5px; color: #8b92a3; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 2; max-width: 620px; }
  .series-grid { grid-template-columns: 1fr; }
  .series-side { grid-template-columns: 1fr 1fr; }
  .map-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-inner { height: 62px; gap: 12px; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 38px 0 56px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .lede { font-size: 15.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .concept { min-height: 290px; }
  .concept-face { padding: 26px 22px; }
  .notes { padding: 56px 0 60px; }
  .notes-head { align-items: flex-start; }
  .post a { grid-template-columns: 1fr; gap: 8px; padding: 18px 4px; }
  .post a:hover { padding-left: 10px; padding-right: 10px; }
  .post-meta { justify-content: flex-start; }
  .series-side { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .about-facts > div { grid-template-columns: 84px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
