/* ================================================================
   炼丹科技官网  ·  cream paper · brand blue accent
   ================================================================ */

/*
 * 字体：用访客电脑自带的系统字体（苹果用苹方，Windows 用微软雅黑），不再加载网页字体，
 * 省掉每位新访客约 16 MB 的下载。正文 400，标题 800（系统会用该字体最粗的一档）。
 */
:root {
  /* white + blue tonal system */
  --paper:       #ffffff;
  --paper-soft:  #f3f6fc;       /* very light blue tint */
  --paper-line:  #e1e7f0;
  --paper-line-strong: #c5cfdc;

  /* ink scale — slight blue lean */
  --ink:         #0f1a30;
  --ink-soft:    #2e3a52;
  --ink-mute:    #5d6878;
  --ink-faint:   #8e96a3;

  /* brand */
  --brand:       #1c3c8c;       /* navy from cauldron logo */
  --brand-deep:  #14306e;
  --brand-soft:  #e4ebf7;
  --brand-bright:#3361d6;

  /* dark zones (hero / footer) */
  --bg-dark:     #0a1430;       /* deep navy instead of pure black */
  --bg-dark-2:   #14213f;
  --ink-on-dark: #ffffff;
  --line-on-dark:rgba(255,255,255,0.12);

  --font-brand: -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;

  --max:         1280px;
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-brand);
  font-kerning: normal;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
body.modal-open { overflow: hidden; }
body.image-preview-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ================================================================
   HEADER — auto-adapts dark/light via .scrolled
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 44px);
  color: #fff;
  transition: background .35s ease, backdrop-filter .35s ease,
              color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--paper-line);
  color: var(--ink);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  transition: opacity .35s ease;
}
.brand-logo-color { opacity: 0; }
.brand-logo-white {
  position: absolute;
  left: 0;
  top: 50%;
  height: 30px;
  transform: translateY(-50%);
  opacity: 1;
}
.site-header.scrolled .brand-logo-color { opacity: 1; }
.site-header.scrolled .brand-logo-white { opacity: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  color: inherit;
  transition: opacity .2s ease, color .2s ease;
}
.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}
.site-nav a .num {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.6;
}
.site-nav a .label {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s cubic-bezier(.65,.05,.36,1);
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header.scrolled .site-nav a.is-active { color: var(--brand); }

/* keep .nav-feature class but no special chip style anymore */
.site-nav .nav-feature { font-weight: 400; }
.site-nav .nav-feature .num { opacity: 0.6; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.lang-switch {
  display: inline-grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .lang-switch:hover {
    border-color: currentColor;
    background: rgba(255,255,255,0.12);
  }
}
.lang-switch span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  opacity: .72;
  transition: opacity .2s ease;
}
.lang-switch span.is-current { opacity: 1; font-weight: 800; }
.lang-switch i {
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: .28;
}
.site-header.scrolled .lang-switch {
  background: rgba(255,255,255,0.72);
  border-color: var(--paper-line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .site-header.scrolled .lang-switch:hover { border-color: var(--ink-soft); }
}
.lang-switch:focus-visible,
.nav-toggle:focus-visible,
.contact-wecom:focus-visible,
.video-close:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .16s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(.25); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ================================================================
   HERO — only dark area in the whole site
   ================================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.95);
}
.hero-media .hero-video {
  opacity: 0;
  background: #000;
  transition: opacity 1.2s ease;
}
.hero-media .hero-video.is-active { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.7) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.55) 100%);
}
.hero::after { display: none; }

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 400;
  text-transform: uppercase;
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 12px; }
.hero-meta-item i {
  width: 5px; height: 5px;
  background: #fff;
  border-radius: 50%;
}

.hero-title {
  margin: 0 0 28px;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
}
.hero-title .line {
  display: inline-block;
  cursor: default;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  transform-origin: center;
}
@media (hover: hover) and (pointer: fine) {
  .hero-title .line:hover { transform: scale(1.04); }
}

html[lang="en"] .site-nav {
  gap: clamp(16px, 2.2vw, 30px);
}
html[lang="en"] .site-nav a .label {
  font-size: 17px;
  letter-spacing: 0;
}
html[lang="en"] .hero-title {
  max-width: 100%;
  font-size: 112px;
  letter-spacing: 0;
}
html[lang="en"] .hero-meta { letter-spacing: .18em; }
html[lang="en"] .hero-tagline { letter-spacing: .08em; }

.hero-tagline {
  margin: 0 0 56px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
}

.hero-sub {
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.85);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 19px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease,
              border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn svg { transition: transform .25s ease; }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(4px); }
  .btn-primary:hover { background: var(--brand-deep); }
  .btn-ghost:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.06);
  }
}
.btn-block { width: 100%; justify-content: space-between; padding: 18px 26px; }

.hero-scroll {
  display: none;
}

/* ================================================================
   MARQUEE — hidden under hero on load; rises in on scroll
   ================================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: none;
  padding: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1),
              transform .9s cubic-bezier(.2,.7,.2,1);
}
.marquee.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.marquee::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--paper-line), transparent);
  pointer-events: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 36px 0 32px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  will-change: transform;
}
.marquee-track.is-ready {
  animation: marqueeMove var(--marquee-duration, 40s) linear infinite;
}
.marquee-group,
.marquee-set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.marquee-set {
  gap: 36px;
  padding-right: 36px;
}
.marquee-track span {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.marquee-track i {
  font-style: normal;
  color: var(--brand);
  font-size: 16px;
}
@keyframes marqueeMove {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}

/* ================================================================
   STATS — paper tone
   ================================================================ */
.stats {
  background: var(--paper);
  padding: clamp(72px, 9vw, 130px) 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1) .15s,
              transform .9s cubic-bezier(.2,.7,.2,1) .15s;
}
.stats.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.stat {
  padding: 8px 32px 8px 32px;
  border-left: 1px solid var(--paper-line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  display: flex;
  align-items: baseline;
  font-size: clamp(56px, 8.5vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stat-num em {
  font-style: normal;
  font-size: 0.4em;
  font-weight: 800;
  margin-left: 6px;
  color: var(--brand);
}
.stat-label {
  margin-top: 22px;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

/* ================================================================
   SECTION SHELL — unified paper tone
   ================================================================ */
.section { padding: clamp(96px, 12vw, 160px) 0; }

.works    { background: var(--paper); }
.services { background: var(--paper-soft); }
.team     { background: var(--paper); }
.contact  { background: var(--paper-soft); }
.stats    { background: var(--paper); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: clamp(56px, 6vw, 88px);
  max-width: 100%;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 400;
  text-transform: uppercase;
}
.section-label i {
  width: 28px; height: 1px;
  background: var(--brand);
  display: inline-block;
}
.section-title {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 1100px;
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 36px);
  flex-wrap: wrap;
}
.section-desc {
  margin: 0;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.75;
  max-width: 760px;
}

/* ================================================================
   WORKS
   ================================================================ */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--paper-line);
}
.chip {
  padding: 10px 20px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--ink); color: var(--ink); }
}
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 36px 24px;
}
.work {
  position: relative;
  grid-column: span 2;
  cursor: pointer;
  background: transparent;
  transition: transform .3s ease;
}
.work.is-hidden { display: none; }

.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-soft);
  border-radius: 4px;
}
.work-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.work:hover .work-media img { transform: scale(1.04); }

/* play overlay */
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.work:hover .work-media::after { opacity: 1; }

.work-info {
  padding: 20px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--brand);
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--brand-soft);
  border-radius: 3px;
}
.work-info h3 {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.work-info h3 a {
  color: inherit;
  text-decoration: none;
}
.work-info h3 a:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 4px;
  border-radius: 2px;
}
.work-info p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.65;
  max-width: 620px;
}

/* ================================================================
   CAPABILITY LIST
   ================================================================ */
.capability-list {
  border-top: 1px solid var(--paper-line);
}
.cap-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--paper-line);
  transition: background .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .cap-row:hover { background: rgba(28, 60, 140, 0.04); }
}
.cap-no {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cap-title h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.cap-tag {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}
.cap-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* ================================================================
   TEAM
   ================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.founder { position: sticky; top: 110px; }
.founder-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
  border-radius: 4px;
}
.founder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-info {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--paper-line);
  display: grid;
  gap: 6px;
}
.founder-eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.founder-info h3 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.founder-info p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
}

.team-copy p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  max-width: 640px;
}
.team-copy .team-lead {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--paper-line);
  list-style: none;
}
.chips li {
  padding: 9px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.team .chips li { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-deep); }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

.contact-card {
  min-width: 0;
  padding: 40px clamp(28px, 3vw, 44px);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}
.contact-card.alt {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--paper-line);
}
.contact-card.alt .contact-card-head {
  border-bottom-color: var(--line-on-dark);
}
.ckh-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-card.alt .ckh-label { color: rgba(255,255,255,0.65); }

.contact-big {
  min-width: 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px dashed var(--paper-line);
}
.contact-card button.contact-big {
  width: 100%;
  margin: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 0 8px;
}
.contact-channel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  background: rgba(77, 116, 255, .035);
  transition: border-color .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-channel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.contact-channel-label > span { color: var(--brand); font-size: 16px; }
.contact-channel-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contact-channel:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (hover: hover) {
  .contact-channel:hover { border-color: var(--brand); background: rgba(77, 116, 255, .09); }
}
@media (max-width: 520px) {
  .contact-channels { grid-template-columns: 1fr; gap: 10px; padding-top: 20px; }
  .contact-channel { gap: 6px; padding: 14px 16px; }
}
.contact-big:last-child { border-bottom: none; }
.cb-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cb-value {
  min-width: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.2;
  transition: color .2s ease, transform .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .contact-big:hover .cb-value { transform: translateX(8px); }
}
.contact-big[href^="mailto:"] .cb-value {
  font-size: clamp(18px, 6vw, 36px);
  overflow-wrap: anywhere;
}
.contact-big:hover .cb-value { color: var(--brand); }

.contact-wecom {
  grid-template-columns: 90px minmax(0, 1fr) 112px;
  align-items: center;
}
.contact-wecom-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.contact-wecom-copy .cb-value {
  display: block;
  font-size: clamp(22px, 2.3vw, 30px);
}
.contact-wecom-copy .cb-value.cb-value-wechat {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contact-wecom-copy small {
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.wecom-qr-thumb {
  width: 112px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 4px;
  transition: border-color .2s ease, transform .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .contact-wecom:hover .wecom-qr-thumb {
    border-color: var(--brand);
    transform: scale(1.02);
  }
}

.contact-card.alt dl {
  margin: 0;
  display: grid;
  gap: 22px;
  flex: 1;
}
.contact-card.alt dl div { display: grid; gap: 4px; }

.contact-card.alt dt {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.contact-card.alt dd {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.55;
}
.contact-card.alt .btn {
  margin-top: 32px;
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
}
/* Hover only on fine pointers; --brand-deep keeps white text >= 4.5:1
   (#fff on #3658d7 = 5.94:1; --brand #4d74ff was only 3.99:1). */
@media (hover: hover) and (pointer: fine) {
  .contact-card.alt .btn:hover {
    background: var(--brand-deep, var(--brand));
    color: #fff;
    border-color: var(--brand-deep, var(--brand));
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: 80px 0 32px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  border-top: 1px solid var(--paper-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-on-dark);
}
.foot-brand img {
  height: 30px;
  width: auto;
  margin-bottom: 22px;
}
.foot-brand p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.foot-cols h4,
.foot-cols .foot-col-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}
.foot-cols a, .foot-cols span {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  color: rgba(255,255,255,0.65);
  transition: color .2s ease;
}
.foot-cols a:hover { color: #fff; }
.foot-cols span { line-height: 1.6; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}
.footer-base a {
  color: inherit;
  transition: color .2s ease;
}
.footer-base a:hover { color: #fff; }
.footer-sep {
  display: inline-block;
  margin: 0 8px;
  opacity: .55;
}
.footer-note {
  margin: 0 auto;
  padding-top: 10px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ================================================================
   VIDEO MODAL
   ================================================================ */
.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
}
.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,15,15,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.video-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 40px);
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
}
.video-dialog h2 {
  margin: 0 48px 18px 0;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
}
.media-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  border-bottom: 1px solid var(--paper-line);
}
.media-tab {
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.media-tab:hover {
  color: var(--ink);
  background: var(--paper-soft);
}
.media-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.media-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}
.media-panel[hidden] { display: none; }
.media-panel:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}
.project-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 180px;
  background: #050914;
  border-radius: 4px;
}
.project-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 250px);
  max-height: calc(100dvh - 250px);
  object-fit: contain;
}
.video-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.video-close:hover { background: var(--paper-soft); }
.video-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: min(100%, var(--video-stage-max-width, 100%));
  margin-inline: auto;
  background: transparent;
  border-radius: 4px;
}
.video-stage video,
.video-stage iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: transparent;
}
.video-stage video {
  aspect-ratio: var(--video-aspect-ratio, 16 / 9);
  object-fit: cover;
}
.video-stage p {
  width: 100%;
  margin: 0;
  padding: 32px;
  background: var(--paper-soft);
  color: var(--ink-mute);
  font-size: 14px;
}
.video-stage code {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  padding: 2px 6px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}
.full-video-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--video-stage-max-width, 100%));
  gap: 18px;
  margin: 12px auto 0;
  padding: 12px 16px;
  background: var(--paper-soft);
  border: 1px solid var(--paper-line);
  border-radius: 4px;
}
.full-video-note > span {
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 400;
}
.full-video-note button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}
.full-video-note button strong {
  font-size: 13px;
  letter-spacing: .02em;
}
.full-video-note button svg { transition: transform .2s ease; }
.full-video-note button:hover svg { transform: translateX(4px); }
.full-video-note button:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

/* ================================================================
   WECOM QR MODAL
   ================================================================ */
.qr-modal[hidden] { display: none; }
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 16px;
}
.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,20,48,0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.qr-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px clamp(24px, 5vw, 44px) 36px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  color: var(--ink);
  text-align: center;
}
.qr-dialog-copy { margin-bottom: 24px; }
.qr-dialog h2 {
  margin: 0 36px 6px;
  font-size: 30px;
  line-height: 1.25;
  white-space: nowrap;
}
.qr-dialog p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
}
.qr-close { top: 14px; right: 14px; }
.wecom-qr-large {
  width: min(360px, 78vw);
  border: 1px solid var(--paper-line-strong);
  border-radius: 4px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  html[lang="en"] .hero-title { font-size: 88px; }
  .cap-row { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.3fr); }
  .work { grid-column: span 3; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--paper-line); margin-top: 28px; padding-top: 36px; }
}

@media (max-width: 860px) {
  html.instant-works-return {
    scroll-behavior: auto !important;
  }

  html.instant-works-return body {
    visibility: hidden;
  }

  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .site-header {
    padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
  }
  .brand {
    height: 40px;
    min-width: 0;
    max-width: calc(100% - 120px);
  }
  .brand-logo-color {
    width: auto;
    height: 34px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }
  .brand-logo-white { height: 24px; max-width: 100%; }
  .header-actions { gap: 4px; }
  .lang-switch { height: 44px; min-width: 68px; padding: 0 9px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 80vw);
    height: 100vh;
    height: 100dvh;
    padding: 90px 32px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    color: var(--ink);
    border-left: 1px solid var(--paper-line);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s cubic-bezier(.6,.2,.2,1), visibility 0s linear .35s;
  }
  .site-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 79; /* below .site-header (80, holds the drawer), above page content */
    background: rgba(0, 0, 0, .45);
  }
  .site-nav a {
    width: 100%;
    min-height: 56px;
    padding: 18px 0;
    border-bottom: 1px solid var(--paper-line);
    font-size: 18px;
    opacity: 1;
  }
  .site-nav a::after { display: none; }
  .site-nav a.is-active { color: var(--brand); }
  .site-nav .nav-feature { font-weight: 400; color: inherit; }
  html[lang="en"] .site-nav a .label { font-size: 18px; }
  .nav-open .site-header {
    border-bottom-color: var(--paper-line);
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
    color: var(--ink);
  }
  .nav-open .brand { z-index: 2; }
  .nav-open .brand-logo-color { opacity: 1; }
  .nav-open .brand-logo-white { opacity: 0; }
  .nav-open .lang-switch {
    background: rgba(255,255,255,0.72);
    border-color: var(--paper-line-strong);
  }

  .hero-stage { padding: 110px 0 80px; }
  .hero-title { font-size: clamp(72px, 22vw, 140px); }
  html[lang="en"] .hero-title { font-size: 64px; }
  .hero-sub { white-space: normal; max-width: 480px; }
  .hero-actions { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 56px; }

  .section-head { gap: 16px; }
  .section-title { font-size: clamp(34px, 8vw, 48px); }

  .work-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .work { grid-column: span 1; }
  .work.feat { grid-column: span 2; }

  .cap-row {
    grid-template-columns: auto 1fr;
    grid-template-areas: "no title" "desc desc";
    gap: 12px 18px;
    padding: 28px 0;
  }
  .cap-no { grid-area: no; }
  .cap-title { grid-area: title; }
  .cap-row p { grid-area: desc; }
  .cap-row:hover { padding-left: 0; padding-right: 0; }

  .team-grid { grid-template-columns: 1fr; }
  .founder { position: static; }
  .founder-media { aspect-ratio: 3 / 4; }

  .contact-grid { grid-template-columns: 1fr; }
  .chip { min-height: 44px; }
  .full-video-note button { min-height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-cols a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 0;
  }
  .footer-base a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-base { flex-direction: column; gap: 6px; }

  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .site-header { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
  .brand { max-width: calc(100% - 116px); }
  .lang-switch {
    grid-template-columns: auto 1px auto;
    gap: 6px;
    min-width: 64px;
    padding: 0 7px;
  }
  .hero {
    height: auto;
    min-height: max(640px, 100vh);
    min-height: max(640px, 100svh);
  }
  .hero-stage {
    width: min(var(--max), calc(100% - 28px));
    padding: 92px 0 88px;
  }
  .hero-meta { margin-bottom: 24px; font-size: 12px; letter-spacing: .16em; }
  .hero-title { font-size: clamp(56px, 19vw, 84px); }
  .hero-title { margin-bottom: 18px; }
  html[lang="en"] .hero-title { font-size: 44px; line-height: 1.02; }
  html[lang="en"] .hero-tagline { font-size: 14px; letter-spacing: .04em; }
  .hero-tagline { margin-bottom: 24px; font-size: 14px; letter-spacing: 0.3em; }
  .hero-sub { margin-bottom: 28px; font-size: 13px; }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 360px;
  }
  .hero-actions .btn {
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    gap: 8px;
    font-size: 14px;
  }
  .section { padding: 76px 0; }
  .section,
  .stats { scroll-margin-top: 76px; }
  .stats { padding: 64px 0; }
  .section-head { margin-bottom: 42px; }
  .work-grid { grid-template-columns: 1fr; }
  .work, .work.feat { grid-column: span 1; }
  .stat { padding-right: 12px; padding-left: 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--paper-line); }
  .contact-big { grid-template-columns: 1fr; gap: 6px; }
  .contact-card { padding: 30px 20px; }
  .contact-card-head { margin-bottom: 20px; }
  .contact-big { padding: 18px 0; }
  .contact-wecom {
    grid-template-columns: minmax(0, 1fr) 80px;
    grid-template-areas:
      "label qr"
      "value qr";
    gap: 6px 12px;
    align-items: center;
  }
  .contact-wecom .cb-label { grid-area: label; align-self: end; }
  .contact-wecom-copy { grid-area: value; align-self: start; }
  .contact-wecom .wecom-qr-thumb { grid-area: qr; width: 80px; }
  .contact-wecom-copy .cb-value { font-size: 20px; }
  html[lang="en"] .contact-wecom-copy .cb-value { font-size: 17px; }
  .video-modal { padding: 12px; }
  .video-dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 66px 16px 18px;
  }
  .video-dialog h2 { margin: 0 48px 14px 0; font-size: 22px; }
  .media-tabs { margin-bottom: 14px; }
  .media-tab {
    min-height: 44px;
    padding: 9px 6px;
    font-size: 13px;
    letter-spacing: .02em;
  }
  .project-stage img {
    max-height: calc(100vh - 230px);
    max-height: calc(100dvh - 230px);
  }
  .video-stage video,
  .video-stage iframe {
    height: auto;
    min-height: 0;
  }
  .video-stage iframe { aspect-ratio: 16 / 9; }
  .video-stage video { aspect-ratio: var(--video-aspect-ratio, 16 / 9); }
  .full-video-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 11px 12px;
  }
  .full-video-note button { width: 100%; justify-content: space-between; }
  .qr-dialog { padding: 64px 20px 28px; }
  .qr-dialog h2 {
    margin: 0 36px 6px;
    font-size: 25px;
    white-space: normal;
  }
  .wecom-qr-large { width: 100%; max-width: 320px; }
  .foot-cols { grid-template-columns: 1fr; }

  /* Mobile editorial hierarchy — deliberately isolated from desktop. */
  html { scroll-padding-bottom: 72px; }

  .site-header {
    padding: calc(6px + env(safe-area-inset-top)) 12px 6px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  }
  .site-header.scrolled,
  .nav-open .site-header {
    background: rgba(255,255,255,.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .brand { height: 36px; }
  .brand-logo-color { height: 30px; }
  .brand-logo-white { height: 21px; }
  .site-nav {
    width: min(320px, 82vw);
    padding: calc(76px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
    transition-duration: .28s;
  }
  .site-nav a { min-height: 52px; padding: 14px 0; }

  .hero {
    height: auto;
    min-height: clamp(620px, 86vh, 720px);
    min-height: clamp(620px, 86svh, 720px);
  }
  .hero-media .hero-video {
    filter: none;
    transform: translateZ(0);
    will-change: opacity;
    transition-duration: .7s;
  }
  .hero-shade {
    background:
      radial-gradient(ellipse at center, rgba(0,0,0,.34) 0%, rgba(0,0,0,.60) 72%, rgba(0,0,0,.76) 100%),
      linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 34%, rgba(0,0,0,.68) 100%);
  }
  .hero-stage {
    width: min(var(--max), calc(100% - 32px));
    padding: 84px 0 58px;
  }
  .hero-meta {
    max-width: 100%;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .12em;
  }
  .hero-meta-item { gap: 8px; }
  .hero-meta-item i { width: 4px; height: 4px; }
  .hero-title {
    margin-bottom: 12px;
    font-size: clamp(52px, 17vw, 68px);
    line-height: 1;
  }
  html[lang="en"] .hero-title { max-width: 310px; font-size: 38px; line-height: 1.02; }
  .hero-tagline {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: .22em;
  }
  html[lang="en"] .hero-tagline { font-size: 13px; letter-spacing: .03em; }
  .hero-sub {
    max-width: 310px;
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.65;
  }
  .hero-actions { max-width: 330px; gap: 8px; }
  .hero-actions .btn {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .marquee,
  .stats { transition-duration: .55s; }
  .marquee-track { padding: 20px 0 18px; }
  .marquee-set { gap: 24px; padding-right: 24px; }
  .marquee-track span { font-size: 18px; }
  .marquee-track i { font-size: 11px; }

  .stats { padding: 44px 0; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat,
  .stat:nth-child(n+3) {
    min-height: 112px;
    margin-top: 0;
    padding: 18px 12px;
  }
  .stat:first-child { padding-left: 12px; }
  .stat-num { font-size: 42px; }
  .stat-label {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .section { padding: 60px 0; }
  .section-head { gap: 10px; margin-bottom: 30px; }
  .section-label { gap: 8px; font-size: 12px; letter-spacing: .14em; }
  .section-label i { width: 20px; }
  .section-title { font-size: clamp(28px, 8vw, 32px); line-height: 1.18; }
  .team .section-title,
  .contact .section-title { font-size: 28px; }
  .section-desc { font-size: 14px; line-height: 1.7; }

  .works .section-head { margin-bottom: 24px; }
  .works .work-filters {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 auto 28px;
    padding: 0 0 12px;
    overflow-x: auto;
    border-bottom: 1px solid var(--paper-line);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .works .work-filters::-webkit-scrollbar { display: none; }
  .work-filters .chip {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 12px;
    scroll-snap-align: start;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
  }
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 12px;
  }
  .work,
  .work.feat {
    grid-column: span 1;
    min-width: 0;
    transition: none;
  }
  .work.is-mobile-featured { grid-column: 1 / -1; padding-bottom: 28px; border-bottom: 1px solid var(--paper-line); }
  .work-media {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    transition: transform .18s ease;
  }
  .work.is-mobile-featured .work-media { aspect-ratio: 16 / 9; }
  .work-media::after {
    z-index: 1;
    opacity: 1;
    background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.46) 100%);
  }
  .work-media::before {
    content: "▶";
    position: absolute;
    right: 9px;
    bottom: 9px;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding-left: 2px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 4px 14px rgba(10,20,48,.18);
    color: var(--brand-deep);
    font-size: 10px;
    line-height: 1;
  }
  .work.is-mobile-featured .work-media::before { right: 12px; bottom: 12px; width: 38px; height: 38px; }
  .work:hover .work-media img { transform: none; }
  .work:active .work-media { transform: scale(.985); }
  .work-info { gap: 4px; padding: 10px 1px 0; }
  .work-tag {
    max-width: 100%;
    overflow: hidden;
    padding: 3px 6px;
    font-size: 12px;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .work-info h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .work-info p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .work.is-mobile-featured .work-info { gap: 6px; padding-top: 13px; }
  .work.is-mobile-featured .work-tag { font-size: 12px; padding: 3px 8px; }
  .work.is-mobile-featured .work-info h3 { font-size: 18px; }
  .work.is-mobile-featured .work-info p { font-size: 13px; }

  .cap-row {
    gap: 10px 14px;
    padding: 22px 0;
  }
  .cap-no { font-size: 26px; }
  .cap-title h3 { font-size: 18px; }
  .cap-tag { margin-top: 5px; font-size: 12px; letter-spacing: .1em; }
  .cap-row p { font-size: 13.5px; line-height: 1.65; }

  .team-grid { gap: 28px; }
  .founder {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
  .founder-media {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
  }
  .founder-info { margin: 0; padding: 0; border-top: 0; }
  .founder-eyebrow { font-size: 12px; letter-spacing: .12em; }
  .founder-info h3 { font-size: 26px; }
  .founder-info p { font-size: 12px; line-height: 1.6; }
  .team-copy .team-lead { margin-bottom: 18px; font-size: 17px; line-height: 1.7; }
  .team-copy p { margin-bottom: 14px; font-size: 14px; line-height: 1.78; }
  .chips { gap: 6px; margin-top: 24px; padding-top: 20px; }
  .chips li { padding: 7px 10px; font-size: 12px; line-height: 1.45; }

  .contact-grid { gap: 14px; }
  .contact-card { padding: 24px 18px; border-radius: 10px; }
  .contact-card-head { margin-bottom: 14px; padding-bottom: 10px; }
  .contact-big { padding: 15px 0; }
  .contact-wecom { grid-template-columns: minmax(0, 1fr) 72px; gap: 5px 12px; }
  .contact-wecom .wecom-qr-thumb { width: 72px; }
  .contact-card.alt dl { gap: 16px; }
  .contact-card.alt dt { font-size: 12px; }
  .contact-card.alt dd { font-size: 14px; line-height: 1.55; }
  .contact-card.alt .btn { min-height: 48px; margin-top: 22px; }

  .video-modal-backdrop,
  .qr-modal-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }

  .site-footer {
    padding: 52px 0 calc(82px + env(safe-area-inset-bottom));
  }
  .footer-grid { gap: 28px; padding-bottom: 32px; }
  .foot-brand img { height: 24px; margin-bottom: 12px; }
  .foot-brand p { font-size: 12px; }
  .foot-cols { grid-template-columns: .8fr 1.2fr; gap: 20px 16px; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .foot-cols h4,
  .foot-cols .foot-col-title { margin-bottom: 8px; }
  .foot-cols a { padding: 8px 0; overflow-wrap: anywhere; }
  .footer-base { gap: 2px; padding-top: 20px; line-height: 1.7; }

  /* Remove sticky touch-hover states that look like flicker. */
  .hero-title .line:hover { transform: none; }
  .btn:hover svg { transform: none; }
  .btn-primary:hover { background: var(--brand-strong, var(--brand)); }
  .btn-ghost:hover { border-color: rgba(255,255,255,.45); background: transparent; }
  .chip:hover { border-color: var(--paper-line-strong); color: var(--ink-soft); }
  .chip.active:hover { border-color: var(--ink); color: var(--paper); }
  .cap-row:hover { background: transparent; }
  .contact-big:hover .cb-value { color: var(--ink); transform: none; }
  .contact-wecom:hover .wecom-qr-thumb { border-color: var(--paper-line-strong); transform: none; }
  .contact-card.alt .btn:hover { border-color: #fff; background: #fff; color: var(--ink); }
}

@media (max-width: 520px) and (prefers-reduced-motion: no-preference) {
  .hero-meta,
  .hero-title,
  .hero-tagline,
  .hero-sub,
  .hero-actions {
    animation: mobileHeroEnter .58s cubic-bezier(.22,1,.36,1) both;
  }
  .hero-title { animation-delay: .06s; }
  .hero-tagline { animation-delay: .11s; }
  .hero-sub { animation-delay: .16s; }
  .hero-actions { animation-delay: .21s; }
  .video-modal:not([hidden]) .video-dialog,
  .qr-modal:not([hidden]) .qr-dialog {
    animation: mobileDialogEnter .26s cubic-bezier(.22,1,.36,1) both;
  }

  @keyframes mobileHeroEnter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes mobileDialogEnter {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

@media (max-width: 360px) {
  .brand-logo-color { height: 28px; }
  .brand-logo-white { height: 20px; }
  .lang-switch { min-width: 60px; }
  .lang-switch span { font-size: 12px; }
  .hero-title { font-size: 50px; }
  html[lang="en"] .hero-title { font-size: 36px; }
  .hero-actions .btn { padding-right: 10px; padding-left: 10px; }
  .section-label { letter-spacing: .16em; }
  .section-title { font-size: 28px; }
  .stat-num { font-size: 40px; }
  .work-grid { gap: 22px 10px; }
  .work-info h3 { font-size: 13.5px; }
}

/* ================================================================
   MOBILE REFINEMENT PASS
   Desktop remains untouched: all rules below are capped at 860px.
   ================================================================ */
@media (max-width: 860px) {
  .brand {
    min-height: 44px;
  }

  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 4px;
  }

  .nav-toggle span {
    margin: 0;
  }

  .site-nav {
    box-shadow: -18px 0 44px rgba(10, 20, 48, .14);
    overscroll-behavior: contain;
    will-change: transform;
  }

  .site-nav a {
    touch-action: manipulation;
  }

  .site-nav a:active {
    color: var(--brand);
    transform: translateX(2px);
  }

  .hero {
    height: auto;
    min-height: min(840px, 92vh);
    min-height: min(840px, 92svh);
  }

  .hero-stage {
    justify-content: center;
  }

  .section-title,
  .section-desc,
  .cap-row p,
  .team-copy p,
  .work-info h3,
  .work-info p {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .wrap,
  .hero-stage {
    width: min(var(--max), calc(100% - 36px));
  }

  .site-header {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .site-nav {
    width: min(336px, 84vw);
    padding-right: 26px;
    padding-left: 26px;
  }

  .site-nav a {
    min-height: 56px;
    align-items: center;
  }

  .site-nav a .label {
    font-size: 22px;
    line-height: 1.15;
  }

  .hero {
    min-height: clamp(620px, 82vh, 700px);
    min-height: clamp(620px, 82svh, 700px);
  }

  .hero-media .hero-video {
    object-position: center center;
  }

  .hero-stage {
    padding-top: calc(78px + env(safe-area-inset-top));
    padding-bottom: 52px;
  }

  .hero-meta {
    margin-bottom: 18px;
    text-wrap: balance;
  }

  .hero-title {
    max-width: 100%;
    margin-bottom: 14px;
    letter-spacing: .02em;
  }

  .hero-tagline {
    margin-bottom: 16px;
  }

  .hero-sub {
    max-width: 335px;
    margin-bottom: 24px;
    font-size: 13px;
  }

  .hero-actions {
    width: 100%;
    max-width: 348px;
  }

  .hero-actions .btn {
    min-height: 50px;
    padding-right: 14px;
    padding-left: 14px;
    touch-action: manipulation;
  }

  .btn:active,
  .chip:active,
  .media-tab:active,
  .contact-big:active {
    transform: scale(.985);
  }

  .marquee {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .section-title {
    letter-spacing: 0;
    text-wrap: balance;
  }

  .section-desc {
    max-width: 34em;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .work,
  .work.feat,
  .work.is-mobile-featured {
    grid-column: 1 / -1;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--paper-line);
  }

  .work:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .work-media,
  .work.is-mobile-featured .work-media {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }

  .work-media img {
    object-position: center center;
  }

  .work-info,
  .work.is-mobile-featured .work-info {
    gap: 7px;
    padding: 13px 0 0;
  }

  .work-tag,
  .work.is-mobile-featured .work-tag {
    padding: 4px 8px;
    font-size: 12px;
    letter-spacing: .08em;
  }

  .work-info h3,
  .work.is-mobile-featured .work-info h3 {
    font-size: 20px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
  }

  .work-info p,
  .work.is-mobile-featured .work-info p {
    font-size: 14px;
    line-height: 1.62;
    -webkit-line-clamp: 2;
  }

  .work:active .work-media {
    transform: scale(.99);
  }

  .work:active .work-info h3 {
    color: var(--brand);
  }

  .contact-card {
    border-radius: 8px;
  }
}

@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  .marquee-track.is-ready {
    animation: none;
  }

  .site-nav,
  .hero-media .hero-video,
  .work-media {
    transition: none;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    max-width: 336px;
  }

  .hero-actions .btn {
    gap: 7px;
    font-size: 12.5px;
  }
}

/* ================================================================
   MOBILE QA FIXES
   Kept mobile-scoped to avoid changing desktop behavior.
   ================================================================ */
@media (max-width: 860px) {
  a,
  button,
  [role="button"],
  .chip,
  .work,
  .media-tab,
  .contact-big {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  a:focus:not(:focus-visible),
  button:focus:not(:focus-visible),
  [role="button"]:focus:not(:focus-visible),
  .chip:focus:not(:focus-visible),
  .work:focus:not(:focus-visible) {
    outline: 0;
  }

  .mobile-section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity .68s cubic-bezier(.22, 1, .36, 1) var(--mobile-section-reveal-delay, 0ms),
      transform .68s cubic-bezier(.22, 1, .36, 1) var(--mobile-section-reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .mobile-section-reveal.is-mobile-section-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .site-header {
    min-height: 68px;
  }

  .lang-switch {
    position: relative;
    isolation: isolate;
    width: 68px;
    min-width: 68px;
    height: 44px;
    padding: 0 8px;
    gap: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .lang-switch::before {
    content: "";
    position: absolute;
    inset: 4px 0;
    z-index: 0;
    border: 1px solid var(--paper-line-strong);
    border-radius: 4px;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
    transition: transform .16s ease, background-color .2s ease, border-color .2s ease;
  }

  .lang-switch > span,
  .lang-switch > i {
    position: relative;
    z-index: 1;
  }

  .lang-switch span {
    font-size: 12px;
  }

  .lang-switch i {
    height: 12px;
  }

  .lang-switch:hover,
  .site-header.scrolled .lang-switch,
  .nav-open .lang-switch {
    border-color: transparent;
    background: transparent;
  }

  .site-header.scrolled .lang-switch::before,
  .nav-open .lang-switch::before {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
  }

  .lang-switch:active::before {
    transform: scale(.97);
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .site-nav {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: min(320px, calc(100vw - 68px));
    height: 100vh;
    height: 100dvh;
    padding: calc(68px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom));
    border-top: 0;
    border-left: 1px solid var(--paper-line);
    box-shadow: -18px 0 44px rgba(10, 20, 48, .14);
    opacity: 1;
    pointer-events: none;
    transform: translateX(calc(100% + 1px));
    visibility: hidden;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s;
  }

  .site-nav.open {
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav a {
    width: 100%;
    min-height: 66px;
    margin: 0;
    padding: 0 28px;
    gap: 14px;
    border-bottom: 0;
    color: var(--ink);
  }

  .site-nav a.is-active {
    background: rgba(255, 255, 255, .06);
    color: var(--ink);
  }

  .site-nav a .num {
    min-width: 24px;
    color: var(--brand);
    font-size: 10px;
    letter-spacing: .1em;
    opacity: .76;
  }

  .site-nav a .label,
  html[lang="en"] .site-nav a .label {
    color: var(--ink);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .nav-open .site-header {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-open .brand {
    z-index: 0;
    opacity: .34;
  }

  .stats {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .stats-inner {
    width: min(var(--max), calc(100% - 44px));
    max-width: 430px;
    margin: 0 auto;
  }

  .stat,
  .stat:first-child,
  .stat:nth-child(n+3) {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    justify-content: center;
    padding: 18px clamp(18px, 6vw, 26px);
  }

  .stat-num {
    justify-content: flex-start;
    font-size: 44px;
    letter-spacing: -.025em;
  }

  .stat-num em {
    margin-left: 4px;
    font-size: .34em;
  }

  .stat-label {
    margin-top: 8px;
    max-width: 9em;
  }

  .cap-row {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "no title"
      "desc desc";
    gap: 8px 10px;
    align-items: start;
    padding: 20px 0;
  }

  .cap-no {
    display: block;
    grid-area: no;
    align-self: start;
    padding-top: 0;
    font-size: 26px;
    line-height: .92;
    text-align: left;
    transform: translateY(-1px);
  }

  .cap-title {
    display: flex;
    grid-area: title;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    padding-top: 0;
  }

  .cap-title h3 {
    font-size: 18px;
    line-height: 1.18;
  }

  .cap-tag {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .1em;
  }

  .cap-row p {
    grid-area: desc;
    padding-top: 4px;
  }

  .stat,
  .stat:first-child,
  .stat:nth-child(n+3) {
    padding: 18px clamp(14px, 4.4vw, 22px);
  }

  .stat:nth-child(odd) {
    padding-right: 10px;
    padding-left: clamp(42px, 12vw, 52px);
  }

  .stat:nth-child(even) {
    padding-right: 4px;
    padding-left: clamp(42px, 12vw, 52px);
  }

  .chip {
    background: #fff;
    user-select: none;
  }

  .chip.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  .chip:active,
  .btn:active,
  .contact-big:active,
  .media-tab:active {
    background-color: inherit;
  }

  .btn-primary:active {
    background: var(--brand-strong, var(--brand));
  }

  .chip.active:active {
    background: var(--ink);
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .mobile-section-reveal,
  .mobile-section-reveal.is-mobile-section-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================================================
   PROJECT DETAIL PAGE
   Separate page used by mobile work taps; index desktop is unaffected.
   ================================================================ */
.project-detail-page {
  margin: 0;
  background: #fff;
  color: var(--ink);
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--paper-line);
}

.detail-brand img {
  width: auto;
  height: 34px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
}

.detail-main {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 28px 18px 88px;
}

.detail-intro {
  margin-bottom: 26px;
}

.detail-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
}

.detail-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 8.1vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-title-tail,
.detail-title-phrase {
  display: inline-block;
  white-space: nowrap;
}

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

.detail-media {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.detail-media picture {
  display: block;
  width: 100%;
}

.detail-media img,
.detail-video video {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.detail-media img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

[data-image-preview] {
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

[data-image-preview]:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 4px;
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  animation: image-preview-in .18s ease-out both;
}

.image-preview[hidden] {
  display: none;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 14, .94);
}

.image-preview-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.image-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1800px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  object-fit: contain;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
  user-select: none;
  -webkit-user-drag: none;
}

.image-preview-close {
  position: fixed;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(12, 16, 24, .72);
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.image-preview-close:hover,
.image-preview-close:focus-visible {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .12);
}

.image-preview-close:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

@keyframes image-preview-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 860px) {
  .image-preview {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .image-preview-image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-preview { animation: none; }
}

.detail-copy {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--paper-line);
}

.detail-section-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.detail-desc {
  margin: 0;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.8;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 24px 0 0;
}

.detail-facts div {
  min-width: 0;
}

.detail-facts dt {
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: .08em;
}

.detail-facts dd {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.6;
}

.detail-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 22px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.detail-related-label {
  flex-basis: 100%;
  font-size: 12px;
  letter-spacing: .08em;
}

.detail-related a {
  color: var(--ink-mute);
  text-decoration: underline;
  text-decoration-color: var(--paper-line);
  text-underline-offset: 4px;
}

.detail-related a:hover,
.detail-related a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.detail-video-section {
  margin-top: 36px;
}

.detail-video-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .detail-video-note:hover {
    background: var(--brand-deep);
  }
}

.detail-video-note:active {
  transform: scale(.98);
}

.detail-video-note:focus-visible {
  outline: 3px solid rgba(51, 97, 214, .3);
  outline-offset: 3px;
}

.detail-video-note-icon {
  font-size: 16px;
  font-weight: 400;
}

.detail-video {
  width: min(100%, var(--detail-video-max-width, 100%));
  margin: 0 auto;
}

.detail-video video {
  height: auto;
  aspect-ratio: var(--video-aspect-ratio, 16 / 9);
  background: transparent;
  object-fit: cover;
}

.detail-empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .detail-main {
    padding-bottom: 48px;
  }

  .detail-video-section {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-video {
    order: 1;
  }

  .detail-video-note {
    display: inline-flex;
    order: 2;
    align-self: center;
    margin: 18px 0 0;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .is-detail-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity .7s cubic-bezier(.22, 1, .36, 1) var(--detail-reveal-delay, 0ms),
      transform .7s cubic-bezier(.22, 1, .36, 1) var(--detail-reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .is-detail-reveal.is-detail-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   CONTACT WIDGET
   Fixed QR contact entry shared by the homepage and project pages.
   ================================================================ */
.consult-follower {
  --follow-y: 0px;
  position: fixed;
  right: max(26px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 112px;
  height: 112px;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, var(--follow-y), 0);
  transition: opacity .2s ease, visibility 0s;
  pointer-events: none;
  will-change: transform;
}

body.modal-open .consult-follower,
body.nav-open .consult-follower,
body.image-preview-open .consult-follower {
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, visibility 0s linear .16s;
}

.consult-widget {
  position: relative;
  width: 112px;
  height: 112px;
  pointer-events: auto;
}

.consult-trigger {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  width: 112px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consult-trigger-motion {
  display: block;
  width: 76px;
  height: 76px;
  transform-origin: 50% 80%;
  animation: consult-qr-wiggle 6s ease-in-out infinite;
}

.consult-trigger-qr {
  display: block;
  position: relative;
  overflow: hidden;
  width: 76px;
  height: 76px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 26, 48, .22), 0 3px 9px rgba(15, 26, 48, .12);
  transform-origin: 50% 70%;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), border-color .2s ease;
}

.consult-trigger-qr-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.consult-label {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .consult-trigger:hover .consult-trigger-qr {
    border-color: var(--brand-bright);
    transform: translateY(-3px) scale(1.1);
  }
}

.consult-trigger:active .consult-trigger-qr {
  transform: scale(.94);
}

.consult-trigger:focus-visible {
  outline: none;
}

.consult-trigger:focus-visible .consult-trigger-qr {
  outline: 3px solid rgba(51, 97, 214, .3);
  outline-offset: 4px;
}

.consult-trigger-qr,
.consult-qr {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
}

.consult-trigger-qr-inner img,
.consult-qr img {
  position: absolute;
  top: -157.4%;
  left: -72.25%;
  width: 244.45%;
  height: auto;
  max-width: none;
}

.consult-panel {
  position: absolute;
  right: 18px;
  bottom: 104px;
  width: 398px;
  padding: 0;
  border: 1px solid rgba(197, 207, 220, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(10, 20, 48, .22), 0 5px 18px rgba(10, 20, 48, .1);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(24px, 20px, 0) scale(.18);
  transform-origin: calc(100% - 38px) 100%;
  transition:
    transform .48s cubic-bezier(.16, 1, .3, 1),
    opacity .24s ease,
    visibility 0s linear .48s;
  will-change: transform, opacity;
}

.consult-panel::after {
  content: "";
  position: absolute;
  right: 31px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-right: 1px solid var(--paper-line-strong);
  border-bottom: 1px solid var(--paper-line-strong);
  background: #fff;
  transform: rotate(45deg);
}

.consult-widget.is-open .consult-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform .52s cubic-bezier(.16, 1, .3, 1),
    opacity .22s ease,
    visibility 0s;
}

.consult-widget.is-open .consult-trigger-qr {
  border-color: var(--brand-bright);
}

.consult-widget.is-open .consult-trigger-motion {
  animation-play-state: paused;
}

@keyframes consult-qr-wiggle {
  0%, 82%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(-3deg); }
  89% { transform: rotate(2.5deg); }
  92% { transform: rotate(-1.6deg); }
  95% { transform: rotate(.8deg); }
  98% { transform: rotate(0deg); }
}

.consult-panel-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 11px;
  align-items: center;
  padding: 18px 18px 15px;
}

.consult-panel-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--brand);
}

.consult-panel-mark svg {
  width: 21px;
  height: 21px;
}

.consult-panel-copy strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.consult-panel-copy span {
  display: block;
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: 12px;
}

.consult-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consult-close svg {
  width: 20px;
  height: 20px;
}

.consult-close:hover {
  background: var(--paper-soft);
}

.consult-close:focus-visible {
  outline: 2px solid rgba(51, 97, 214, .42);
  outline-offset: 2px;
}

.consult-panel-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid var(--paper-line);
}

.consult-qr {
  width: 148px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 6px;
}

.consult-details {
  min-width: 0;
  align-self: center;
}

.consult-details > strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.consult-details > p {
  margin: 7px 0 0;
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.65;
}

.consult-case-link {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 10px;
  color: #315fd6;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  text-decoration: underline;
  text-decoration-color: rgba(49, 95, 214, .35);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.consult-case-link span { min-width: 0; }
.consult-case-link svg { flex: 0 0 12px; }
.consult-case-link:hover { color: #2146a6; text-decoration-color: currentColor; }
.consult-case-link:focus-visible { outline: 2px solid #315fd6; outline-offset: 4px; border-radius: 2px; }

body.contact-qr-open {
  overflow: hidden;
}

body.contact-qr-open .consult-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.consult-qr-modal {
  width: min(360px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 72px rgba(10, 20, 48, .28);
  overflow: hidden;
  pointer-events: auto;
}

.consult-qr-modal::backdrop {
  background: rgba(6, 12, 26, .72);
}

.consult-qr-modal[open] {
  animation: consult-qr-modal-in .24s cubic-bezier(.22, 1, .36, 1) both;
}

.consult-qr-modal-card {
  position: relative;
  padding: 28px 24px 24px;
}

.consult-qr-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--paper-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consult-qr-modal-close svg {
  width: 19px;
  height: 19px;
}

.consult-qr-modal-close:hover {
  background: var(--paper-soft);
}

.consult-qr-modal-close:focus-visible {
  outline: 3px solid rgba(51, 97, 214, .3);
  outline-offset: 2px;
}

.consult-qr-modal-copy {
  padding: 5px 38px 18px;
  text-align: center;
}

.consult-qr-modal-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.consult-qr-modal-copy p {
  margin: 7px 0 0;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.55;
}

.consult-qr-modal .consult-qr-modal-code {
  width: min(70vw, 260px);
  margin: 0 auto;
  border: 1px solid var(--paper-line-strong);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("../assets/img/wecom-contact-card.jpg");
  background-repeat: no-repeat;
  background-position: 50% 36.5%;
  background-size: 244.45% auto;
}

.consult-qr-modal-code img {
  display: none;
}

@keyframes consult-qr-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 860px) {
  .consult-follower {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    width: 90px;
    height: 100px;
  }

  .consult-widget {
    width: 90px;
    height: 100px;
  }

  .consult-trigger {
    width: 90px;
  }

  .consult-trigger-qr,
  .consult-trigger-motion {
    width: 66px;
    height: 66px;
  }

  .consult-label {
    margin-top: 8px;
    font-size: 12px;
  }

  .consult-panel {
    right: 6px;
    bottom: 96px;
    width: min(350px, calc(100vw - 36px));
    transform-origin: calc(100% - 39px) 100%;
  }

  .consult-panel::after {
    right: 32px;
  }

  .consult-panel-head {
    padding: 16px 16px 13px;
  }

  .consult-panel-body {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .consult-qr {
    width: 128px;
  }

  .consult-details > strong {
    font-size: 15px;
  }

  .consult-details > p {
    margin: 6px 0 0;
    font-size: 12px;
  }

  .consult-qr-modal {
    width: min(354px, calc(100vw - 32px));
  }

  .consult-qr-modal-card {
    padding: 26px 20px 22px;
  }

  .consult-qr-modal .consult-qr-modal-code {
    width: min(68vw, 250px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .consult-follower {
    transform: none !important;
  }

  .consult-panel,
  .consult-qr-modal,
  .consult-trigger-qr {
    transition: none !important;
    animation: none !important;
  }

  .consult-trigger-motion {
    animation: none !important;
  }
}

/* Hero marquee: preserved from the current version while the rest of the page uses the restored layout. */
.hero .marquee {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(16px, 2.2vh, 24px);
  width: min(64vw, 1310px);
  transform: translateX(-50%);
  opacity: 1;
  overflow: hidden;
  background: transparent;
  border: 0;
  transition: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%);
}

.hero .marquee::before { display: none; }

.hero .marquee-track {
  padding: clamp(30px, 2.05vw, 40px) 0;
}

.hero .marquee-set {
  gap: clamp(30px, 2.45vw, 50px);
  padding-right: clamp(30px, 2.45vw, 50px);
}

.hero .marquee-track span {
  color: rgba(255, 255, 255, .46);
  font-size: clamp(.875rem, .72rem + .45vw, 1.125rem);
  font-weight: 800;
  letter-spacing: .08em;
}

@media (max-width: 860px) {
  .hero .marquee {
    bottom: 0;
    width: 100%;
  }

  .hero .marquee-track {
    padding: 22px 0 20px;
  }

  .hero .marquee-set {
    gap: 24px;
    padding-right: 24px;
  }

  .hero .marquee-track span {
    font-size: .8125rem;
  }
}

/* ================================================================
   TOOLBOX — practical utilities index
   ================================================================ */
.toolbox-page {
  background: var(--paper-soft);
}

.toolbox-header {
  background: rgba(255, 255, 255, .94);
}

.toolbox-main {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 79px;
}

.toolbox-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 118px) 0 clamp(52px, 6vw, 82px);
  background:
    radial-gradient(circle at 84% 20%, rgba(51, 97, 214, .12), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
  border-bottom: 1px solid var(--paper-line);
}

.toolbox-hero::after {
  content: "";
  position: absolute;
  right: clamp(28px, 9vw, 150px);
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(28, 60, 140, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(28, 60, 140, .025), 0 0 0 96px rgba(28, 60, 140, .018);
  pointer-events: none;
}

.toolbox-hero-inner {
  position: relative;
  z-index: 1;
}

.toolbox-kicker,
.tool-index {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
}

.toolbox-hero h1 {
  margin: 13px 0 14px;
  color: var(--ink);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.toolbox-hero > .wrap > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--ink-mute);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.toolbox-list-section {
  padding: clamp(48px, 6vw, 84px) 0 clamp(72px, 8vw, 112px);
}

.toolbox-list {
  display: grid;
  gap: 22px;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  min-height: 340px;
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  min-width: 0;
  box-shadow: 0 12px 40px rgba(16, 34, 72, .055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #d4ddec;
  box-shadow: 0 18px 48px rgba(16, 34, 72, .085);
}

.tool-media {
  position: relative;
  align-self: center;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: #0b1224;
  border-radius: 8px;
}

.tool-media video {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1224;
}

/* Static SVG covers on tools.html (replaced the old "video coming soon" placeholders). */
.tool-media-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 6px 0 2px;
}

.tool-card h2 {
  margin: 11px 0 13px;
  color: var(--ink);
  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.tool-description {
  max-width: 680px;
  margin: 0;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.tool-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-tags li {
  padding: 7px 11px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  background: var(--brand-soft);
  border-radius: 3px;
}

.tool-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--brand-bright);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.tool-cta svg {
  transition: transform .2s ease;
}

.tool-cta:hover svg {
  transform: translateX(4px);
}

.tool-cta:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 4px;
}

.tool-cta.is-disabled {
  color: var(--ink-mute);
  cursor: default;
}

@media (max-width: 980px) {
  .tool-card {
    grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
    gap: 28px;
  }

  .tool-card-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .toolbox-main {
    padding-top: calc(69px + env(safe-area-inset-top));
  }

  .toolbox-hero {
    padding: 48px 0 42px;
  }

  .toolbox-hero::after {
    right: -120px;
    bottom: -170px;
  }

  .toolbox-hero h1 {
    margin-top: 10px;
    font-size: clamp(38px, 11vw, 52px);
  }

  .toolbox-list-section {
    padding: 28px 0 70px;
  }

  .toolbox-list {
    gap: 16px;
  }

  .tool-card {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 18px;
    border-radius: 10px;
  }

  .tool-card:hover {
    transform: none;
  }

  .tool-card-content {
    padding: 0 2px 2px;
  }

  .tool-card h2 {
    margin: 8px 0 10px;
    font-size: 27px;
  }

  .tool-description {
    font-size: 15px;
    line-height: 1.75;
  }

  .tool-card-bottom {
    margin-top: 22px;
  }

  .tool-tags {
    gap: 6px;
  }

  .tool-tags li {
    padding: 6px 9px;
    font-size: 12px;
  }

  .tool-cta {
    width: 100%;
    justify-content: space-between;
    padding: 0 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-cta svg {
    transition: none;
  }
}

/* ================================================================
   HOMEPAGE TOOLS SHOWCASE
   ================================================================ */
.tools-showcase {
  background: var(--paper-soft);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.tools-showcase .section-head {
  max-width: 1180px;
}

.tool-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1180px;
}

.tool-showcase-card {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  height: 308px;
  min-width: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .22s ease, box-shadow .22s ease;
}

.tool-showcase-card:hover {
  border-color: #cfd9ea;
  box-shadow: 0 12px 30px rgba(16, 34, 72, .065);
}

.tool-showcase-open {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.tool-showcase-open:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

/* Where :has() is supported, draw the focus ring around the whole card instead. */
@supports selector(:has(*)) {
  .tool-showcase-open:focus-visible { outline: none; }
  .tool-showcase-card:has(.tool-showcase-open:focus-visible) {
    outline: 2px solid var(--brand-bright);
    outline-offset: 4px;
  }
}

.tool-showcase-media {
  position: relative;
  align-self: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 8 / 5;
  background: var(--bg-dark);
  border-radius: 4px;
}

.tool-showcase-media::after {
  display: none;
}

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

.tool-showcase-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--brand-bright);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.tool-showcase-action svg,
.tool-modal-download svg,
.modal-project-link svg {
  transition: transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tool-showcase-action:hover,
  .tool-modal-download:hover,
  .modal-project-link:hover {
    color: var(--brand-deep);
  }

  .tool-showcase-action:hover svg,
  .tool-modal-download:hover svg,
  .modal-project-link:hover svg {
    transform: translateX(4px);
  }
}

.tool-showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 2px;
}

.tool-showcase-info h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.tool-showcase-info p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.75;
}

.tool-showcase-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 22px;
}

.tool-showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-showcase-tags li {
  padding: 7px 10px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
}

.tool-modal-download {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 12px 2px 0 auto;
  color: var(--brand-bright);
  font-size: 15px;
  font-weight: 800;
}

.tool-modal-download[hidden] {
  display: none;
}

.tool-modal-download:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

/* The download link now lives inside the overview intro panel (jsmain-16). */
.modal-tool-intro .tool-modal-download {
  margin: 18px 2px 0 auto;
}

/* "View full case" link in the work modal (runtime-02). */
.modal-project-link {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 16px 2px 0 auto;
  color: var(--brand-bright);
  font-size: 15px;
  font-weight: 800;
}

.modal-project-link[hidden] {
  display: none;
}

.modal-project-link:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

.modal-tool-intro {
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper-soft);
  border: 1px solid var(--paper-line);
  border-radius: 4px;
}

.modal-tool-intro[hidden],
.full-video-note[hidden] {
  display: none;
}

.modal-tool-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.modal-tool-intro ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.modal-tool-intro li {
  padding: 6px 10px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 860px) {
  .tool-showcase-card {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    height: 208px;
    padding: 22px;
  }

  .tool-showcase-info h3 {
    font-size: 24px;
  }

  .tool-showcase-info p {
    -webkit-line-clamp: 2;
    font-size: 14px;
  }

  .tool-showcase-bottom {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding-top: 10px;
  }
}

@media (max-width: 760px) {
  .tool-showcase-card {
    grid-template-columns: 1fr;
    gap: 20px;
    height: auto;
    padding: 16px;
  }

  .tool-showcase-media {
    aspect-ratio: 16 / 9;
  }

  .tool-showcase-bottom {
    align-items: center;
    flex-direction: row;
  }

  .tool-showcase-info p {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 520px) {
  .tool-showcase-grid {
    gap: 16px;
  }

  .tool-showcase-card {
    gap: 18px;
    padding: 14px;
  }

  .tool-showcase-info {
    padding: 0 2px 2px;
  }

  .tool-showcase-info h3 {
    font-size: 23px;
  }

  .tool-showcase-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
  }

  .tool-modal-download,
  .modal-project-link {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 2px;
  }

  .modal-tool-intro .tool-modal-download {
    margin-top: 16px;
  }

  .modal-tool-intro {
    margin-top: 12px;
    padding: 16px;
  }

  .modal-tool-intro p {
    font-size: 14px;
    line-height: 1.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-showcase-card,
  .tool-showcase-media img,
  .tool-showcase-action,
  .tool-modal-download svg,
  .modal-project-link svg {
    transition: none;
  }
}

/* Personal WeChat card: display the QR region with its white quiet zone. */
.consult-trigger-qr-inner img,
.consult-qr img {
  top: -45.625%;
  left: -19.375%;
  width: 138.75%;
  height: auto;
}
.wechat-qr-crop {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}
.wechat-qr-crop img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.consult-qr-modal .consult-qr-modal-code { background-image: none; }
.consult-qr-modal-code img { display: block; }
.consult-qr-modal-copy h2 { color: #0d1933; }
.consult-qr-modal-copy p { color: #667288; }
.consult-contact-methods {
  display: grid;
  gap: 8px;
  margin: 0 18px;
  padding: 13px 0 17px;
  border-top: 1px solid #dce4ef;
}
.consult-contact-methods a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  color: #263650;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
}
.consult-contact-methods a span { color: #667288; flex-shrink: 0; }
.consult-contact-methods a strong { font-weight: 400; overflow-wrap: anywhere; }
.consult-contact-methods a:hover strong { color: #315fd6; text-decoration: underline; }
.consult-contact-methods a:focus-visible { outline: 2px solid #315fd6; outline-offset: 3px; }
.consult-panel {
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  /* Keep the panel scrollable on small screens without showing a browser bar. */
  -ms-overflow-style: none;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}
.consult-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Mobile browsers can keep :hover after a tap. Keep dark controls stable. */
@media (max-width: 860px) {
  .site-header .lang-switch,
  .site-header.scrolled .lang-switch,
  .nav-open .lang-switch,
  .site-header .lang-switch:hover,
  .site-header.scrolled .lang-switch:hover,
  .nav-open .lang-switch:hover,
  .site-header .lang-switch:active,
  .site-header.scrolled .lang-switch:active,
  .nav-open .lang-switch:active {
    color: var(--ink) !important;
    background: rgba(9, 14, 24, .96) !important;
    border-color: var(--paper-line-strong) !important;
    -webkit-tap-highlight-color: transparent;
  }

  .site-header .lang-switch,
  .contact-card.alt .btn {
    -webkit-tap-highlight-color: transparent;
  }

  .contact-card.alt .btn,
  .contact-card.alt .btn:hover,
  .contact-card.alt .btn:active,
  .contact-card.alt .btn:focus {
    color: #fff !important;
    background: var(--brand-strong, var(--brand)) !important;
    border-color: var(--brand-strong, var(--brand)) !important;
  }

  .contact-card.alt .btn:active {
    transform: none;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ================================================================
   2026-10 FIXES — components added by the page groups
   (skip link, hero motion toggle, copy-WeChat controls, detail-page
   header actions / pager / footer, privacy page). Colours use the
   tokens that css/dark-system.css redefines for the dark theme.
   ================================================================ */

/* Skip link (a11y-18): off-screen until focused. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border: 1px solid var(--brand-bright);
  border-radius: 4px;
  background: #0c1017;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}

/* Screen-reader-only text (seo-16 / a11y-10). */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* English mode: the capability tag only repeats the translated title (content-14). */
html[lang="en"] .cap-tag { display: none; }

/* Hero background-video pause / play (a11y-06 / jsmain-08).
   Bottom-left, aligned with the hero copy, clear of the marquee and of the
   floating contact button in the bottom-right corner. */
.hero-motion-toggle {
  position: absolute;
  z-index: 5;
  left: max(clamp(20px, 3.5vw, 56px), calc((100% - 1360px) / 2));
  bottom: clamp(24px, 3vh, 36px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(6, 8, 13, .55);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, border-color .2s ease;
}

.hero-motion-toggle svg[hidden] { display: none; }

.hero-motion-toggle:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .hero-motion-toggle:hover {
    border-color: rgba(255, 255, 255, .6);
    background: rgba(6, 8, 13, .8);
  }
}

.hero.is-motion-paused .marquee-track { animation-play-state: paused; }

@media (max-width: 860px) {
  .hero-motion-toggle {
    left: 20px;
    bottom: 68px; /* above the full-width marquee strip */
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 520px) {
  .hero-motion-toggle { left: 18px; }
}

/* "View all tools" link under the homepage tool cards (seo-12 / content-20). */
.tools-more {
  display: flex;
  justify-content: flex-end;
  max-width: 1180px;
  margin-top: 28px;
}

.tools-more .chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Copy-WeChat controls (a11y-03 / jsother-09). Light card colours match .consult-contact-methods. */
.consult-wechat-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  line-height: 1.6;
}

.consult-wechat-row > span { color: #667288; }

.consult-wechat-row > strong {
  color: #0d1933;
  font-weight: 400;
  letter-spacing: .02em;
  -webkit-user-select: all;
  user-select: all;
}

.consult-copy-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #c5cfdc;
  border-radius: 999px;
  background: #fff;
  color: #315fd6;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .consult-copy-button:hover { background: #f1f5fb; }
}

.consult-copy-button:focus-visible {
  outline: 2px solid #315fd6;
  outline-offset: 2px;
}

.consult-copy-status {
  margin: 0;
  color: #1f7a4d;
  font-size: 12px;
  line-height: 1.5;
}

.consult-copy-status:empty { display: none; }

.consult-qr-modal-hint {
  margin: 12px 0 0;
  color: #667288;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.consult-qr-modal-hint:empty { display: none; }

.consult-qr-modal-wechat {
  justify-content: center;
  margin-top: 10px;
}

.consult-qr-modal .consult-copy-status {
  margin-top: 6px;
  text-align: center;
}

/* The QR <dialog> lives inside .consult-follower; keep it visible even while
   the floating trigger is docked or hidden (it renders in the top layer). */
.consult-qr-modal[open] { visibility: visible; }

@media (max-width: 860px) {
  .consult-copy-button { min-height: 40px; }

  /* Dock the floating trigger while the contact section, footer or a case
     video is on screen (a11y-16 / runtime-17), and while the hero CTAs are
     visible (css-07). Kept as two rules without :has() so browsers lacking
     :has() support still apply the docked state; contact-widget.js mirrors
     the open panel as .is-panel-open on the root. */
  .consult-follower.is-docked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility 0s linear .16s;
  }

  body.hero-cta-visible .consult-follower:not(.is-panel-open) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility 0s linear .16s;
  }
}

/* WeChat ID row in the homepage QR dialog (dark surface). */
.qr-dialog-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 14px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.6;
}

.qr-dialog-id strong {
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  -webkit-user-select: all;
  user-select: all;
}

.qr-dialog-id .consult-copy-button {
  border-color: rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .qr-dialog-id .consult-copy-button:hover { background: rgba(255, 255, 255, .08); }
}

.qr-dialog-id .consult-copy-button:focus-visible { outline-color: var(--brand-bright); }

.qr-dialog-id .consult-copy-status {
  flex-basis: 100%;
  color: #6fdc9c;
  text-align: center;
}

/* Detail pages (case pages, project.html, 404, privacy): header actions. */
.detail-actions,
.detail-header-actions {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.detail-header .lang-switch {
  height: 40px;
  min-width: 72px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, .035);
  color: var(--ink-soft);
}

@media (hover: hover) and (pointer: fine) {
  .detail-header .lang-switch:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: #fff;
  }
}

.detail-back { white-space: nowrap; }

/* Keep hidden blocks hidden even if a display value is set later. */
.project-detail-page [hidden] { display: none !important; }

/* Previous / next case links (gap-07 / seo-13). */
.detail-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.detail-pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--paper-line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.detail-pager-next {
  align-items: flex-end;
  text-align: right;
}

.detail-pager-next:only-child { grid-column: 2; }

.detail-pager-label {
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
}

.detail-pager-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  .detail-pager-link:hover {
    border-color: var(--brand);
    background-color: rgba(255, 255, 255, .02);
  }
}

.detail-pager-link:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

/* Detail-page footer: filing numbers, privacy link, brand notice (seo-15 / seo-10 / content-07). */
.detail-footer {
  width: min(1280px, calc(100% - clamp(36px, 7vw, 112px)));
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--paper-line);
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.7;
}

.detail-footer p { margin: 0; }

.detail-footer .detail-footer-note {
  margin-bottom: 8px;
  color: var(--ink-faint);
}

.detail-footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.detail-footer a {
  color: inherit;
  transition: color .2s ease;
}

.detail-footer a:hover,
.detail-footer a:focus-visible { color: var(--ink); }

/* Privacy page (seo-10). */
.privacy-main .detail-copy {
  max-width: 860px;
  padding-top: 28px;
}

.privacy-main .detail-title { font-size: clamp(44px, 7vw, 96px); }

.privacy-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
}

.privacy-list li::marker { color: var(--brand-bright); }

.privacy-main .detail-desc a,
.privacy-main .detail-facts a {
  color: var(--brand-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-main .privacy-updated {
  margin-top: 16px;
  color: var(--ink-mute);
  font-size: 13px;
}

.site-footer.privacy-footer { padding-top: 28px; }

@media (max-width: 860px) {
  .detail-footer {
    width: calc(100% - 36px);
    /* leave room for the floating contact button in the bottom-right corner */
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .detail-pager { grid-template-columns: 1fr; }
  .detail-pager-next:only-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .detail-actions,
  .detail-header-actions { gap: 8px; }

  /* The <=520 header switch draws its box with ::before; detail headers use a plain border instead. */
  .detail-header .lang-switch {
    width: auto;
    min-width: 60px;
    height: 40px;
    padding: 0 8px;
    gap: 6px;
    border: 1px solid var(--paper-line-strong);
    border-radius: 2px;
    background: rgba(255, 255, 255, .035);
  }

  .detail-header .lang-switch::before { display: none; }
}

@media (max-width: 380px) {
  .detail-header .detail-brand img { width: 112px; height: auto; }
  .detail-header .detail-back { min-width: 0; padding-inline: 10px; }
}

/* 320–360px with the English labels (“Back to Work”) the logo touched the
   language switch (browser-01). Keep at least 8px between the logo and the
   actions: fixed-size logo (aspect kept), tighter switch and back link. */
@media (max-width: 360px) {
  .detail-header { gap: 8px; }
  .detail-header .detail-brand { flex: none; }
  .detail-header .detail-brand img { width: 96px; height: auto; }
  .detail-actions,
  .detail-header-actions { margin-left: auto; gap: 8px; }
  .detail-header .lang-switch { min-width: 56px; padding: 0 6px; }
  .detail-header .detail-back { padding-inline: 8px; font-size: 12px; }
}
.work-media[data-work-link]{display:block}

/* v1.17 手机上作品筛选按钮自动换行，不再藏在右边要横着滑才看得到 */
@media (max-width: 600px) {
  .works .work-filters { flex-wrap: wrap; overflow-x: visible; }
  .work-filters .chip { min-height: 38px; padding: 7px 13px; }
}

/* v1.58 手机端：右下角浮动二维码会压住正文，而且手机上扫不了自己屏幕上的码，改成底部联系横栏 */
.consult-bar-label,
.consult-bar-call { display: none; }

@media (max-width: 860px) {
  .consult-follower {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(6, 8, 13, .92);
    border-top: 1px solid rgba(244, 247, 255, .11);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: none;
  }
  .consult-widget {
    display: flex;
    gap: 10px;
    width: 100%;
    height: auto;
  }
  .consult-trigger {
    position: static;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 46px;
    border-radius: 2px;
    background: #3f63e6;
    color: #fff;
  }
  .consult-trigger-motion,
  .consult-label { display: none; }
  .consult-bar-label {
    display: inline;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .consult-bar-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34%;
    min-height: 46px;
    border: 1px solid rgba(244, 247, 255, .22);
    border-radius: 2px;
    color: #f4f6fb;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .consult-panel {
    right: 0;
    bottom: calc(100% + 12px);
    width: min(350px, calc(100vw - 32px));
  }
  .consult-panel::after { display: none; }
}
