/* =========================================================================
   NullTech_EndBlue — editorial artist site
   paper / grid / electric blue / sans titles / plain image grids
   ========================================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f7f7f6;
  --paper-3: #efefed;
  --ink: #151515;
  --ink-soft: #4a4a48;
  --muted: #7b7b78;
  --line: #e4e4e1;
  --line-strong: #c9c9c4;
  --accent: #1a56e0;
  --accent-soft: #e7edfc;
  --maxw: 1160px;
  --gutter: clamp(24px, 3.2vw, 56px);
  /* ---------- 字体接口 ---------- */
  --sans: "Inter", "Segoe UI", "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-nav: var(--sans);   /* 导航字体：想换字体改这里 */
  --weight-nav: 600;         /* 导航字重：太单薄就加到 600 */
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);

  /* ---------- 字号接口：只改这一段 ---------- */
  --fs-brand: 35px;        /* 左上角品牌名 */
  --fs-brand-sub: 20px;    /* 品牌名后的小字 END BLUE */
  --fs-nav: 20px;          /* 顶部导航 */
  --fs-body: 17px;         /* 正文 */
  --fs-micro: 16px;        /* 小标签 / 日期 / 编号 */
  --fs-small: 13px;        /* 次要说明、页脚 */
  --fs-hero: clamp(2.3rem, 3.8vw, 3.9rem);   /* 首页名字 */
  --fs-alias: 15px;      /* 首页名字下的别名 */
  --fs-intro: 23px;      /* 首页简介 */
  --fs-section: clamp(1.85rem, 2.8vw, 2.5rem); /* 区块标题 */
  --fs-page: clamp(2.15rem, 3.4vw, 3rem);      /* 内页标题 */
  --fs-post: clamp(1.9rem, 3.2vw, 2.6rem);     /* 文章标题 */
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  background: #cfe4f2 url('../images/bg.jpg') center / cover no-repeat fixed;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  font-size: 14.5px;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
}
.site-header__inner {
  max-width: none;
  margin-inline: auto;
  padding: 22px clamp(24px, 3.2vw, 64px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
  font-family: var(--sans);
  font-size: var(--fs-brand);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.brand span {
  font-family: var(--mono);
  font-size: var(--fs-brand-sub);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  font-family: var(--font-nav);
  font-size: var(--fs-nav);
  font-weight: var(--weight-nav);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { font-weight: 600; }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 14px; height: 1px; background: var(--ink); transition: transform 0.25s var(--ease); }
.nav--open .nav-toggle span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav--open .nav-toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
  border-top: 1px solid var(--line);
}
.nav-mobile a {
  padding: 12px 0;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav--open .nav-mobile { display: flex; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 6.4vw, 104px) var(--gutter) clamp(56px, 7.4vw, 116px);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

.sheet {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--paper);
  border-inline: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

/* inner pages start with a window onto the fixed photo */
.is-page .sheet::before,
.is-post .sheet::before {
  content: "";
  display: block;
  height: clamp(100px, 10vw, 150px);
  background: url('../images/bg.jpg') center 42% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero__card {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: none;
}

.hero__body { min-width: 0; align-self: center; }
.hero .eyebrow { color: var(--accent); margin-bottom: 18px; }
.hero h1 {
  font-family: var(--sans);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: break-word;
}
.hero .alias {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero .role {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: var(--fs-alias);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  line-height: 1.6;
}
.hero .intro {
  margin-top: 20px;
  max-width: 42ch;
  font-size: var(--fs-intro);
  line-height: 1.95;
  color: var(--ink-soft);
}

.hero__portrait { border: 1px solid var(--line); align-self: center; }
.hero__portrait img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* technical nameplate under the intro */


/* ---------- sections ---------- */

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.section--paper { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  margin-bottom: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--line-strong);
  padding-top: 11px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-head .idx {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.section-head .en {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.section-head .sh-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}
.section-head .meta {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.section-title {
  font-family: var(--sans);
  font-size: var(--fs-section);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.section-lede {
  margin: 6px 0 30px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- works ---------- */

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px) clamp(14px, 1.8vw, 22px);
  background: transparent;
  border: 0;
}
.work { min-width: 0; display: flex; flex-direction: column; }
.work__cover {
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 1 / 1;
}
.work__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.3s var(--ease); }
.work__cover:hover img { transform: scale(1.025); opacity: 0.92; }

.work__meta { padding: 11px 0 0; }
.work__title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.work__title span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-left: 6px;
}
.work__line {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.work__roles {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.work__note {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 34ch;
}

.works-more { text-align: center; margin-top: clamp(30px, 4vw, 44px); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: #fff; }
.btn--small { padding: 7px 16px; font-size: 14px; }

/* ---------- journal ---------- */

.journal { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line); }
.post-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 22px;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease), color 0.2s var(--ease);
}
.post-row:hover { padding-left: 10px; }
.post-row time {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.post-row__title {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.55;
}
.post-row:hover .post-row__title { color: var(--accent); }
.post-row__excerpt {
  grid-column: 2 / 3;
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}
.post-row__arrow {
  justify-self: end;
  font-size: 15.5px;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}
.post-row:hover .post-row__arrow { transform: translate(3px, -3px); color: var(--accent); }

/* ---------- skills / services ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
}
.skill { border-top: 1px solid var(--ink); padding-top: 18px; }
.skill .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.skill h3 {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.skill h3 span {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.skill p { margin-top: 12px; font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }
.skill ul { margin-top: 14px; }
.skill li {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.skill .price {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- links strip ---------- */

.linkline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 16px;
}
.linkline a { color: var(--ink-soft); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.linkline a:hover { color: var(--accent); border-color: var(--accent); }
.linkline span { color: var(--line-strong); font-size: 13px; }

.linklist {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 1px solid var(--line);
}
.linklist a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), padding 0.25s var(--ease);
}
.linklist a:hover { color: var(--accent); padding-left: 6px; }
.linklist small {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- footer ---------- */

/* ---------- page head ---------- */

.page-head {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 66px) var(--gutter) clamp(26px, 3.4vw, 38px);
  border-bottom: 1px solid var(--line);
}
.datum {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-top: 1px solid var(--line-strong);
  padding-top: 11px;
}
.datum .idx { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.1em; color: var(--accent); }
.datum .en { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.datum .sh-rule { flex: 1; height: 1px; background: var(--line); align-self: center; }
.datum .meta { font-family: var(--mono); font-size: var(--fs-micro); color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-head h1 {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: var(--fs-page);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.page-head .count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 0.06em;
}
.page-intro {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}
.page-intro p { margin: 0; }

.page-head .lede {
  max-width: 56ch;
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- filter ---------- */

.filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: clamp(24px, 3.4vw, 36px);
}
.filter button {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter button:hover { color: var(--ink); }
.filter button.is-active { color: var(--ink); border-color: var(--accent); }
.work.is-hidden { display: none; }
.work--filler {
  background: var(--paper-2);
  justify-content: flex-end;
  min-height: 100%;
}
.work--filler .work__meta { padding: 20px; }
.work--filler .work__line { color: var(--accent); }

/* ---------- article ---------- */

.post-head {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(44px, 5.4vw, 72px) var(--gutter) clamp(22px, 2.8vw, 32px);
  border-bottom: 1px solid var(--line);
}
.post-head .datum { margin-bottom: 4px; }
.post-head .datum .meta { display: inline; }
.post-head .datum a { color: var(--accent); }
.post-head h1 {
  margin: 18px 0 0;
  font-family: var(--sans);
  font-size: var(--fs-post);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.post-head .lede {
  max-width: 52ch;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}
.tags {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
}
.tags a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.tags a:hover { color: var(--accent); border-color: var(--accent); }

.post-cover { max-width: 820px; margin: 30px auto 0; padding: 0 var(--gutter); }
.post-cover img { border: 1px solid var(--line); }

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 44px) var(--gutter) 0;
}

.post-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 44px) var(--gutter) clamp(52px, 7vw, 80px);
}
.post-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-cta p { font-size: 15.5px; color: var(--ink-soft); }
.prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.prevnext a {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
.prevnext a:hover { color: var(--accent); }
.prevnext span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.prevnext strong { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.6; }
.prevnext .next { text-align: right; align-items: flex-end; }

/* ---------- prose ---------- */

.prose {
  font-size: 18px;
  line-height: 2;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  margin-top: 2.4em;
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.prose h3 { margin-top: 2em; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.prose p { margin-top: 1.3em; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin-block: 2em;
  padding: 6px 0 6px 22px;
  border-left: 2px solid var(--accent);
  font-family: var(--sans);
  font-size: 1em;
  line-height: 1.85;
  color: var(--ink-soft);
}
.prose code {
  font-size: 0.86em;
  padding: 2px 6px;
  background: var(--paper-2);
  color: var(--ink);
}
.prose pre {
  padding: 20px 22px;
  background: #1c1d22;
  color: #e6e4de;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.8;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border: 1px solid var(--line); margin-block: 1.8em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.prose pre .hljs-comment, .prose pre .hljs-quote { color: #8a8b93; font-style: italic; }
.prose pre .hljs-keyword, .prose pre .hljs-selector-tag, .prose pre .hljs-built_in { color: #8fa1ff; }
.prose pre .hljs-string, .prose pre .hljs-attr, .prose pre .hljs-template-variable { color: #cfd9a8; }
.prose pre .hljs-number, .prose pre .hljs-literal { color: #b8c7ff; }
.prose pre .hljs-title, .prose pre .hljs-section { color: #fff; font-weight: 600; }
.prose pre .hljs-variable, .prose pre .hljs-params { color: #d7d6d0; }

/* ---------- services page ---------- */

.service-list { border-top: 1px solid var(--ink); }
.svc {
  display: grid;
  grid-template-columns: 70px minmax(0, 0.9fr) minmax(0, 1.1fr) 150px;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(26px, 3.6vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.svc .num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.svc h2 {
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.svc h2 span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc .lead { margin-top: 12px; font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }
.svc .body p { font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }
.tick-list { margin-top: 14px; }
.tick-list li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.tick-list li::before { content: "— "; color: var(--line-strong); }
.svc .aside { text-align: right; }
.svc .price { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink); }
.svc .turn { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.svc .note { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.svc .aside .btn { margin-top: 16px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}
.step { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; }
.step h3 { margin-top: 8px; font-family: var(--sans); font-size: 0.95rem; font-weight: 550; color: var(--ink); }
.step p { margin-top: 6px; font-size: 14.5px; line-height: 1.85; color: var(--muted); }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  color: var(--ink-soft);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: var(--mono); font-size: 15.5px; color: var(--accent); transition: transform 0.2s var(--ease); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 15px; line-height: 1.9; color: var(--muted); max-width: 62ch; }

.contact {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.contact .eyebrow { color: var(--accent); }
.contact h2 {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.4;
}
.contact p { max-width: 42ch; margin: 12px auto 0; font-size: 15.5px; color: var(--muted); line-height: 1.9; }
.contact .btn { margin-top: 22px; }
.contact .meta { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}
.about-grid .prose { font-size: 17.5px; }
.about-aside { border-top: 1px solid var(--ink); padding-top: 18px; }
.aside-block + .aside-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.aside-block h3 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 8px;
}
.aside-block p, .aside-block li { font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.aside-block ul li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.aside-block ul li:last-child { border-bottom: 0; }
.aside-block a { color: var(--accent); }

.credits { margin-top: 2.4em; }
.credit-list { margin-top: 12px; border-top: 1px solid var(--line); }
.credit-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.credit-year { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- links page ---------- */

.friend-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 1px solid var(--ink);
}
.friend-card {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), padding 0.25s var(--ease);
}
.friend-card:hover { color: var(--accent); padding-left: 6px; }
.friend-card .top { display: flex; align-items: baseline; gap: 10px; }
.friend-card h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 550; letter-spacing: -0.01em; color: var(--ink); }
.friend-card h2 span { font-size: 13px; color: var(--muted); }
.friend-card p { margin-top: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.friend-card:hover h2 { color: var(--accent); }

.collab-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--ink); }
.collab-list li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.collab-list b { font-family: var(--sans); font-weight: 550; font-size: 0.95rem; color: var(--ink); }

/* ---------- archive ---------- */

.arch-year { margin-bottom: 34px; }
.arch-year__num {
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
}
.arch-list { border-top: 1px solid var(--line); }
.arch-list a {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 0.8fr) 18px;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease), color 0.2s var(--ease);
}
.arch-list a:hover { padding-left: 8px; color: var(--accent); }
.arch-list time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.arch-list__title { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.arch-list a:hover .arch-list__title { color: var(--accent); }
.arch-list__excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; }
.arch-list__arrow { justify-self: end; font-size: 14.5px; color: var(--muted); }

.pager {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 13px;
}
.pager a { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; color: var(--ink-soft); }
.pager a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 404 ---------- */

.lost {
  padding: clamp(80px, 14vw, 150px) var(--gutter);
  text-align: center;
}
.lost .eyebrow { color: var(--accent); }
.lost h1 {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.3;
}
.lost p { max-width: 36ch; margin: 14px auto 0; font-size: 15.5px; color: var(--muted); }
.lost .btn { margin-top: 24px; }

/* ---------- reveal ---------- */

.js .reveal-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal-up.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1280px) {
  .svc { grid-template-columns: 54px minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .svc .aside {
    grid-column: 2 / -1;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    align-items: baseline;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .svc .aside .note { flex: 1 1 240px; margin-top: 0; }
  .svc .aside .btn { margin-top: 0; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero__card { grid-template-columns: minmax(0, 1fr); }
  .hero__portrait { max-width: 190px; margin: 6px auto 0; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .svc { grid-template-columns: 54px minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .svc .aside { grid-column: 2 / -1; text-align: left; display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
  .svc .aside .btn { margin-top: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .arch-list a { grid-template-columns: 52px minmax(0, 1fr) 16px; }
  .arch-list__excerpt { display: none; }
}

@media (max-width: 640px) {
  :root { --fs-body: 17.5px; --fs-hero: 2.1rem; }
  .hero { padding: 26px var(--gutter) 46px; }
  .hero__card { padding: 26px 22px; }
  .works, .skills, .friend-cards, .linklist { grid-template-columns: minmax(0, 1fr); }
  .linklist { gap: 0; }
  .post-row { grid-template-columns: 74px minmax(0, 1fr) 18px; gap: 12px; }
  .post-row__excerpt { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: 36px minmax(0, 1fr); }
  .svc .body, .svc .aside { grid-column: 2 / -1; }
  .prevnext { grid-template-columns: minmax(0, 1fr); }
  .prevnext .next { text-align: left; align-items: flex-start; }
  .collab-list li { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
  .site-footer .fine { flex-direction: column; gap: 6px; }
}

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


/* ---------- desktop scale ---------- */

/* 4-up cover sheet once the column can hold it */
@media (min-width: 1200px) {
  .works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journal { max-width: 940px; }
}
.work--filler { display: none; }
@media (max-width: 1099px) {
}

@media (min-width: 1440px) {
  :root { --fs-body: 18.5px; }
  .hero__card { max-width: 940px; }
  .section { padding: 96px 0; }
  .section-title { font-size: 2.5rem; }
}

@media (min-width: 1920px) {
  :root { --fs-body: 19px; }
  .hero__card { max-width: 980px; }
  .journal { max-width: 980px; }
}

@media (min-width: 2400px) {
  :root { --fs-body: 19.5px; }
  .hero__card { max-width: 1000px; }
}

/* short + very wide: tighten vertical rhythm */
@media (min-aspect-ratio: 21/9) and (min-width: 1900px) {
  .hero { padding-top: 52px; padding-bottom: 62px; }
  .section { padding: 76px 0; }
  .works-more { margin-top: 28px; }
  .section-head { margin-bottom: 26px; }
  .section-lede { margin-bottom: 24px; }
}


/* ---------- works column policy ---------- */
@media (min-width: 1200px) {
  .works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work--filler { display: none; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work--filler { display: flex; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work--filler { display: none; }
}
@media (max-width: 640px) {
  .works { grid-template-columns: minmax(0, 1fr); }
  .work--filler { display: none; }
}


/* ---------- grouped works ---------- */
.subhead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 46px 0 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.subhead span {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-list { border-top: 1px solid var(--line); }
.work-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s var(--ease), color 0.2s var(--ease);
}
.work-list a:hover { padding-left: 8px; }
.work-list .t { font-size: 1rem; font-weight: 500; color: var(--ink); }
.work-list a:hover .t { color: var(--accent); }
.work-list .m { font-family: var(--mono); font-size: var(--fs-micro); color: var(--muted); }
.work-list .r { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-align: right; }

.mastering-list { max-width: 620px; }
.mastering-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s var(--ease);
}
.mastering-card:hover { border-color: var(--line-strong); }
.mastering-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); }
.mastering-card__body h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.mastering-card__body h3 span { font-family: var(--mono); font-size: var(--fs-micro); color: var(--muted); margin-left: 8px; letter-spacing: 0.02em; }
.mastering-card__body .meta { margin-top: 4px; font-family: var(--mono); font-size: var(--fs-micro); color: var(--accent); letter-spacing: 0.04em; }
.mastering-card__body .note { margin-top: 6px; font-size: 0.9rem; line-height: 1.7; color: var(--ink-soft); }

.work-group + .work-group { margin-top: clamp(40px, 5vw, 64px); }

@media (max-width: 640px) {
  .work-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .work-list .r { text-align: left; }
  .mastering-card { grid-template-columns: minmax(0, 1fr); }
  .mastering-card img { max-width: 180px; }
}


.works--circle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .works--circle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .works--circle { grid-template-columns: minmax(0, 1fr); } }

.works--mastering { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1099px) { .works--mastering { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .works--mastering { grid-template-columns: minmax(0, 1fr); } }


.about-grid { margin-top: 26px; }
#links .friend-cards { margin-top: 8px; }
#links .collab-list { margin-top: 24px; }


/* ---------- works: two-column vertical list, small covers ---------- */
.works,
.works--circle,
.works--mastering {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px) clamp(28px, 4vw, 56px);
}
.work {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.work__cover { width: 132px; height: 132px; }
.work__meta { padding: 0; }
.work__title { font-size: 1.12rem; line-height: 1.35; }
.work__line { font-size: 13px; margin-top: 3px; }
.work__roles { font-size: 12.5px; margin-top: 4px; }
.work__note { margin-top: 6px; font-size: 15px; line-height: 1.65; max-width: 40ch; }

@media (min-width: 1600px) {
  .work { grid-template-columns: 150px minmax(0, 1fr); }
  .work__cover { width: 150px; height: 150px; }
}

@media (max-width: 900px) {
  .works, .works--circle, .works--mastering { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .work__cover { width: 120px; height: 120px; }
}


/* ---------- full-bleed friends + horizontal footer ---------- */
.friends-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 76px) 0;
}
.friends-band__inner { padding: 0 clamp(24px, 3.2vw, 64px); }
.friends-band .section-head { border-top: 0; padding-top: 0; margin-bottom: 14px; }
.site-footer {
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  flex-wrap: wrap;
  padding: 26px clamp(24px, 3.2vw, 64px);
  font-size: 12.5px;
  color: var(--muted);
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.footer__meta a { color: var(--muted); border-bottom: 1px solid var(--line); }
.footer__meta a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__right { align-self: flex-end; }
}



.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.person-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.2s var(--ease);
}
.person-card:hover { border-color: var(--line-strong); }
.person-card__head { display: flex; align-items: flex-start; gap: 10px; }
.person-card .avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
}
.person-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-card .initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}
.person-card .name { font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.person-card .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.person-card .links a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 3px 7px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.person-card .links a:hover { color: var(--accent); border-color: var(--accent); }

.contact-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-panel .label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.big-link {
  display: inline-block;
  padding-bottom: 4px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.big-link:hover { color: var(--accent); border-color: var(--accent); }


/* ---------- home: alternating blocks with sky gaps ---------- */
.is-home .sheet {
  max-width: none;
  background: transparent;
  border: 0;
}
.is-home .sheet > main > .section,
.is-home .sheet > main > .friends-band {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 30px auto;
  border: 1px solid var(--line);
  background: var(--paper);
}
.is-home .sheet > main > .section--paper { background: var(--paper-2); }
.is-home .sheet > main > .friends-band {
  background: var(--paper-2);
  padding: clamp(44px, 6vw, 76px) 0;
}
@media (max-width: 640px) {
  .is-home .sheet > main > .section,
  .is-home .sheet > main > .friends-band { margin: 18px auto; }
}

.footer__right { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- friends: horizontal scroller ---------- */
.friends-scroller {
  margin: 26px calc(-1 * clamp(24px, 3.2vw, 64px)) 0;
  padding: 0 clamp(24px, 3.2vw, 64px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scroll-behavior: auto;
}
.friends-scroller::-webkit-scrollbar { display: none; }
.friends-scroller.is-dragging { cursor: grabbing; }
.friends-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-auto-columns: 250px;
  gap: 16px;
  width: max-content;
  padding-bottom: 2px;
}
.friends-track .person-card {
  width: 250px;
}
.person-card.is-placeholder {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.55);
}
.person-card.is-placeholder .name { color: var(--muted); }
@media (max-width: 640px) {
  .friends-track { grid-auto-columns: 210px; }
  .friends-track .person-card { width: 210px; }
}

.work__links { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 8px; }
.work__links a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.work__links a:hover { border-bottom-color: var(--accent); }


/* ---------- language switcher ---------- */
.lang-switch { position: relative; display: flex; align-items: center; }
.lang-switch__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-switch__btn:hover { color: var(--ink); background: rgba(21, 21, 21, 0.06); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.1);
}
.lang-menu[hidden] { display: none; }
.lang-menu__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.lang-menu__item:hover { background: var(--paper-2); color: var(--ink); }
.lang-menu__item.is-current { color: var(--accent); }
.lang-menu__item.is-disabled { color: var(--muted); opacity: 0.45; cursor: not-allowed; }
.lang-menu__item .soon { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; }

.hero .alias .alias-seg { white-space: nowrap; }

.hero .role .role-seg { white-space: nowrap; }
.hero .role .role-sep { white-space: nowrap; }
/* 数据文件里的换行（YAML 块文本）在页面上保留 */
.hero .intro,
.section-lede,
.page-head .lede,
.work__note,
.person-card .note,
.svc .lead,
.svc .body p,
.contact p { white-space: pre-line; }

.work-group__note {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}



.work__note {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.work__links + .work__note { margin-top: 8px; }

/* 朋友卡：去掉描述，头像放大 */
.person-card { min-height: 132px; }
.person-card__head { align-items: center; gap: 14px; }
.person-card .avatar { width: 64px; height: 64px; }
.person-card .name { font-size: 1.1rem; }
@media (max-width: 640px) {
  .person-card .avatar { width: 56px; height: 56px; }
}

.contact-list { flex: 1; min-width: 0; }
.contact-method {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.contact-method:first-child { border-top: 0; padding-top: 0; }
.contact-method .label { margin: 0; font-size: var(--fs-micro); }
.contact-method .big-link { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* 首页服务卡：两列，强化标题和重点 */
.skills { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.skill { border-top: 2px solid var(--ink); padding-top: 20px; }
.skill__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.skill__en {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.skill h3 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.skill__lead {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.skill ul { margin-top: 22px; }
.skill li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 10px 0;
}
.skill li::before { content: "—"; color: var(--accent); font-family: var(--mono); }
@media (max-width: 620px) {
  .skills { grid-template-columns: minmax(0, 1fr); }
}

.skill__desc {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.skill ul { margin-top: 16px; }

/* 服务页顶部横条：白底蓝字头像 */
.page-services .sheet::before {
  background: #fff url('../images/avatar-banner.png') center / cover no-repeat;
}

.nav-back {
  margin-left: auto;
  font-family: var(--font-nav);
  font-size: var(--fs-nav);
  font-weight: var(--weight-nav);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-back:hover { color: var(--accent); }

.btn--disabled, .btn[disabled] {
  background: #e6e2da;
  border-color: #cbc5ba;
  color: var(--muted);
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}
.works-note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

/* 手机端作品卡：保持封面在左、文字在右 */
@media (max-width: 520px) {
  .work {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }
  .work__cover { width: 108px; height: 108px; }
}

/* 手机端防溢出：长标题 / 长链接不要撑宽卡片 */
.hero__card, .hero__body, .work__meta, .contact-list, .contact-method { min-width: 0; }
.work__title, .work__line, .work__note { overflow-wrap: anywhere; }

/* 窄屏头部：品牌不要换行 */
@media (max-width: 520px) {
  .site-header__inner { padding: 14px 18px; gap: 10px; }
  .brand { font-size: 1.9rem; white-space: nowrap; }
  .brand span { font-size: 0.9rem; }
}

@media (max-width: 520px) {
  .hero .role .role-seg { white-space: normal; }
  .work { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .work__cover { width: 96px; height: 96px; }
  .contact-method { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  .contact-method .big-link { font-size: 1.05rem; overflow-wrap: anywhere; }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .work { grid-template-columns: 88px minmax(0, 1fr); }
  .work__cover { width: 88px; height: 88px; }
}
