:root {
  --paper: #FFF7EC;
  --paper-2: #FBEEDD;
  --card: #FFFCF6;
  --ink: #1C1917;
  --muted: #6B5E52;
  --line: #EADFCF;
  --line-strong: #D9C9B3;
  --sun: #FF5B22;
  --sun-soft: #FFE1CF;
  --sans: "Inter Tight", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "JetBrains Mono", Consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --pad-x: max(var(--gutter), calc((100vw - 1280px) / 2));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--sun-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.eyebrow { color: var(--muted); }
.eyebrow i { font-style: normal; color: var(--sun); margin: 0 4px; }

/* ---------- preloader ---------- */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200;
  background: var(--sun); color: var(--ink); transition: transform .8s var(--ease) .1s;
}
.preloader-word { font-size: clamp(28px, 4vw, 48px); font-weight: 500; display: flex; align-items: center; gap: 14px; }
.preloader-word::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.preloader.is-done { transform: translateY(-100%); }
.preloader.is-gone { display: none; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--pad-x); border-bottom: 1px solid transparent;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em;
  transition: background .3s, border-color .3s;
}
.topbar.is-scrolled { background: var(--paper); border-bottom-color: var(--line); }
.topbar.on-footer { background: var(--sun); border-bottom-color: rgba(28, 25, 23, .15); }
.mark { font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
kbd { font-family: var(--mono); font-size: 11px; }
.live { position: relative; display: flex; align-items: center; gap: 8px; height: 28px; padding-left: 6px; cursor: default; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: pulse 2.4s infinite; flex: none; }
.live-time { font-variant-numeric: tabular-nums; min-width: 8ch; }
.live-panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: 290px; padding: 16px 18px;
  background: var(--ink); color: var(--paper); border-radius: 12px; text-transform: none;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.live:hover .live-panel, .live:focus-within .live-panel { opacity: 1; transform: none; pointer-events: auto; }
.live-panel-head { font-family: var(--sans); font-size: 14px; margin-bottom: 12px; }
.live-panel dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.live-panel dt { color: #A89C90; }
.live-panel dd { text-align: right; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 34, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 91, 34, 0); } }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 6vw, 96px); padding: 120px var(--pad-x) 32px;
}
.hero-main { align-self: center; }
.name { font-size: clamp(48px, 6.4vw, 96px); font-weight: 600; letter-spacing: -.035em; line-height: 1; margin: 20px 0 24px; }
.name .word { display: inline-block; white-space: nowrap; }
.name .char { display: inline-block; will-change: transform; }
.name .dot { color: var(--sun); }
.tagline { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.38; color: var(--muted); max-width: 23em; }
.tagline em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 60%, var(--sun-soft) 60%); }
.bio { color: var(--muted); max-width: none; }
.bio > span { display: block; }
.bio .w { font-weight: 500; }
.bio .w + .w::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 14px; border-radius: 50%; background: var(--sun); vertical-align: middle; transform: translateY(-2px); }
.bio .w.is-maybe { color: var(--muted); }
/* 简介轮播：五行叠在同一格，每句约 5 秒（js/bio.js 计时），进度条仅作视觉（悬停暂停） */
.bio.is-rotating { display: grid; color: var(--ink); }
.bio.is-rotating > span { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); filter: blur(4px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); }
.bio.is-rotating > span.is-on { opacity: 1; transform: none; filter: none; }
.bio.is-rotating > span.is-out { transform: translateY(-14px); }
.bio-bars { display: flex; gap: 8px; margin-top: 20px; }
.bio-bars[hidden] { display: none; }
.bio-bars button { position: relative; width: 34px; height: 14px; }
.bio-bars button::before, .bio-bars .fill { content: ""; position: absolute; left: 0; top: 6px; height: 2px; border-radius: 2px; }
.bio-bars button::before { right: 0; background: var(--line-strong); }
.bio-bars .fill { width: 0; background: var(--sun); }
.bio-bars .is-active .fill { animation: bio-fill 5s linear forwards; }
.hero-main:hover .bio-bars .fill { animation-play-state: paused; }
@keyframes bio-fill { to { width: 100%; } }

.status { align-self: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 8px; }
.status-head { display: flex; align-items: center; gap: 10px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.status dl { display: grid; grid-template-columns: auto 1fr; }
.status dt, .status dd { display: flex; align-items: center; min-height: 46px; border-bottom: 1px solid var(--line); }
.status dt:nth-last-of-type(1), .status dd:last-child { border-bottom: 0; }
.status dt { color: var(--muted); font-size: 11px; padding-right: 16px; }
.status dd { justify-content: flex-end; font-weight: 500; }
.status dd a { border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
.status dd a:hover { color: var(--sun); border-color: var(--sun); }


.hero-index { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--ink); }
.hero-index a:not(.round) {
  flex: 1; display: flex; align-items: baseline; gap: 10px; padding: 8px 0;
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; transition: color .25s;
}
.hero-index a:not(.round) .mono { color: var(--muted); transition: color .25s; }
.hero-index a:not(.round)::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ease); }
.hero-index a:not(.round):hover { color: var(--sun); }
.hero-index a:not(.round):hover .mono { color: var(--sun); }
.hero-index a:not(.round):hover::after { opacity: 1; transform: none; }

.magnet { display: inline-grid; place-items: center; will-change: transform; transition: background .3s, color .3s, border-color .3s; }
.magnet > span { display: block; pointer-events: none; will-change: transform; }
.round { width: 96px; height: 96px; flex: none; border-radius: 50%; border: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; text-transform: uppercase; background: var(--paper); }
.round:hover { background: var(--sun); border-color: var(--sun); }
.round-ink { width: 156px; height: 156px; margin: 0; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.round-ink:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- sections ---------- */
section:not(.hero) { padding: 14vh var(--pad-x); border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 24px; align-items: baseline; margin-bottom: 56px; }
.section-h.section-zh { letter-spacing: .12em; }
.section-h { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; max-width: 18em; }

/* ---------- 01 now ---------- */
.now-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.topics { border-bottom: 1px solid var(--line); }
.topics li { border-top: 1px solid var(--line); }
.topics button {
  display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 16px 0; text-align: left;
  font-size: clamp(21px, 2.1vw, 30px); font-weight: 500; letter-spacing: -.02em; transition: color .25s, opacity .25s;
}
.topics button .mono { color: var(--muted); width: 1.5em; }
.topics .t-zh { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.topics button::after { content: "→"; margin-left: auto; color: var(--sun); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s var(--ease); }
.topics.has-active button { opacity: .38; }
.topics.has-active button.is-active { opacity: 1; }
.topics button.is-active .mono { color: var(--sun); }
.topics button.is-active::after { opacity: 1; transform: none; }

.viz { position: sticky; top: 90px; margin: 0; }
.viz-screen { position: relative; aspect-ratio: 4 / 3; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.viz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-tag { position: absolute; top: 14px; left: 16px; z-index: 2; padding: 3px 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.viz-caption { margin-top: 18px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--ink); max-width: 44ch; min-height: 4.4em; }
.viz-meta { margin-top: 12px; color: var(--muted); min-height: 1.5em; }

/* ---------- 02 capital ---------- */
.principle {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  margin-bottom: 28px; padding: clamp(24px, 3vw, 40px); background: var(--sun-soft); border-radius: 20px;
}
.principle .eyebrow { color: var(--ink); opacity: .7; margin-bottom: 14px; }
.principle-h { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.principle-zh { display: block; margin-top: 10px; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .08em; font-weight: 500; color: var(--sun); }
.principle-sub { margin-top: 18px; font-size: clamp(16px, 1.3vw, 18px); max-width: 30em; }
.principle-viz { margin: 0; }
.principle-viz canvas { display: block; width: 100%; height: clamp(160px, 18vw, 230px); }
.principle-viz figcaption { margin-top: 8px; color: rgba(28, 25, 23, .6); text-align: right; text-transform: none; }
.capital-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: clamp(24px, 4vw, 56px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 28px;
  display: flex; flex-direction: column; min-height: 250px; transition: border-color .25s, transform .35s var(--ease);
}
.steps li:hover { border-color: var(--sun); transform: translateY(-3px); }
.steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--sun-soft); color: var(--ink); display: grid; place-items: center; margin-bottom: auto; transition: background .25s; }
.steps li:hover .n { background: var(--sun); }
.steps h3 { font-size: 21px; line-height: 1.15; letter-spacing: -.015em; font-weight: 600; margin: 40px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; }
.rules .eyebrow { margin-bottom: 14px; }
.rule-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.rule-list li::before { content: "—"; color: var(--sun); }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- cards (GitHub repos) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 270px; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: background .3s, border-color .3s, transform .35s var(--ease);
}
.card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.card-name { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; margin-top: auto; }
.card-desc { color: var(--muted); font-size: 15px; }
.card-foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.card-foot .go { font-size: 16px; transition: transform .35s var(--ease); }
a.card:hover { background: var(--sun); border-color: var(--sun); transform: translateY(-4px); }
a.card:hover .card-top, a.card:hover .card-desc { color: var(--ink); }
a.card:hover .card-foot { border-color: rgba(28, 25, 23, .25); }
a.card:hover .go { transform: translate(3px, -3px); }
.cards[aria-busy="true"] { min-height: 270px; }

/* ---------- 05 books ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 24px; }
.book-cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: inset 6px 0 0 rgba(28, 25, 23, .06); transition: transform .4s var(--ease);
}
.book:not(.is-placeholder):hover .book-cover { transform: translateY(-4px) rotate(-.6deg); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover.is-type { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 20px; background: var(--sun-soft); border-color: transparent; }
.book-cover-title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.book-cover-author { color: rgba(28, 25, 23, .6); text-transform: none; display: flex; align-items: center; gap: 8px; }
.book-cover-author::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.book-title { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 14px 0 2px; }
.book-sub { color: var(--muted); font-size: 15px; }
.book-meta { color: var(--muted); margin-top: 6px; }
.book-desc { color: var(--muted); font-size: 15px; margin-top: 8px; }
.book-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.book-links a { border-bottom: 1px solid currentColor; }
.book-links a:hover { color: var(--sun); }
.book.is-placeholder .book-cover { background: transparent; border: 1px dashed var(--line-strong); box-shadow: none; }
.book.is-placeholder .book-cover-title { color: var(--muted); }

/* ---------- memos（06 / 所念：最新公开 memos，来自 /memos-feed.json） ---------- */
.memo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.memo {
  display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 18px 20px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .25s, transform .35s var(--ease);
}
a.memo:hover { border-color: var(--sun); transform: translateY(-3px); }
.memo-date { color: var(--muted); }
.memo-text { font-size: 17px; line-height: 1.55; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.memo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.memo-tags span { font-family: var(--mono); font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--sun-soft); }
.memo-empty { padding: 24px 0; color: var(--muted); }
.tag { font-style: normal; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); }
.tag-live { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 03 blog 引导卡 / 04 wechat 列表（.note-list） ---------- */
/* 03 / Blog 与引导卡：整张卡片作为入口，不列文章标题（博客有口令） */
.feature {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: clamp(24px, 3vw, 40px);
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  transition: background .3s, border-color .3s;
}
.feature-body { display: grid; gap: 12px; max-width: 40em; }
.feature-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.feature-url { color: var(--muted); }
.feature-lock { padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 11px; }
.feature-name { font-size: clamp(36px, 4.4vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.feature-desc { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }
.feature-go { flex: none; display: inline-flex; gap: 8px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 999px; transition: background .3s, color .3s; }
.feature:hover { background: var(--sun); border-color: var(--sun); }
.feature:hover .feature-url, .feature:hover .feature-desc, .feature:hover .feature-lock { color: var(--ink); border-color: rgba(28, 25, 23, .35); }
.feature:hover .feature-go { background: var(--ink); color: var(--paper); }
.note-list { border-bottom: 1px solid var(--line); }
.note-list a { display: grid; grid-template-columns: 140px minmax(0, 1fr) 32px; gap: 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.note-list .date { color: var(--muted); }
.note-list .title { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.4; font-weight: 500; background: linear-gradient(var(--sun-soft), var(--sun-soft)) 0 90% / 0 40% no-repeat; transition: background-size .45s var(--ease); }
.note-list a:hover .title, .note-list a:focus-visible .title { background-size: 100% 40%; }
.note-list .go { text-align: right; color: var(--muted); transition: transform .35s var(--ease), color .25s; }
.note-list a:hover .go { transform: translateX(4px); color: var(--sun); }
.note-list .digest { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wechat-empty { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); }
.wechat-note { margin-top: 18px; color: var(--muted); }
.more { display: inline-block; margin-top: 28px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more:hover { color: var(--sun); }

/* ---------- footer ---------- */
.footer { background: var(--sun); color: var(--ink); padding: 14vh var(--pad-x) 28px; border-radius: 28px 28px 0 0; }
.footer .eyebrow { color: rgba(28, 25, 23, .6); margin-bottom: 20px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 12vh; }
.footer-h { font-size: clamp(56px, 9vw, 140px); line-height: .9; letter-spacing: -.045em; font-weight: 600; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 24px 56px; padding-top: 22px; border-top: 1px solid rgba(28, 25, 23, .22); }
.footer-meta div { display: grid; gap: 6px; }
.footer-meta .k { color: rgba(28, 25, 23, .6); }
.link { text-transform: uppercase; border-bottom: 1px solid currentColor; }
.link-email { text-transform: none; }
.link-email:hover { border-bottom-width: 2px; }

/* ---------- command menu ---------- */
.cmdk { position: fixed; inset: 0; z-index: 100; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(28, 25, 23, .28); animation: fade .2s; }
.cmdk-panel {
  position: relative; margin: 16vh auto 0; width: min(600px, calc(100% - 32px)); overflow: hidden;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(28, 25, 23, .22); animation: rise .25s var(--ease);
}
.cmdk-q { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--sun); }
.cmdk-q input { flex: 1; border: 0; outline: 0; background: none; font: inherit; text-transform: none; color: var(--ink); caret-color: var(--sun); }
.cmdk-q input::placeholder { color: var(--muted); }
.cmdk-list { max-height: min(52vh, 420px); overflow: auto; padding: 8px; }
.cmdk-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-family: var(--mono); font-size: 13px; }
.cmdk-list li::before { content: "○"; color: var(--muted); }
.cmdk-list li[aria-selected="true"] { background: var(--sun-soft); }
.cmdk-list li[aria-selected="true"]::before { content: "●"; color: var(--sun); }
.cmdk-list .hint { margin-left: auto; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.cmdk-list .empty { color: var(--muted); cursor: default; }
.cmdk-list .empty::before { content: ">_"; }
.cmdk-foot { display: flex; gap: 20px; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 32px; padding-top: 104px; }
  .status { align-self: start; }
  .hero-index { flex-wrap: wrap; }
  .hero-index a:not(.round) { flex: 1 1 40%; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .now-grid, .capital-grid, .principle { grid-template-columns: minmax(0, 1fr); }
  .viz { position: relative; top: 0; }
  .steps, .cards { grid-template-columns: minmax(0, 1fr); }
  .memo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li, .card { min-height: 0; }
  .steps h3 { margin-top: 24px; }
  .card-name { margin-top: 12px; }
}
@media (max-width: 600px) {
  .chip-sound, .live-loc { display: none; }
  .feature { flex-direction: column; align-items: flex-start; }
  .memo-wall { grid-template-columns: minmax(0, 1fr); }
  .hero-index .round { display: none; }
  .note-list a { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; }
  .note-list .date { grid-column: 1 / -1; }
  .round-ink { width: 124px; height: 124px; }
  .live-panel { right: -8px; width: min(290px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .preloader { display: none; }
}
