/* =========================================================
   西垚数字 XIYAO DIGITAL — 官网样式
   设计基调：暖黑 + 宣纸白 + 朱砂红，编辑式排版，电影质感
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --ink: #14110F;
  --ink-soft: #221D19;
  --ink-line: #2E2823;
  --paper: #FAF7F2;
  --paper-2: #F3EDE3;
  --paper-3: #EDE5D8;
  --brand: #C2402A;
  --brand-deep: #8E2A1A;
  --brand-soft: #E8B4A5;
  --gold: #B08A56;
  --muted: #6E645A;
  --muted-light: #9A9086;
  --line: rgba(20, 17, 15, .12);
  --line-strong: rgba(20, 17, 15, .24);
  --line-dark: rgba(250, 247, 242, .14);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --wrap: 1240px;
  --gap: clamp(20px, 4vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }

/* 胶片颗粒质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; scroll-margin-top: 76px; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper2 { background: var(--paper-2); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
}
.section--dark .eyebrow { color: var(--muted-light); }

.display {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.28;
  letter-spacing: -.015em;
  font-weight: 600;
}
.h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.01em;
}
.lead {
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.85;
  color: var(--muted);
}
.section--dark .lead { color: rgba(250, 247, 242, .72); }
.serif-accent {
  font-family: var(--font-serif);
  font-style: normal;
  letter-spacing: .01em;
}
.art-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* Section header */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section--dark .sec-head { border-color: var(--line-dark); }
.sec-head__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--brand);
  display: block;
  margin-bottom: 18px;
}
.sec-head__side { justify-self: end; max-width: 420px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  letter-spacing: .06em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover { background: var(--brand); border-color: var(--brand); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(250, 247, 242, .4); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: .04em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: gap .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: 16px; color: var(--brand); border-color: var(--brand); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
  transition: height .4s var(--ease);
}
.header.is-solid {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header.is-solid .header__inner { height: 68px; }
.header.is-solid .brand__name,
.header.is-solid .nav__link,
.header.is-solid .header__tel { color: var(--ink); }
.header.is-solid .brand__en,
.header.is-solid .brand__sub { color: var(--muted); }
.header.is-solid .nav__link::after { background: var(--ink); }
.header.is-solid .burger span { background: var(--ink); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark path, .brand__mark rect { transition: fill .4s var(--ease); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: 18px; font-weight: 600; letter-spacing: .12em; color: var(--paper);
  transition: color .4s var(--ease);
}
.brand__en {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .28em;
  color: rgba(250, 247, 242, .6); text-transform: uppercase;
  transition: color .4s var(--ease);
}
.brand__sub { display: none; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__link {
  position: relative;
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(250, 247, 242, .82);
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--paper);
  transition: width .35s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: #fff; }
.header.is-solid .nav__link { color: var(--muted); }
.header.is-solid .nav__link:hover, .header.is-solid .nav__link.is-active { color: var(--ink); }
.header.is-solid .nav__link::after { background: var(--brand); }

.header__tel {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(250, 247, 242, .82);
  white-space: nowrap;
  transition: color .4s var(--ease);
}

.burger { display: none; width: 40px; height: 40px; position: relative; z-index: 210; }
.burger span {
  position: absolute; left: 8px; width: 24px; height: 1.5px;
  background: var(--paper); transition: transform .35s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); background: var(--ink); }
.burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); background: var(--ink); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--paper);
  padding: 110px var(--gap) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.drawer.is-open { transform: translateY(0); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  font-size: 26px; font-weight: 600; letter-spacing: .02em;
  padding-block: 16px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.drawer__link em {
  font-family: var(--font-mono); font-style: normal; font-size: 11px;
  color: var(--muted-light); letter-spacing: .1em;
}
.drawer__foot { color: var(--muted); font-size: 13px; line-height: 2; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 860px);
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--ink);
  overflow: hidden;
  color: var(--paper);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.webp");
  background-size: cover;
  background-position: 62% 45%;
  transform: scale(1.02);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1.08); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, .96) 0%, rgba(12, 10, 9, .82) 38%, rgba(12, 10, 9, .35) 68%, rgba(12, 10, 9, .55) 100%),
    linear-gradient(0deg, rgba(12, 10, 9, .95) 0%, rgba(12, 10, 9, 0) 45%);
}
.hero__inner { position: relative; width: 100%; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(250, 247, 242, .7);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero__tag i { display: block; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 86px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  max-width: 16ch;
}
.hero h1 .accent {
  font-family: var(--font-serif);
  color: var(--brand-soft);
  font-weight: 400;
}
.hero__desc {
  margin-top: clamp(22px, 2.6vw, 32px);
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.9;
  color: rgba(250, 247, 242, .74);
}
.hero__actions { margin-top: clamp(30px, 3.4vw, 44px); display: flex; flex-wrap: wrap; gap: 14px; }

.hero__side {
  position: absolute;
  right: calc(var(--gap) * .4);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .34em;
  color: rgba(250, 247, 242, .45);
  text-transform: uppercase;
}
.hero__scroll {
  position: absolute;
  right: var(--gap);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(250, 247, 242, .5);
  text-transform: uppercase;
}
.hero__scroll i { display: block; width: 1px; height: 34px; background: linear-gradient(rgba(250,247,242,.1), rgba(250,247,242,.6)); }

/* ---------- Stats band ---------- */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(28px, 3.4vw, 44px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.stat__num small { font-size: .42em; font-weight: 500; letter-spacing: .02em; color: var(--brand); }
.stat__label { margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.stat__note { margin-top: 4px; font-size: 11px; color: var(--muted-light); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 92px); align-items: start; }
.about__statement {
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.5;
  letter-spacing: -.015em;
  font-weight: 500;
}
.about__statement em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.about__body { color: var(--muted); font-size: 15.5px; line-height: 1.95; }
.about__body p + p { margin-top: 18px; }
.about__facts {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.fact {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.fact dt { color: var(--muted-light); letter-spacing: .02em; white-space: nowrap; }
.fact dd { color: var(--ink); word-break: break-word; }
.fact dd span { color: var(--muted); }

/* ---------- Business grid ---------- */
.biz {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.biz__card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(24px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.biz__card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(20,17,15,.5); }
.biz__card--photo {
  grid-column: span 3;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  color: var(--paper);
  border: 0;
  justify-content: flex-end;
}
.biz__card--photo .biz__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease);
}
.biz__card--photo:hover .biz__img { transform: scale(1.05); }
.biz__card--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,10,9,.92) 0%, rgba(12,10,9,.35) 52%, rgba(12,10,9,.05) 100%);
}
.biz__card--photo .biz__content { position: relative; z-index: 2; padding: clamp(24px, 2.4vw, 34px); }
.biz__card--photo .biz__desc { color: rgba(250,247,242,.74); }
.biz__card--photo .biz__idx { color: rgba(250,247,242,.5); border-color: rgba(250,247,242,.25); }
.biz__card--wide { grid-column: span 2; }
.biz__card--sm { grid-column: span 2; min-height: 240px; }
.biz__idx {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: var(--muted-light);
  align-self: flex-start;
  border: 1px solid var(--line);
  padding: 3px 8px;
  margin-bottom: auto;
}
.biz__title { font-size: 20px; font-weight: 600; margin-top: 26px; letter-spacing: .01em; }
.biz__en { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); margin-top: 6px; }
.biz__desc { margin-top: 14px; font-size: 14px; line-height: 1.85; color: var(--muted); }
.biz__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.biz__tags span {
  font-size: 11px; letter-spacing: .05em; color: var(--muted);
  border: 1px solid var(--line); padding: 2px 8px;
}

/* ---------- Works ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.filter {
  font-size: 13px; letter-spacing: .04em; color: var(--muted);
  padding: 8px 16px; border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--line-strong); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.work {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 2 / 3;
}
.work__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.1s var(--ease), opacity .6s var(--ease);
}
.work::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,8,7,.94) 0%, rgba(10,8,7,.55) 34%, rgba(10,8,7,0) 68%);
  transition: opacity .5s var(--ease);
}
.work:hover .work__img { transform: scale(1.06); }
.work__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(18px, 2vw, 26px);
  color: var(--paper);
}
.work__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: rgba(250,247,242,.66);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.work__meta i { width: 10px; height: 1px; background: rgba(250,247,242,.4); }
.work__title { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; line-height: 1.4; letter-spacing: .01em; }
.work__data {
  margin-top: 10px; font-size: 12.5px; color: rgba(250,247,242,.6);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s var(--ease);
}
.work:hover .work__data { max-height: 80px; opacity: 1; }
.work__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em;
  padding: 4px 9px;
  background: rgba(194, 64, 42, .92);
  color: #fff;
  text-transform: uppercase;
}
/* 末位「更多作品」卡 */
.work--more {
  background: var(--ink-soft);
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--ink-line);
}
.work--more::after { display: none; }
.work--more .work__more-inner { position: relative; z-index: 2; color: var(--paper); padding: 24px; }
.work--more .work__more-num { font-size: clamp(34px, 3.4vw, 46px); color: var(--brand-soft); line-height: 1; }
.work--more .work__more-num span { font-size: .45em; vertical-align: super; }
.work--more .work__more-label { margin-top: 8px; font-size: 12.5px; letter-spacing: .08em; color: rgba(250, 247, 242, .5); }
.work--more .work__more-link { margin-top: 28px; font-size: 15px; font-weight: 600; letter-spacing: .02em; transition: color .3s var(--ease); }
.work--more:hover .work__more-link { color: var(--brand-soft); }

/* Works list (non-photo) */
.worklist { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.worklist__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.worklist__item:hover { background: rgba(20,17,15,.03); padding-inline: 14px; }
.worklist__no { font-family: var(--font-mono); font-size: 11px; color: var(--muted-light); }
.worklist__name { font-size: 16px; font-weight: 500; }
.worklist__type { font-size: 12.5px; color: var(--muted); }
.worklist__data { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.step {
  padding: clamp(24px, 2.6vw, 36px) clamp(14px, 1.6vw, 22px) clamp(24px, 2.6vw, 36px) 0;
  border-right: 1px solid var(--line-dark);
  position: relative;
}
.step:last-child { border-right: 0; }
.step__no {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  color: var(--brand-soft); display: block; margin-bottom: 22px;
}
.step__title { font-size: 17px; font-weight: 600; color: var(--paper); }
.step__desc { margin-top: 10px; font-size: 13px; line-height: 1.85; color: rgba(250,247,242,.6); }
.step::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 6px; height: 6px; background: var(--brand); border-radius: 50%;
}

/* ---------- Qualifications ---------- */
.quals { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.qual {
  border: 1px solid var(--line);
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--paper);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.qual__icon {
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--brand);
}
.qual__title { font-size: 15.5px; font-weight: 600; }
.qual__desc { margin-top: 6px; font-size: 13px; line-height: 1.8; color: var(--muted); }

.honors { margin-top: clamp(28px, 3vw, 40px); }
.honor {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, .7fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.honor__year { font-family: var(--font-mono); font-size: 12px; color: var(--brand); letter-spacing: .06em; }
.honor__name { color: var(--ink); }
.honor__org { color: var(--muted); font-size: 13px; }

/* ---------- Partners ---------- */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 26px; }
.marquee__track { display: flex; gap: clamp(32px, 5vw, 72px); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
  display: flex; align-items: center; gap: 12px;
  transition: color .3s var(--ease);
}
.partner::before { content: ""; width: 4px; height: 4px; background: var(--brand); transform: rotate(45deg); }
.partner:hover { color: var(--ink); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 110px);
}
.cta__bg {
  position: absolute; inset: 0;
  background-image: url("../img/hero.webp");
  background-size: cover; background-position: 70% 30%;
  opacity: .28;
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,10,9,.96) 20%, rgba(12,10,9,.6) 100%);
}
.cta__inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.25; letter-spacing: -.02em; max-width: 18ch; }
.cta h2 em { font-style: normal; font-family: var(--font-serif); color: var(--brand-soft); }
.cta__right { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-soft); color: rgba(250,247,242,.72); padding-top: clamp(56px, 6vw, 84px); }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-dark);
}
.footer .brand__name { color: var(--paper); }
.footer__blurb { margin-top: 20px; font-size: 13.5px; line-height: 1.95; max-width: 34ch; color: rgba(250,247,242,.55); }
.footer__h { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(250,247,242,.4); font-family: var(--font-mono); margin-bottom: 18px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__list a { transition: color .3s var(--ease); }
.footer__list a:hover { color: var(--paper); }
.footer__contact { font-size: 14px; line-height: 2; }
.footer__contact dt { color: rgba(250,247,242,.4); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 14px; }
.footer__contact dt:first-child { margin-top: 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 24px 28px;
  font-size: 12px; color: rgba(250,247,242,.42);
  font-family: var(--font-mono); letter-spacing: .02em;
}
.footer__bottom a:hover { color: var(--paper); }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__icp { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(48px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.page-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(250,247,242,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(250,247,242,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
}
.page-hero__inner { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; margin-top: 18px; }
.page-hero p { margin-top: 20px; max-width: 56ch; color: rgba(250,247,242,.68); font-size: 15.5px; line-height: 1.9; }
.crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: rgba(250,247,242,.42); text-transform: uppercase; }
.crumb span { color: var(--brand-soft); }

/* ---------- Content typography (privacy/terms/about) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; margin-top: 44px; margin-bottom: 14px; letter-spacing: -.01em; }
.prose h3 { font-size: 17px; font-weight: 600; margin-top: 28px; margin-bottom: 10px; }
.prose p { color: var(--muted); font-size: 15px; line-height: 1.95; margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; padding-left: 0; }
.prose li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.95; margin-bottom: 8px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 1px; background: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand); border-bottom: 1px solid rgba(194,64,42,.3); }
.prose__note {
  border-left: 2px solid var(--brand);
  background: var(--paper-2);
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 24px 0;
  line-height: 1.9;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-card { border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); background: var(--paper); }
.contact-item { padding-block: 20px; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 8px; }
.contact-item dd { font-size: 16px; line-height: 1.7; }
.contact-item dd small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line-strong); background: transparent;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  border-radius: 0; appearance: none;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { min-height: 120px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__hint { font-size: 12px; color: var(--muted-light); line-height: 1.8; }

.map {
  margin-top: clamp(28px, 3vw, 40px);
  height: 320px;
  background:
    linear-gradient(rgba(20,17,15,.04) 1px, transparent 1px) 0 0/ 40px 40px,
    linear-gradient(90deg, rgba(20,17,15,.04) 1px, transparent 1px) 0 0/ 40px 40px,
    var(--paper-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  text-align: center;
  position: relative;
}
.map__pin { color: var(--brand); margin-bottom: 12px; }
.map__t { font-size: 15px; font-weight: 600; }
.map__d { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.tl-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.tl-item::before {
  content: ""; position: absolute; left: 0; top: -3px; width: 6px; height: 6px;
  background: var(--brand); border-radius: 50%;
}
.tl-item__time { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--brand); }
.tl-item__title { font-size: 17px; font-weight: 600; }
.tl-item__desc { font-size: 13.5px; line-height: 1.85; color: var(--muted); }

/* ---------- Reveal animation（渐进增强：无 JS 时内容始终可见） ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__bg { animation: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .biz { grid-template-columns: repeat(4, 1fr); }
  .biz__card--photo { grid-column: span 4; }
  .biz__card--wide, .biz__card--sm { grid-column: span 2; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .sec-head__side { justify-self: start; }
}

@media (max-width: 760px) {
  .nav, .header__tel { display: none; }
  .burger { display: block; }
  .header__inner { height: 68px; }
  .hero { min-height: 86vh; padding-top: 110px; }
  .hero__side { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .biz { grid-template-columns: 1fr; }
  .biz__card--photo, .biz__card--wide, .biz__card--sm { grid-column: span 1; }
  .biz__card--photo { min-height: 360px; }
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-right: 0; }
  .step:last-child { border-bottom: 0; }
  .works { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .work__body { padding: 14px; }
  .work__data { display: none; }
  .worklist__item { grid-template-columns: 32px 1fr; gap: 8px 12px; }
  .worklist__data { grid-column: 2; text-align: left; }
  .quals { grid-template-columns: 1fr; }
  .honor { grid-template-columns: 70px 1fr; }
  .honor__org { grid-column: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Fixes: 品牌标记配色 / 移动端细节 ---------- */
.header .brand__mark { color: var(--paper); }
.header.is-solid .brand__mark { color: var(--ink); }
.footer .brand__mark { color: var(--paper); }
.footer__contact dd { word-break: keep-all; }
@media (max-width: 760px) {
  .hero__scroll { display: none; }
}
