/* 文峰 · 企业 Agent 案例站 — 精密编辑感 */

@view-transition { navigation: auto; }

/* 跨页转场：品牌与案例标题接力 */
::view-transition-group(root) { animation-duration: 0.26s; }
.brand { view-transition-name: wf-brand; }
.case-card[href$="ai-cockpit.html"] .case-title { view-transition-name: case-cockpit; }
.case-card[href$="personal-kb.html"] .case-title { view-transition-name: case-kb; }
.case-card[href$="hk-news.html"] .case-title { view-transition-name: case-hknews; }
.case-card[href$="hk-identity.html"] .case-title { view-transition-name: case-hkid; }
.case-card[href$="brand-poster.html"] .case-title { view-transition-name: case-poster; }
.case-card[href$="meeting-minutes.html"] .case-title { view-transition-name: case-mtg; }
.case-card[href$="ai-diagnosis.html"] .case-title { view-transition-name: case-diag; }
.case-card[href$="sales-coach.html"] .case-title { view-transition-name: case-coach; }
.case-card[href$="ai-workbench.html"] .case-title { view-transition-name: case-workbench; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* 标题衬线：自托管子集，避免 Windows 落到宋体伪粗 */
@font-face {
  font-family: 'WF Serif';
  src: url('fonts/noto-serif-sc-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A0B0D;
  --surface: #141619;
  --surface-2: #1A1D22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #F2EFE9;
  --muted: rgba(242, 239, 233, 0.56);
  --muted-2: rgba(242, 239, 233, 0.5);
  --accent: #5B6CFF;
  --accent-soft: rgba(91, 108, 255, 0.1);
  --radius: 4px;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --font-display: 'WF Serif', 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', 'STSong', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'MiSans', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 92% 62% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 62% at 50% 0%, #000 20%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  top: -30vh;
  right: -10vw;
  width: 70vw;
  height: 70vw;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(91, 108, 255, 0.14), transparent 62%);
}

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

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

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- 顶部导航 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.topbar.is-compact {
  background: rgba(10, 11, 13, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 28px);
}

.nav a {
  position: relative;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }

.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { right: 0; }

.nav a.is-cta {
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 7px 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav a.is-cta::after { display: none; }
.nav a.is-cta:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 通用 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 22px;
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

.display {
  font-size: clamp(38px, 6.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 54ch;
}

.prose { max-width: 34em; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }

.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn--solid {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink);
}

.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.arrow { width: 19px; height: 15px; flex: 0 0 auto; }
.arrow path { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* ---------- 首页 ---------- */

.hero {
  display: grid;
  grid-template-columns: clamp(280px, 25vw, 344px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
  padding: clamp(34px, 6vw, 84px) 0 clamp(46px, 7vw, 92px);
}

.portrait { margin: 0; }

.portrait__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0) 58%, rgba(10, 11, 13, 0.32) 100%);
}

.portrait__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.8;
}

.portrait__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}

.portrait__cap span { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; }
.portrait__cap small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted-2); white-space: nowrap; }

.portrait__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* 首页数据行：三条履历量化 */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics > div { padding: 16px 18px 16px 0; }
.metrics > div + div { padding-left: 20px; border-left: 1px solid var(--line); }

.metrics dt {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.metrics dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.65;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

.hero__sign { display: none; }

.hero__body { padding-top: 4px; }

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

.directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(36px, 5vw, 56px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  background: var(--ink);
  transition: background 0.25s ease;
}

.entry:hover { background: var(--surface); }

.entry__index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.entry__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.entry__title .arrow { color: var(--muted-2); transition: transform 0.3s var(--ease), color 0.3s ease; }
.entry:hover .entry__title .arrow { transform: translateX(5px); color: var(--accent); }

.entry__note { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 内容区块 ---------- */

.block { padding: clamp(44px, 7vw, 88px) 0; }

.block__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.block__head p { color: var(--muted); margin: 0; max-width: 46ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact { padding: 26px 0 26px; background: var(--ink); }
.fact + .fact { padding-left: 26px; border-left: 1px solid transparent; }
.fact__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 10px; }
.fact__v { font-size: 15px; line-height: 1.7; color: var(--text); }

/* ---------- 观点 ---------- */

/* 观点卡片 */
.views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vcard {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: clamp(24px, 2.8vw, 34px) clamp(22px, 2.4vw, 32px) clamp(20px, 2.2vw, 26px);
  background: var(--ink);
  transition: background 0.3s ease;
}

.vcard:hover { background: var(--surface); }

.vcard__i {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.vcard__t {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.44;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.vcard__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
  max-width: 46ch;
}

.vcard__go {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  transition: color 0.3s ease;
}

.vcard__go .arrow { width: 17px; height: 13px; transition: transform 0.3s var(--ease); }
.vcard:hover .vcard__go { color: var(--accent); }
.vcard:hover .vcard__go .arrow { transform: translateX(5px); }

/* 仅在宽屏生效的手动断行 */
.vcard__br, .vcard__br-sm { display: none; }
@media (min-width: 861px) { .vcard__br { display: inline; } }
@media (max-width: 860px) { .vcard__br-sm { display: inline; } }

/* 第五条横跨整行 */
.vcard--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px clamp(24px, 3.4vw, 56px);
}

.vcard--wide .vcard__i { grid-column: 1 / -1; }
.vcard--wide .vcard__t { grid-column: 1; }
.vcard--wide .vcard__d { grid-column: 2; grid-row: 2 / span 2; max-width: none; }
.vcard--wide .vcard__go { grid-column: 1; }

/* ---------- 观点详情（弹层） ---------- */

.reader {
  width: min(760px, calc(100% - 32px));
  max-height: min(86vh, 940px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.62);
}

.reader::backdrop {
  background: rgba(6, 7, 9, 0.74);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.reader[open] {
  display: flex;
  flex-direction: column;
  animation: reader-in 0.42s var(--ease) both;
}

.reader:focus,
.reader:focus-visible { outline: none; }

.reader[open]::backdrop { animation: fade-in 0.34s ease both; }
.reader.is-closing { animation: reader-out 0.22s ease both; }
.reader.is-closing::backdrop { animation: fade-out 0.22s ease both; }

@keyframes reader-in {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes reader-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(10px) scale(0.995); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

.reader__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px 13px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.reader__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.reader__x {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.reader__x:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.reader__x svg { width: 13px; height: 13px; }
.reader__x path { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }

.reader__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(26px, 3.2vw, 44px) clamp(22px, 4vw, 44px) clamp(30px, 3vw, 40px);
}

.reader__t {
  font-size: clamp(22px, 2.6vw, 29px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  text-wrap: balance;
}

.reader__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  padding-bottom: clamp(18px, 2.2vw, 24px);
  border-bottom: 1px solid var(--line);
}

.reader__body { max-width: 62ch; }
.reader__body p { font-size: 15.5px; line-height: 1.88; color: var(--muted); margin-bottom: 1.05em; }
.reader__body p:last-child { margin-bottom: 0; }
.reader__body b { color: var(--text); font-weight: 500; }

.reader__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  border-top: 1px solid var(--line);
}

.reader__list li {
  position: relative;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.reader__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

.reader__list b { color: var(--text); font-weight: 500; }

.reader__caveat {
  position: relative;
  margin: 1.4em 0 !important;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--line-strong);
  font-size: 14px !important;
  color: var(--muted-2) !important;
}

.reader__caveat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 4px;
}

.reader__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 3vw, 22px);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.reader__foot .btn { min-height: 42px; padding: 0 18px; font-size: 13.5px; }

html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- 案例卡片 ---------- */

.case-list { display: flex; flex-direction: column; gap: clamp(20px, 2.8vw, 32px); }

.case-card {
  display: grid;
  grid-template-columns: 1.32fr minmax(0, 1fr);
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.case-card:hover { border-color: rgba(91, 108, 255, 0.42); background: #16181C; }

.case-card.is-flip { grid-template-columns: minmax(0, 1fr) 1.32fr; }
.case-card.is-flip .case-media { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.case-card.is-flip .case-body { order: 1; }

.case-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.65s ease, transform 0.65s var(--ease);
}

.js .case-media img { filter: saturate(0.6) brightness(0.62); transform: scale(1.04); }
.js .case-card.is-inview .case-media img { filter: saturate(0.94) brightness(0.84); transform: scale(1); }

.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0A0B0D;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.js .case-media::after { opacity: 0.42; }
.js .case-card.is-inview .case-media::after { opacity: 0.05; }

.case-media--ph::after { display: none; }

/* 浅底截图卡：容器铺与截图同款的暖米色，contain 时不露边 */
.case-media--light { background: #F4F0E5; }
.case-media--fit img { object-fit: contain; }

.case-media__ph {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.7;
}

.case-media__ph b {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(242, 239, 233, 0.16);
  line-height: 1;
}

.case-media__idx {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 8px;
  border-radius: 3px;
  background: rgba(8, 9, 11, 0.82);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(242, 239, 233, 0.96);
}

.case-media__idx::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.case-body {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  min-width: 0;
}

.case-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.case-title {
  font-size: clamp(25px, 2.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.case-desc { color: var(--muted); font-size: 14.5px; line-height: 1.72; }

.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.62;
}

.status--live::before { background: var(--accent); opacity: 1; }
.status--live { color: rgba(242, 239, 233, 0.78); }

.case-go { color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s ease; }
.case-card:hover .case-go { transform: translateX(5px); color: var(--accent); }

/* 卡片参数行（从详情页提炼的硬指标） */
.case-spec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--muted-2);
}

/* 带参数行的卡片：文字区上紧下松，参数与状态一起贴底 */
.case-spec { margin-top: auto; padding-top: 16px; }
.case-spec + .case-foot { margin-top: 14px; }

.case-spec li { display: flex; align-items: baseline; gap: 6px; }
.case-spec li + li { padding-left: 13px; margin-left: 13px; border-left: 1px solid var(--line-strong); }
.case-spec b { font-weight: 400; font-size: 11.5px; letter-spacing: 0.02em; color: rgba(242, 239, 233, 0.8); }

/* ---------- 案例详情 ---------- */

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 1.08fr;
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 62px) 0 clamp(34px, 5vw, 60px);
}

.detail-hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}

.detail-hero .lede { margin-bottom: 24px; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-meta div { display: flex; flex-direction: column; gap: 5px; }
.detail-meta dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); }
.detail-meta dd { margin: 0; font-size: 13.5px; color: var(--text); }

.detail-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-media img { width: 100%; height: 100%; object-fit: cover; }

.chapter { padding: clamp(34px, 5vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }

.chapter__grid {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 56px);
}

.chapter__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted-2); padding-top: 6px; }

.chapter h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.015em; margin-bottom: 18px; }

.steps { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }

.step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.step:last-child { border-bottom: 1px solid var(--line); }
.step__i { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); padding-top: 4px; }
.step h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* 核心经历：编号 / 标题+说明 / 关键词 */
.exp { margin-top: 26px; border-top: 1px solid var(--line); }

.exp__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 152px;
  gap: 22px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.exp__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.exp h3 {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  margin-bottom: 8px;
}

.exp p { font-size: 14.5px; line-height: 1.78; color: var(--muted); margin: 0; max-width: 54ch; }

.exp__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-align: right;
}

/* 收束句 */
.creed {
  margin: 36px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
}

.chapter .directory { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* 技术链路：环节 / 做法 / 技术，三列对照，比步骤条更紧凑 */
.stack { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }

.stack li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 128px;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.stack__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text); }
.stack__v { font-size: 14px; line-height: 1.72; color: var(--muted); }
.stack__t { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--muted-2); text-align: right; }

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: clamp(34px, 5vw, 60px) 0 0;
}

.callout strong { display: block; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; margin-bottom: 6px; letter-spacing: -0.015em; }
.callout span { font-size: 14px; color: var(--muted); }

/* ---------- 详情页 · 文字优先首屏 ---------- */

.detail-hero--stack {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(22px, 3.2vw, 34px);
}

.detail-hero--stack h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.detail-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--muted-2);
  margin: -6px 0 20px;
}

/* ---------- 界面截图轮播 ---------- */

.shots { margin: clamp(6px, 1.6vw, 18px) 0 clamp(34px, 5vw, 56px); scroll-margin-top: 84px; }

.shots__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.shots__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.shots__count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); }
.shots__count b { font-weight: 400; color: var(--text); }
.shots__count span { opacity: 0.55; }

.shots__viewport {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius);
}

.shots__viewport::-webkit-scrollbar { display: none; }
.shots__viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shot {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.shot__frame {
  aspect-ratio: 1.9 / 1;
  background: #F3F4F6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.shot__cap {
  display: flex;
  gap: 11px;
  padding: 13px 2px 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--muted);
}

.shot__cap span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 3px;
  flex: 0 0 auto;
}

.shots__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.shots__btns { display: flex; gap: 8px; }

.shots__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.shots__btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.shots__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shots__btn:disabled { opacity: 0.26; cursor: default; }
.shots__btn svg { width: 18px; height: 14px; }
.shots__btn svg path { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.shots__dots { display: flex; align-items: center; gap: 6px; margin-left: 8px; }

.shots__dots button {
  position: relative;
  width: 24px;
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(242, 239, 233, 0.18);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s var(--ease);
}

.shots__dots button::before { content: ""; position: absolute; inset: -14px -3px; }
.shots__dots button[aria-current="true"] { width: 36px; background: var(--accent); }
.shots__dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.shots__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.shots__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  line-height: 1.85;
  color: var(--muted-2);
}

/* ---------- 详情页 · 场景与限制 ---------- */

.sub-h {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  margin: clamp(28px, 3.6vw, 40px) 0 0;
}

.scenes { list-style: none; padding: 0; margin: 14px 0 0; }

.scenes li {
  position: relative;
  padding: 13px 0 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

.scenes li:last-child { border-bottom: 1px solid var(--line); }
.scenes li::before { content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 1px; background: var(--accent); }
.scenes b { color: var(--text); font-weight: 500; margin-right: 5px; }

/* 使用示例：左标题右叙述 */
.examples { margin-top: 14px; border-top: 1px solid var(--line); }

.examples > div {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.examples h3 {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
  margin: 0;
  padding-top: 1px;
}

.examples p { font-size: 14.5px; line-height: 1.75; color: var(--muted); margin: 0; }

/* ---------- 在线咨询 ---------- */

.plans,
.contact-grid {
  display: grid;
  gap: 1px;
  margin-top: clamp(24px, 3vw, 34px);
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); }
.plans > *,
.contact-grid > * { background: var(--ink); padding: clamp(20px, 2.4vw, 30px); }

.plan { display: flex; flex-direction: column; gap: 11px; }

.plan__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.plan__t {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: 700;
  line-height: 1.4;
}

.plan__d { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--muted); }

.plan__meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: auto 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.plan__meta div { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.6; }
.plan__meta dt {
  flex: 0 0 auto;
  min-width: 30px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.plan__meta dd { margin: 0; color: var(--text); }

.ask__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--muted-2);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  transition: border-color 0.25s ease;
}

.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }

.ask__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ask__foot .meta { max-width: 26em; line-height: 1.7; }
.ask__note { margin: 14px 0 0; font-size: 12.5px; color: var(--accent); }

.chan {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chan__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted-2); }
.chan__v { font-family: var(--font-mono); font-size: 17px; letter-spacing: 0.02em; color: var(--text); word-break: break-all; }
.chan__row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.mini-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 案例翻页 ---------- */

.casenav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: clamp(34px, 4vw, 54px);
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.casenav__i {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 4px 22px;
  background: var(--ink);
  transition: background 0.3s ease;
}

.casenav__i:hover { background: var(--surface); }
.casenav__i--next { text-align: right; padding-right: 4px; }

.casenav__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  transition: color 0.3s ease;
}

.casenav__t {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.casenav__i:hover .casenav__k { color: var(--accent); }

.reader__rel {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-2);
}

.reader__rel a {
  color: var(--text);
  border-bottom: 1px solid rgba(91, 108, 255, 0.55);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.reader__rel a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 首页 · 精选案例与观点 ---------- */

.picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pick {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  transition: background 0.3s ease;
}

.pick:hover { background: var(--surface); }

.pick__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.pick__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.72);
  transition: filter 0.55s ease, transform 0.6s var(--ease);
}

.pick:hover .pick__media img { filter: saturate(0.96) brightness(0.94); transform: scale(1.02); }

.pick__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 22px;
}

.pick__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.pick__t {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.pick__d {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.picks__more { margin: 18px 0 0; }
.picks__more a { transition: color 0.25s ease; }
.picks__more a:hover { color: var(--text); }

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 26px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 26px;
  background: var(--ink);
  transition: background 0.3s ease;
}

.quote:hover { background: var(--surface); }

.quote__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.quote__t {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.008em;
}

.quote__d { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- 页脚 ---------- */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 90px);
  padding: 26px 0 34px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__nav a {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.footer a:hover { color: var(--text); }

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 288px minmax(0, 1fr); }
  .case-card { grid-template-columns: 1fr; min-height: 0; }
  .case-card.is-flip { grid-template-columns: 1fr; }
  .case-card.is-flip .case-media { order: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .case-card.is-flip .case-body { order: 0; }
  .case-media { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; }
  .detail-hero { grid-template-columns: 1fr; }
  .chapter__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  /* 移动端：先给标题，照片退到导语之后，保证首屏能读到主张 */
  .hero { display: flex; flex-direction: column; gap: 0; padding-top: 22px; }
  .hero__body { display: contents; }
  .hero .eyebrow { order: 1; margin-bottom: 15px; }
  .hero .display { order: 2; }
  .hero .lede { order: 3; margin-top: 16px !important; }
  .portrait { order: 4; width: min(240px, 62%); margin: 26px 0 0; }
  .portrait__frame { aspect-ratio: 3 / 4; }
  .portrait__img { object-position: 50% 26%; }
  .hero .metrics { order: 5; margin-top: 28px; }
  .hero .hero__actions { order: 6; margin-top: 26px; }
  .hero__sign {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted-2);
  }
  .hero__sign span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
  }
  .picks { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .directory { grid-template-columns: 1fr; }
  .views { grid-template-columns: 1fr; }
  .vcard--wide { display: flex; }
  .vcard__d { max-width: none; }
  .block__head { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .view { grid-template-columns: 1fr; gap: 10px; }
  .view__num { padding-top: 0; }
  .plans, .contact-grid { grid-template-columns: 1fr; }
  .ask__grid { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
  .examples > div { grid-template-columns: 1fr; gap: 8px; }
  .stack li { grid-template-columns: 74px minmax(0, 1fr); gap: 6px 18px; }
  .stack__t { grid-column: 2; text-align: left; }
  .exp__item { grid-template-columns: 30px minmax(0, 1fr); gap: 6px 16px; padding: 20px 0; }
  .exp__tag { grid-column: 2; text-align: left; }
  .chapter .directory { grid-template-columns: 1fr; }
}

@media (min-width: 861px) {
  .shots__hint { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .topbar { gap: 10px; padding: 12px var(--pad); }
  .brand { font-size: 18px; }
  .nav { gap: 13px; }
  .nav a { font-size: 12.5px; }
  .nav a.is-cta { padding: 6px 10px; }
  .display { font-size: clamp(34px, 9.4vw, 44px); }
  .case-body { padding: 20px 20px 22px; }
  .case-foot { flex-wrap: wrap; }
  .detail-hero { padding-top: 20px; }
  .detail-hero--stack h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .case-spec { gap: 6px 0; font-size: 10px; }
  .detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .shots__btns { display: none; }
  .shots__hint { order: -1; }
  .shots__dots { margin-left: auto; }
  .shot__frame { aspect-ratio: 1.82 / 1; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
  }
  .metrics > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .metrics dt { font-size: 18px; }
  .metrics dd { margin: 0; font-size: 10px; letter-spacing: 0.03em; text-align: right; }
  .creed { margin-top: 30px; padding-left: 16px; }
  .reader { width: calc(100% - 18px); max-height: 90vh; }
  .reader__bar { padding: 10px 10px 10px 16px; }
  .reader__scroll { padding: 24px 18px 26px; }
  .reader__foot { padding: 12px 14px; gap: 8px; }
  .reader__foot .btn { flex: 1 1 auto; justify-content: center; }
  .reader__body p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .case-media img { filter: none; transform: none; }
  .js .case-media::after { opacity: 0; }
}

@media (max-width: 400px) {
  .topbar { gap: 8px; padding: 12px 16px; }
  .brand { font-size: 17px; gap: 7px; }
  .nav { gap: 7px; margin-left: auto; }
  .nav a { font-size: 11.5px; letter-spacing: 0; padding: 9px 0; }
  .nav a.is-cta { padding: 8px 9px; }
  .portrait__cap { flex-wrap: wrap; gap: 2px 10px; }
  .portrait__cap small { white-space: normal; }
}
