/* minxi.work v2 — 图为主，字很少
   ref：Feldman 项目条、moodboard 拼贴、Other° 留白
   字体：Inter Tight（正文/标签）+ Instrument Serif 斜体（标题） */

:root {
  --bg: #f4f3ef;
  --ink: #161616;
  --gray: #8b8a85;
  --line: #16161622;
  --ph-1: #dddcd6;
  --ph-2: #cfcec7;
  --ph-3: #b9b8b0;
  --ph-4: #2b2b2a;
  --gap: 10px;
  --pad: clamp(18px, 3.4vw, 48px);
  --sans: "Inter Tight", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wrap { padding-inline: var(--pad); }
.gray { color: var(--gray); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--pad); font-size: 12px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px);
}
.nav .brand { font-weight: 600; font-size: 14px; }
.nav .mid { color: var(--gray); }
.nav .links { justify-self: end; display: flex; gap: 6px; }
.nav .links a { border: 1px solid var(--ink); border-radius: 99px; padding: 3px 12px; }
.nav .links a[aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding-top: clamp(60px, 12vw, 160px); padding-bottom: clamp(48px, 7vw, 96px);
}
.hero h1 { font-size: clamp(64px, 11vw, 168px); font-weight: 500; letter-spacing: -.045em; line-height: .9; }
.hero h1 sup { font-size: .32em; font-weight: 400; vertical-align: top; position: relative; top: .25em; margin-left: .04em; }
.hero .aside { font-size: 12px; color: var(--gray); text-align: right; line-height: 1.6; }

/* ---------- 标题行 ---------- */
.head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.head h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.02em; }
.head h2 sup { font-size: 11px; font-weight: 400; margin-left: 2px; }
.big-serif { font-family: var(--serif); font-style: italic; font-size: clamp(72px, 12vw, 180px); line-height: .9; letter-spacing: -.02em; }

/* ---------- 占位画面 ---------- */
.ph { background: var(--ph-1); position: relative; overflow: hidden; }
.ph::after {
  content: attr(data-label); position: absolute; left: 10px; bottom: 8px;
  font-size: 10px; letter-spacing: .04em; color: #16161666;
}
.ph.t2 { background: var(--ph-2); } .ph.t3 { background: var(--ph-3); }
.ph.t4 { background: var(--ph-4); } .ph.t4::after { color: #f4f3ef66; }

/* ---------- 首页项目条（Feldman） ---------- */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); align-items: start; }
.proj { display: block; }
.proj .ph, .proj .img { transition: opacity .3s; }
.proj:hover .ph, .proj:hover .img { opacity: .82; }
.proj .h-a { aspect-ratio: 3 / 4; } .proj .h-b { aspect-ratio: 4 / 3.4; } .proj .h-c { aspect-ratio: 3 / 3.6; }
.proj .cap { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.proj .cap b { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: .9; }
.proj .cap span { font-size: 12px; line-height: 1.3; padding-top: 2px; }
.proj .cap span i { font-style: normal; color: var(--gray); display: block; }
.proj.soon { pointer-events: none; }
.proj.soon .cap span i::after { content: " · soon"; }

/* ---------- 拼贴网格（moodboard） ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(60px, 7vw, 110px); gap: var(--gap); }
.mosaic > * { grid-column: span 4; grid-row: span 3; }
.c3 { grid-column: span 3 !important; } .c4 { grid-column: span 4 !important; } .c5 { grid-column: span 5 !important; }
.c6 { grid-column: span 6 !important; } .c7 { grid-column: span 7 !important; } .c8 { grid-column: span 8 !important; } .c12 { grid-column: span 12 !important; }
.r2 { grid-row: span 2 !important; } .r3 { grid-row: span 3 !important; } .r4 { grid-row: span 4 !important; } .r5 { grid-row: span 5 !important; } .r6 { grid-row: span 6 !important; }

/* ---------- 区块 ---------- */
.block { padding-top: clamp(64px, 9vw, 130px); }
.label { display: flex; gap: 14px; align-items: baseline; font-size: 12px; margin-bottom: 14px; }
.label b { font-weight: 500; font-size: 13px; }
.label .gray { margin-left: auto; text-align: right; }

/* ---------- 案例页头 ---------- */
.case-top { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.case-top .no { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.case-top h1 { font-size: clamp(64px, 11vw, 168px); font-weight: 500; letter-spacing: -.045em; line-height: .88; }
.case-top .sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); margin-top: 12px; }
.case-top .meta { font-size: 12px; color: var(--gray); text-align: right; line-height: 1.7; }

/* ---------- 底部 ---------- */
.end { display: flex; justify-content: space-between; align-items: flex-end; padding-top: clamp(80px, 12vw, 180px); padding-bottom: 24px; gap: 20px; }
.end .small { font-size: 12px; color: var(--gray); line-height: 1.7; }
.end a.next { font-size: 12px; border-bottom: 1px solid; }
.foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 14px var(--pad); font-size: 11px; color: var(--gray); }

/* ---------- App / 文字页（隐私、支持） ---------- */
.doc { max-width: 720px; padding-top: clamp(40px, 6vw, 80px); padding-bottom: 100px; }
.doc h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; margin-bottom: 10px; }
.doc .updated { font-size: 12px; color: var(--gray); margin-bottom: 36px; }
.doc h2 { font-size: 15px; font-weight: 600; margin: 30px 0 8px; }
.doc p, .doc li { font-size: 14.5px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 52px 0 36px; }
.doc .en { color: #444; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; font-size: 12px; }
.subnav a { border: 1px solid var(--ink); border-radius: 99px; padding: 3px 12px; }
.subnav a[aria-current] { background: var(--ink); color: var(--bg); }

.app-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.app-hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(56px, 8vw, 120px); line-height: .9; }
.app-hero .phone {
  aspect-ratio: 9 / 19; width: min(300px, 70%); justify-self: center;
  border-radius: 42px; border: 9px solid var(--ink); overflow: hidden; position: relative;
  background: linear-gradient(180deg, #e8b4a0, #d9cfa8, #a9b8a5, #4c5a63, #1d2230);
  background-size: 100% 400%; animation: hue 24s ease-in-out infinite alternate;
}
.app-hero .phone .clock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 200; }
@keyframes hue { from { background-position: 0 0; } to { background-position: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .app-hero .phone { animation: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip .proj:first-child { grid-column: span 2; }
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 70px; }
  .mosaic > * { grid-column: span 3 !important; grid-row: span 3 !important; }
  .mosaic > .c12, .mosaic > .c8, .mosaic > .c7 { grid-column: span 6 !important; }
}
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; } .nav .mid { display: none; }
  .hero, .case-top, .app-hero { grid-template-columns: 1fr; }
  .hero .aside, .case-top .meta { text-align: left; }
  .end { flex-direction: column; align-items: flex-start; }
}
