/* ============================================================
   野火传播 WILDFIRE — main.css
   纸感编辑风设计系统 · Archivo × Noto Serif SC × Noto Sans SC
   ============================================================ */

@import url("../fonts/fonts.css");

/* ---------- Tokens ---------- */
:root {
  --paper: #f4f1ea;
  --paper-2: #ece8de;
  --ink: #16130e;
  --ink-soft: #3a362e;
  --grey: #6e6a61;
  --red: #e8380d;
  --red-deep: #b92a08;
  --line: rgba(22, 19, 14, 0.16);
  --line-strong: rgba(22, 19, 14, 0.85);

  --font-latin: "Archivo", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", "Archivo", sans-serif;

  /* fluid type scale */
  --t-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --t-sm: clamp(0.82rem, 0.78rem + 0.25vw, 0.94rem);
  --t-base: clamp(0.95rem, 0.9rem + 0.35vw, 1.08rem);
  --t-lg: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  --t-xl: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  --t-2xl: clamp(1.8rem, 1.35rem + 2.2vw, 3.2rem);
  --t-3xl: clamp(2.4rem, 1.6rem + 4vw, 5rem);
  --t-4xl: clamp(3rem, 1.8rem + 6.4vw, 7.5rem);
  --t-mega: clamp(3.6rem, 1.6rem + 10vw, 12rem);

  /* fluid space */
  --sp-xs: clamp(0.4rem, 0.3rem + 0.3vw, 0.7rem);
  --sp-sm: clamp(0.7rem, 0.6rem + 0.5vw, 1rem);
  --sp-md: clamp(1.2rem, 0.9rem + 1.4vw, 2rem);
  --sp-lg: clamp(2rem, 1.4rem + 2.8vw, 3.6rem);
  --sp-xl: clamp(3rem, 2rem + 5vw, 6rem);
  --sp-2xl: clamp(4rem, 2.6rem + 8vw, 9rem);

  --wrap: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-base);
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: var(--paper); }

/* 纸张噪点 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilities ---------- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2rem, 1680px); margin-inline: auto; }

.serif { font-family: var(--font-serif); font-weight: 900; }
.en { font-family: var(--font-latin); letter-spacing: 0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-latin);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow::before {
  content: "";
  width: 2.2em;
  height: 2px;
  background: var(--red);
}
.eyebrow--red { color: var(--red); }

.sec-head { display: grid; gap: var(--sp-sm); margin-bottom: var(--sp-lg); }
.sec-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-2xl);
  line-height: 1.25;
}
.sec-title em {
  font-style: normal;
  color: var(--red);
}
.sec-en {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: var(--t-lg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--line-strong);
  opacity: 0.14;
}

/* 数字编号 */
.idx {
  font-family: var(--font-latin);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.85em 1.7em;
  font-family: var(--font-latin);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: scaleY(1); }

.btn--red { border-color: var(--red); background: var(--red); color: var(--paper); }
.btn--red::before { background: var(--ink); }
.btn--red:hover { border-color: var(--ink); }

.btn .arr { transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(0.4em); }

/* 链接下划线动画 */
.link-u {
  position: relative;
  display: inline-block;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-block: clamp(0.8rem, 0.6rem + 0.5vw, 1.15rem);
}

.logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo svg { height: clamp(30px, 2.4rem + 0.5vw, 40px); width: auto; }
.logo-word {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  line-height: 1.1;
}
.logo-word small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  color: var(--grey);
  margin-top: 0.15em;
}

.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.2rem); }
}
.main-nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  padding-block: 0.3em;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.35s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { font-weight: 700; }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  z-index: 130;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: var(--paper); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: var(--paper); }

/* 移动端全屏菜单 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0s 0.6s;
}
body.nav-open .mobile-menu {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.6s var(--ease), visibility 0s;
}
.mobile-menu a {
  display: block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.5;
  padding-inline: 0.2rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobile-menu a:hover { color: var(--red); }
body.nav-open .mobile-menu a { opacity: 1; transform: none; }
body.nav-open .mobile-menu a:nth-child(1) { transition-delay: 0.15s; }
body.nav-open .mobile-menu a:nth-child(2) { transition-delay: 0.21s; }
body.nav-open .mobile-menu a:nth-child(3) { transition-delay: 0.27s; }
body.nav-open .mobile-menu a:nth-child(4) { transition-delay: 0.33s; }
body.nav-open .mobile-menu a:nth-child(5) { transition-delay: 0.39s; }
body.nav-open .mobile-menu a:nth-child(6) { transition-delay: 0.45s; }
body.nav-open .mobile-menu a:nth-child(7) { transition-delay: 0.51s; }
.mobile-menu .mm-meta {
  margin-top: 2.4rem;
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  color: rgba(244, 241, 234, 0.55);
  opacity: 0;
  transition: opacity 0.5s 0.6s;
}
body.nav-open .mobile-menu .mm-meta { opacity: 1; }

/* ---------- 页面过渡 & 滚动显现 ---------- */
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
main { animation: pageIn 0.7s ease both; }

.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

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

/* ---------- Hero（首页） ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 5rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.06);
  animation: heroZoom 2.4s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.16); } to { transform: scale(1.06); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22,19,14,0.42) 0%, rgba(22,19,14,0.12) 40%, rgba(22,19,14,0.82) 100%);
}
.hero-in {
  color: var(--paper);
  padding-block: var(--sp-xl) var(--sp-lg);
  display: grid;
  gap: var(--sp-md);
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-latin);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.85);
}
.hero-kicker::before {
  content: "";
  width: 3.2rem;
  height: 2px;
  background: var(--red);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-3xl);
  line-height: 1.22;
  max-width: 14em;
}
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub {
  max-width: 34em;
  font-weight: 300;
  color: rgba(244, 241, 234, 0.88);
  font-size: var(--t-lg);
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-xs); }
.hero .btn { border-color: var(--paper); }
.hero .btn:hover { color: var(--ink); }
.hero .btn::before { background: var(--paper); }
.hero .btn--red { border-color: var(--red); color: var(--paper); }
.hero .btn--red:hover { color: var(--paper); }

.hero-scroll {
  position: absolute;
  right: clamp(1.2rem, 3vw, 3rem);
  bottom: var(--sp-lg);
  display: none;
  writing-mode: vertical-rl;
  font-family: var(--font-latin);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.7);
}
@media (min-width: 768px) { .hero-scroll { display: block; } }
.hero-scroll::after {
  content: "";
  width: 1.5px;
  height: 3.4rem;
  background: var(--red);
  margin-top: 0.8rem;
  margin-inline: auto;
  animation: pulseLine 2s ease-in-out infinite;
}
@keyframes pulseLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- 跑马灯 ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 0.9rem;
  border-block: 1px solid var(--ink);
}
.marquee--red { background: var(--red); }
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: var(--t-sm);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}
.marquee--red .marquee-track span::after { background: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 通用 Section ---------- */
.section { padding-block: var(--sp-2xl); position: relative; }
.section--tight { padding-block: var(--sp-xl); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .sec-title em { color: var(--red); }
.section--ink .eyebrow { color: rgba(244, 241, 234, 0.6); }
.section--paper2 { background: var(--paper-2); }

/* 竖线网格背景 */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
@media (max-width: 767px) {
  .grid-bg { background-size: calc(100% / 2) 100%; }
}

/* ---------- 页头（内页） ---------- */
.page-hero {
  padding: calc(5rem + var(--sp-xl)) 0 var(--sp-xl);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; }
.page-hero-bg {
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: clamp(6rem, 22vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-3xl);
  line-height: 1.2;
  margin-top: var(--sp-sm);
}
.page-hero h1 em { font-style: normal; color: var(--red); }
.page-hero .lead {
  max-width: 36em;
  font-weight: 300;
  font-size: var(--t-lg);
  color: var(--ink-soft);
  margin-top: var(--sp-sm);
}
.crumb {
  font-family: var(--font-latin);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  gap: 0.8em;
}
.crumb b { color: var(--red); font-weight: 700; }

/* ---------- 首页：宣言 ---------- */
.manifesto {
  display: grid;
  gap: var(--sp-lg);
}
@media (min-width: 900px) {
  .manifesto { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; }
}
.manifesto-big {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-2xl);
  line-height: 1.6;
}
.manifesto-big em { font-style: normal; color: var(--red); }
.manifesto p + p { margin-top: 1em; }
.manifesto-body { color: var(--ink-soft); font-weight: 300; max-width: 40em; }
.manifesto-body strong { font-weight: 500; color: var(--ink); }

/* ---------- 数据带 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: var(--sp-lg) var(--sp-md);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.2rem;
  background: var(--paper);
  transition: background 0.4s var(--ease);
}
.stat:hover { background: #fff; }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) {
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}
.stat-num {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num sup {
  font-size: 0.42em;
  color: var(--red);
  margin-left: 0.12em;
}
.stat-label { font-size: var(--t-sm); color: var(--grey); letter-spacing: 0.08em; }

/* ---------- 服务列表（编号行） ---------- */
.service-rows { border-top: 1px solid var(--line-strong); }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-md);
  padding-block: var(--sp-lg);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  transition: padding-left 0.4s var(--ease);
}
@media (min-width: 900px) {
  .service-row { grid-template-columns: 6rem minmax(0, 4fr) minmax(0, 5fr) auto; align-items: baseline; }
  .service-row:hover { padding-left: 1.2rem; }
}
.service-row .num {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: var(--t-sm);
  color: var(--red);
  letter-spacing: 0.1em;
}
.service-row h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-xl);
  line-height: 1.4;
}
.service-row h3 small {
  display: block;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.55em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.35em;
}
.service-row p {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: var(--t-sm);
  line-height: 1.95;
}
.service-row .go {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--red);
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease);
  align-self: center;
}
.service-row:hover .go { transform: rotate(0deg); }

/* ---------- 案例卡片 ---------- */
.work-grid {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}
.work-card { display: block; container-type: inline-size; position: relative; }
.work-card .frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
}
.work-card:nth-child(6n + 4) .frame { aspect-ratio: 3 / 3.4; }
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  filter: saturate(0.92);
}
.work-card:hover img { transform: scale(1.05); filter: saturate(1.05); }
.work-card .tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border: 1px solid var(--ink);
}
.work-card .meta {
  display: grid;
  gap: 0.3rem;
  padding-top: var(--sp-sm);
  border-top: 2px solid var(--ink);
  margin-top: var(--sp-sm);
}
.work-card h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-xl);
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.work-card h3 .idx { font-size: 0.6em; }
.work-card .client {
  font-size: var(--t-sm);
  color: var(--grey);
  letter-spacing: 0.06em;
}
.work-card .brief {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.8;
}
@container (min-width: 480px) {
  .work-card .meta { grid-template-columns: 1fr auto; align-items: start; }
  .work-card .brief { grid-column: 1 / -1; }
}

/* 案例筛选 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-lg);
}
.filter-btn {
  font-family: var(--font-latin);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55em 1.2em;
  border: 1px solid var(--line-strong);
  transition: all 0.35s var(--ease);
}
.filter-btn:hover { background: var(--ink); color: var(--paper); }
.filter-btn.is-active { background: var(--red); border-color: var(--red); color: var(--paper); }
.work-grid .work-card.is-hidden { display: none; }

/* ---------- 案例：结果数据 ---------- */
.case-result {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244, 241, 234, 0.18);
}
@media (min-width: 768px) { .case-result { grid-template-columns: repeat(4, 1fr); } }
.case-result div {
  background: var(--ink);
  padding: var(--sp-md);
  display: grid;
  gap: 0.2rem;
}
.case-result b {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: var(--t-xl);
  color: var(--red);
}
.case-result span { font-size: var(--t-xs); color: rgba(244, 241, 234, 0.65); letter-spacing: 0.1em; }

/* ---------- 团队 ---------- */
.team-grid {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}
.team-card { position: relative; overflow: hidden; container-type: inline-size; }
.team-card .ph {
  overflow: hidden;
  aspect-ratio: 3 / 3.8;
  background: var(--paper-2);
  position: relative;
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.team-card:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1); }
.team-card .no {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--paper);
  mix-blend-mode: difference;
}
.team-card h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-lg);
  margin-top: var(--sp-sm);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}
.team-card h3 span {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  text-align: right;
}
.team-card p {
  font-size: var(--t-sm);
  color: var(--grey);
  font-weight: 300;
  line-height: 1.8;
  margin-top: 0.3em;
}

/* ---------- 新闻 ---------- */
.news-list { border-top: 1px solid var(--line-strong); }
.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-md);
  padding-block: var(--sp-lg);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
@media (min-width: 900px) {
  .news-item { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: baseline; }
}
.news-item time {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: var(--t-sm);
  color: var(--red);
  letter-spacing: 0.08em;
}
.news-item h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-xl);
  line-height: 1.5;
  transition: color 0.3s;
}
.news-item:hover h3 { color: var(--red); }
.news-item p { color: var(--ink-soft); font-weight: 300; font-size: var(--t-sm); line-height: 1.9; }
.news-item .cat {
  font-family: var(--font-latin);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid var(--line-strong);
  padding: 0.35em 0.9em;
  align-self: center;
  white-space: nowrap;
}

/* 文章页 */
.article { max-width: 46rem; margin-inline: auto; }
.article-hero-img { margin-block: var(--sp-lg); overflow: hidden; }
.article-hero-img img { width: 100%; }
.article h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-xl);
  line-height: 1.6;
  margin-top: var(--sp-lg);
}
.article p { margin-top: 1.1em; color: var(--ink-soft); font-weight: 300; }
.article p strong { font-weight: 500; color: var(--ink); }
.article blockquote {
  margin: var(--sp-md) 0;
  padding-left: var(--sp-md);
  border-left: 3px solid var(--red);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.9;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  padding-block: var(--sp-sm);
  border-block: 1px solid var(--line);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  color: var(--grey);
}
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: var(--sp-xl);
}
.article-nav a {
  background: var(--paper);
  padding: var(--sp-md);
  display: grid;
  gap: 0.3rem;
  transition: background 0.3s;
}
.article-nav a:hover { background: #fff; }
.article-nav a:last-child { text-align: right; }
.article-nav small {
  font-family: var(--font-latin);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--red);
}
.article-nav b { font-family: var(--font-serif); font-weight: 900; font-size: var(--t-base); line-height: 1.6; }

/* ---------- 客户墙 ---------- */
.client-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244, 241, 234, 0.16);
  border: 1px solid rgba(244, 241, 234, 0.16);
}
@media (min-width: 768px) { .client-wall { grid-template-columns: repeat(4, 1fr); } }
.client-wall span {
  background: var(--ink);
  display: grid;
  place-items: center;
  padding: var(--sp-md) var(--sp-sm);
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: var(--t-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.72);
  transition: color 0.3s, background 0.3s;
  text-align: center;
}
.client-wall span:hover { color: var(--paper); background: #201c15; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  gap: var(--sp-xl);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.contact-block {
  padding-block: var(--sp-md);
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 0.4rem;
}
.contact-block dt {
  font-family: var(--font-latin);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}
.contact-block dd { font-size: var(--t-lg); line-height: 1.7; }
.contact-block dd small { display: block; font-size: var(--t-sm); color: var(--grey); font-weight: 300; }
.map-frame {
  border: 1px solid var(--line-strong);
  padding: var(--sp-sm);
  background: #fff;
}
.map-frame svg { width: 100%; height: auto; display: block; }

/* ---------- CTA 大区 ---------- */
.big-cta {
  padding-block: var(--sp-2xl);
  background: var(--red);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.big-cta::before {
  content: "START A FIRE";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: clamp(4rem, 16vw, 15rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.25);
  pointer-events: none;
}
.big-cta-in {
  position: relative;
  text-align: center;
  display: grid;
  gap: var(--sp-md);
  justify-items: center;
}
.big-cta h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-2xl);
  line-height: 1.5;
}
.big-cta .btn { border-color: var(--paper); }
.big-cta .btn::before { background: var(--paper); }
.big-cta .btn:hover { color: var(--red); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: var(--sp-xl);
  position: relative;
  overflow: hidden;
}
.footer-word {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: var(--t-mega);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.28);
  user-select: none;
  margin-bottom: var(--sp-lg);
  transform: translateY(0.14em);
}
.footer-word b { color: var(--red); -webkit-text-stroke: 0; font-weight: 900; }
.footer-grid {
  display: grid;
  gap: var(--sp-lg);
  padding-block: var(--sp-lg);
  border-top: 1px solid rgba(244, 241, 234, 0.16);
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}
.footer-grid h4 {
  font-family: var(--font-latin);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-sm);
}
.footer-grid a, .footer-grid li {
  display: block;
  padding-block: 0.28em;
  font-size: var(--t-sm);
  color: rgba(244, 241, 234, 0.72);
  font-weight: 300;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.footer-grid a:hover { color: var(--paper); transform: translateX(0.3em); }
.footer-brand p { font-weight: 300; color: rgba(244, 241, 234, 0.6); font-size: var(--t-sm); max-width: 22em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-md);
  border-top: 1px solid rgba(244, 241, 234, 0.16);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  color: rgba(244, 241, 234, 0.45);
}
.footer-bottom a:hover { color: var(--paper); }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.8rem);
  transition: all 0.4s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); border-color: var(--red); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 关于页 ---------- */
.split {
  display: grid;
  gap: var(--sp-lg);
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.split .img-hold { overflow: hidden; position: relative; }
.split img { width: 100%; filter: grayscale(0.15) contrast(1.02); transition: transform 0.8s var(--ease); }
.split:hover img { transform: scale(1.03); }
.split .img-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-latin);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.6em 1.1em;
}

.timeline { border-left: 2px solid var(--line-strong); margin-left: 0.4rem; }
.tl-item { position: relative; padding: 0 0 var(--sp-lg) var(--sp-md); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.5em;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--red);
  border-radius: 50%;
}
.tl-item time {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: var(--t-lg);
  color: var(--red);
}
.tl-item h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-lg);
  margin-top: 0.2em;
}
.tl-item p { color: var(--ink-soft); font-weight: 300; font-size: var(--t-sm); line-height: 1.9; margin-top: 0.4em; max-width: 40em; }

.values-grid {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.value-card {
  border: 1px solid rgba(244, 241, 234, 0.22);
  padding: var(--sp-lg) var(--sp-md);
  position: relative;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.value-card:hover { background: #201c15; transform: translateY(-4px); }
.value-card .num {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: var(--t-xl);
  color: var(--red);
}
.value-card h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-lg);
  margin-top: 0.6rem;
}
.value-card p { color: rgba(244, 241, 234, 0.66); font-weight: 300; font-size: var(--t-sm); line-height: 1.9; margin-top: 0.6em; }

/* 服务页：能力卡 */
.cap-grid {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.cap-card {
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-sm);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.cap-card .icon { width: 44px; height: 44px; color: var(--red); }
.cap-card h3 { font-family: var(--font-serif); font-weight: 900; font-size: var(--t-lg); line-height: 1.5; }
.cap-card h3 small {
  display: block;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.56em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}
.cap-card p { font-size: var(--t-sm); color: var(--ink-soft); font-weight: 300; line-height: 1.9; }
.cap-card ul { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.4rem; }
.cap-card li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 0.25em 0.75em;
}

/* 工作流程 */
.steps { counter-reset: step; display: grid; gap: var(--sp-md); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border: 1px solid rgba(244, 241, 234, 0.22); padding: var(--sp-md); position: relative; counter-increment: step; }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: var(--t-2xl);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--red);
}
.step h3 { font-family: var(--font-serif); font-weight: 900; font-size: var(--t-lg); margin-top: 0.7rem; }
.step p { color: rgba(244, 241, 234, 0.66); font-weight: 300; font-size: var(--t-sm); line-height: 1.9; margin-top: 0.5em; }

/* ---------- 招聘条 ---------- */
.join-strip {
  display: grid;
  gap: var(--sp-sm);
  padding: var(--sp-lg);
  border: 1px dashed var(--line-strong);
  background: #fff;
}
@media (min-width: 768px) {
  .join-strip { grid-template-columns: 1fr auto; align-items: center; }
}
.join-strip h3 { font-family: var(--font-serif); font-weight: 900; font-size: var(--t-xl); }
.join-strip p { color: var(--ink-soft); font-weight: 300; font-size: var(--t-sm); }
