/* ==========================================================================
   GUAN DI — INTERNATIONAL TYPOGRAPHIC STYLE (SWISS 12-COLUMN MASTER GRID)
   Unified Plumb Lines: Col 1 (0%) · Col 5 (33.33%) · Col 9 (66.67%)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f5f5f4;
  --ink: #0f0f0f;
  --ink-2: #2b2b2b;
  --ink-muted: #636363;
  --ink-faint: #8e8e8e;
  --line: #0f0f0f;
  --line-mid: rgba(15, 15, 15, 0.24);
  --line-soft: rgba(15, 15, 15, 0.12);
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grid-gap: clamp(20px, 2.2vw, 32px);
  --page-pad: clamp(24px, 2.6vw, 40px);
  --max-w: 1840px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img, video {
  display: block;
  max-width: 100%;
}

.page-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ==================== SWISS STICKY HEADER (12-COLUMN LOCK) ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 64px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
}

.brand-lockup {
  grid-column: 1 / span 4;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  justify-self: start;
}

.brand-en {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-cn {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-muted);
}

.header-descriptor {
  grid-column: 5 / span 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-sep {
  color: var(--ink-faint);
}

.site-nav {
  grid-column: 9 / span 4;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ==================== UNIFIED 12-COLUMN SECTION BANNER ==================== */
.section-block {
  padding: 88px 0 96px;
}

.section-works {
  padding-top: 44px;
}

.section-banner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 32px;
}

.banner-left {
  grid-column: 1 / span 4;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sec-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.sec-title-cn {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.banner-center {
  grid-column: 5 / span 5;
  min-width: 0;
}

.sec-title-en {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
}

.sec-sub-cn {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.banner-right {
  grid-column: 10 / span 3;
  justify-self: end;
  text-align: right;
}

.sec-count {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ==================== 01 / WORKS TOOLBAR & 3-COL SWISS GALLERY ==================== */
.works-toolbar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}

.filter-bar {
  grid-column: 1 / span 9;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.filter-tab {
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

.view-toggle {
  grid-column: 10 / span 3;
  justify-self: end;
  display: inline-flex;
  gap: 16px;
}

.view-btn {
  padding: 4px 0;
  font-size: 12px;
  color: var(--ink-faint);
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.view-btn.active,
.view-btn:hover {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

/* 3 Columns = 4 + 4 + 4 of the 12-Col Master Grid */
.works-gallery[data-view="grid"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px var(--grid-gap);
}

.work-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
}

.work-cover-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 4.8;
}

.work-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-cover-wrap img,
.work-card:focus-visible .work-cover-wrap img {
  transform: scale(1.024);
}

.work-media-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  background: rgba(15, 15, 15, 0.85);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.work-caption {
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.work-caption-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.work-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.work-idx {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.work-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-year {
  font-size: 11.5px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.work-caption-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding-left: 21px;
}

.work-cat {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.work-sub-cn {
  min-width: 0;
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Swiss Index List View (12-Column Aligned) */
.works-gallery[data-view="list"] {
  display: flex;
  flex-direction: column;
}

.work-list-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.work-list-row:hover {
  background-color: rgba(15, 15, 15, 0.02);
}

.work-list-lead {
  grid-column: 1 / span 4;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.work-list-thumb {
  width: 88px;
  height: 56px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.work-list-title {
  grid-column: 5 / span 4;
  min-width: 0;
}

.work-list-title strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.work-list-title span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-list-cat {
  grid-column: 9 / span 2;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.work-list-year {
  grid-column: 11 / span 1;
  font-size: 12px;
  color: var(--ink-muted);
}

.work-cta {
  grid-column: 12 / span 1;
  justify-self: end;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

/* ==================== 02 / ABOUT (LIGHT WHITE-THEME BENTO CARDS & TIMELINE) ==================== */
.about-bento-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.about-profile-card {
  position: sticky;
  top: 84px;
  padding: 24px;
  border-radius: 22px;
  background: #fafafa;
  border: 1px solid rgba(15, 15, 15, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-profile-card .portrait-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #efefef;
  border: 1px solid rgba(15, 15, 15, 0.08);
}

.about-profile-card .portrait-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.portrait-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(154, 120, 56, 0.35);
  font-size: 11px;
  font-weight: 500;
  color: #8b6a2c;
}

.profile-identity h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.profile-identity h3 .name-en {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: #8b6a2c;
}

.profile-role {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: #8b6a2c;
}

.profile-bio {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: #555555;
}

.profile-quick-facts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid rgba(15, 15, 15, 0.09);
  border-bottom: 1px solid rgba(15, 15, 15, 0.09);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
}

.fact-label {
  color: var(--ink-muted);
}

.fact-val {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.block-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.skill-meta span:last-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #8b6a2c;
}

.skill-sub {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.skill-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.08);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8944f, #8b6a2c);
}

.tools-block {
  padding-top: 16px;
  border-top: 1px solid rgba(15, 15, 15, 0.09);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-group-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #8b6a2c;
  margin-bottom: 7px;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-chips span {
  padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 15, 15, 0.12);
  font-size: 11.5px;
  color: #222222;
}

/* Right Detail Panels */
.about-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.detail-panel {
  padding: 28px 30px;
  border-radius: 22px;
  background: #fafafa;
  border: 1px solid rgba(15, 15, 15, 0.1);
}

.panel-head {
  margin-bottom: 22px;
}

.panel-tag {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #8b6a2c;
}

.panel-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.timeline {
  position: relative;
  padding-left: 22px;
  border-left: 1px solid rgba(15, 15, 15, 0.15);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9a7838;
  box-shadow: 0 0 0 4px #fafafa;
}

.timeline-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  color: #8b6a2c;
  margin-bottom: 4px;
}

.timeline-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.timeline-title-row h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.timeline-sub {
  font-size: 12px;
  color: var(--ink-faint);
}

.timeline-list {
  margin: 0;
  padding-left: 18px;
  color: #444444;
  font-size: 13.5px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.two-col-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.edu-list,
.award-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-item,
.award-item {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
}

.edu-item:last-child,
.award-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.edu-year,
.award-year {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: #8b6a2c;
  display: block;
  margin-bottom: 3px;
}

.edu-item strong,
.award-item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.edu-item p,
.award-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.award-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
}

.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-tags span {
  padding: 7px 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 15, 15, 0.12);
  font-size: 13px;
  color: #222222;
}

/* ==================== DIRECT INLINE TEXT EDITING STYLES ==================== */
body.is-editing [data-inline-path] {
  outline: 1px dashed rgba(15, 15, 15, 0.32);
  outline-offset: 4px;
  border-radius: 2px;
  cursor: text;
  transition: outline-color 0.15s ease, background-color 0.15s ease;
}

body.is-editing [data-inline-path]:hover {
  outline-color: var(--ink);
  background-color: rgba(15, 15, 15, 0.03);
}

body.is-editing [data-inline-path]:focus {
  outline: 1.5px solid var(--ink);
  background-color: rgba(255, 248, 210, 0.38);
}

body.is-editing .floating-edit-fab {
  display: none;
}

/* ==================== 03 / PURE SPATIAL CONTACT & COLOPHON (ZERO EXTRA LINES) ==================== */
.section-contact {
  padding-bottom: 44px;
}

.contact-editorial {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 40px;
  align-items: start;
  padding: 28px 0 112px;
}

.contact-statement-col {
  grid-column: 1 / span 4;
  padding-right: 12px;
}

.contact-lead {
  margin: -0.08em 0 16px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.contact-invite-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-muted);
}

.contact-channels-col {
  grid-column: 5 / span 4;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-meta-col {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-value-btn {
  padding: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-align: left;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: opacity 0.18s ease;
}

.copy-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s ease;
}

.contact-value-btn:hover {
  opacity: 0.65;
}

.contact-value-btn:hover .copy-tag {
  opacity: 1;
}

.contact-static-val {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.contact-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.contact-practice-list {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.site-footer {
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.footer-right-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.edit-mode-trigger {
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  transition: color 0.18s ease;
}

.edit-mode-trigger:hover {
  color: var(--ink);
}

/* ==================== FULLSCREEN CASE STUDY READER (ABCD 12-COLUMN EDITORIAL GRID) ==================== */
.case-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #ffffff;
  color: #000000;
  display: flex;
  flex-direction: column;
}

.case-overlay[hidden] {
  display: none;
}

.case-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #ffffff;
}

.case-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: clamp(22px, 2.2vw, 32px) clamp(24px, 2.6vw, 40px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.case-topbar-grid {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 2.8vw, 40px);
  align-items: baseline;
}

.case-topbar-left {
  grid-column: 1 / span 8;
}

.case-topbar-right {
  grid-column: 9 / span 4;
  display: flex;
  justify-content: flex-start;
}

.case-back-btn {
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  color: #000000;
  transition: opacity 0.18s ease;
}

.case-back-btn:hover {
  opacity: 0.55;
}

.case-close-text {
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #000000;
  transition: opacity 0.18s ease;
}

.case-close-text:hover {
  opacity: 0.55;
}

.case-article {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: clamp(20px, 2.2vw, 34px) clamp(24px, 2.6vw, 40px) 96px;
}

.abcd-intro-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 2.8vw, 40px);
  align-items: start;
  padding: 0 0 clamp(44px, 4vw, 64px);
}

.abcd-col-meta {
  grid-column: 1 / span 3;
  min-width: 0;
}

.abcd-col-meta h1 {
  margin: -0.06em 0 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #000000;
}

.abcd-credits {
  margin-top: clamp(24px, 2.1vw, 32px);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.005em;
  color: #000000;
}

.abcd-credit-line {
  margin: 0;
}

.abcd-col-en {
  grid-column: 4 / span 5;
  min-width: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: -0.003em;
  color: #000000;
}

.abcd-col-cn {
  grid-column: 9 / span 4;
  min-width: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.56;
  letter-spacing: 0.005em;
  color: #000000;
  line-break: strict;
}

.abcd-col-en p,
.abcd-col-cn p {
  margin: 0 0 19px;
  color: #000000;
}

.abcd-col-en p:last-child,
.abcd-col-cn p:last-child {
  margin-bottom: 0;
}

.abcd-quote-inline {
  font-style: italic;
}

.case-media-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-section {
  padding: 68px 0 0;
}

.case-section.outcome-section {
  padding-top: 0;
}

.abcd-sec-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2fr);
  gap: clamp(28px, 3.6vw, 64px);
  padding: 24px 0 32px;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}

.abcd-sec-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.abcd-sec-title .mono-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #000000;
}

.abcd-sec-title span:last-child {
  font-size: 13px;
  color: var(--ink-muted);
}

.abcd-sec-note {
  margin: 0;
  max-width: 780px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-2);
}

.case-outcome-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-video-frame {
  width: 100%;
  background: #0a0a0a;
}

.case-video-frame video {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #0a0a0a;
}

.case-video-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 0;
  background: #ffffff;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.case-hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.case-hero-img {
  width: 100%;
  height: auto;
  background: var(--surface);
  cursor: zoom-in;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 64px);
  padding-bottom: 36px;
}

.rule-card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.rule-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
}

.rule-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.palette-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.swatch-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swatch-color {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.swatch-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
}

.swatch-info strong {
  font-weight: 500;
}

.swatch-info span {
  font-size: 11px;
  color: var(--ink-faint);
}

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

.extension-grid.seamless {
  gap: 0;
  background: #0a0a0a;
}

.extension-grid.seamless .extension-item {
  background: #0a0a0a;
}

.extension-grid.seamless .extension-item:hover img {
  opacity: 1;
}

.extension-item {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
}

.extension-item.wide {
  grid-column: span 2;
}

.extension-item img {
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease;
}

.extension-item:hover img {
  opacity: 0.94;
}

.delivery-bullets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 64px);
  padding-bottom: 36px;
}

.delivery-card strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.delivery-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.case-footer-nav {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.case-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: opacity 0.2s ease;
}

.case-nav-btn.next {
  text-align: right;
}

.case-nav-btn:hover {
  opacity: 0.5;
}

.case-nav-btn span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.case-nav-btn strong {
  font-size: 18px;
  font-weight: 400;
}

.case-copyright-bar {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--ink-faint);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 16, 16, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-figure figcaption {
  font-size: 12px;
  color: #aaaaaa;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(16, 16, 16, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 16px;
}

.lightbox-nav.prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==================== BUILT-IN EDIT MODE ==================== */
.edit-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  background: var(--ink);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.edit-bar[hidden] {
  display: none;
}

.edit-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.edit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

.edit-hint {
  font-size: 12px;
  color: #aaaaaa;
}

.edit-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.edit-btn.primary {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  font-weight: 500;
}

.edit-btn.danger {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.35);
}

.editor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 100vw);
  z-index: 160;
  background: #ffffff;
  color: var(--ink);
  border-left: 1px solid var(--line-soft);
  box-shadow: -20px 0 48px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
}

.editor-drawer[hidden] {
  display: none;
}

.editor-drawer-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-drawer-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.editor-close-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-soft);
}

.editor-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ed-group {
  padding: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ed-group-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0;
}

.ed-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ed-field label {
  font-size: 12px;
  color: var(--ink-2);
}

.ed-field input,
.ed-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
}

.ed-field textarea {
  min-height: 72px;
  resize: vertical;
}

.ed-proj-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ed-proj-tab {
  padding: 5px 9px;
  font-size: 12px;
  border: 1px solid var(--line-soft);
}

.ed-proj-tab.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.ed-save-btn {
  padding: 10px 16px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
}

/* ==================== DIRECT ON-PAGE IMAGE EDITING OVERLAYS ==================== */
.floating-edit-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  padding: 8px 14px;
  background: rgba(16, 16, 16, 0.78);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.55;
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-edit-fab:hover {
  opacity: 1;
  transform: translateY(-2px);
}

body.is-editing .floating-edit-fab {
  display: none;
}

body.is-editing {
  padding-bottom: 72px;
}

.img-edit-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(16, 16, 16, 0.36);
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  pointer-events: auto;
}

body.is-editing .img-edit-overlay {
  display: flex;
}

body.is-editing .work-cover-wrap,
body.is-editing .portrait-box,
body.is-editing .case-hero-wrap,
body.is-editing .extension-item {
  outline: 2px dashed rgba(16, 16, 16, 0.5);
  outline-offset: -2px;
}

.img-edit-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ie-btn {
  padding: 6px 10px;
  background: rgba(16, 16, 16, 0.9);
  color: #ffffff;
  font-size: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.15s ease;
}

.ie-btn:hover {
  background: #000000;
  border-color: #ffffff;
}

.ie-btn.ie-primary {
  background: #ffffff;
  color: #101010;
  border-color: #ffffff;
  font-weight: 500;
}

.ie-btn.ie-danger {
  background: rgba(185, 28, 28, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
}

.add-img-dropzone {
  display: none;
  min-height: 220px;
  border: 2px dashed rgba(16, 16, 16, 0.32);
  background: var(--surface);
  color: var(--ink-2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.add-img-dropzone:hover {
  border-color: var(--ink);
  background: #efefef;
}

body.is-editing .add-img-dropzone {
  display: flex;
}

.add-img-dropzone strong {
  font-size: 14px;
  font-weight: 500;
}

.add-img-dropzone span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Image Crop / Adjust Popover */
.img-adjust-popover {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 310px;
  z-index: 180;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.img-adjust-popover[hidden] {
  display: none;
}

.adjust-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.adjust-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adjust-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adjust-row label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
}

.adjust-row input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}

.adjust-fit-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.fit-opt {
  padding: 6px 8px;
  font-size: 11.5px;
  border: 1px solid var(--line-soft);
  color: var(--ink-muted);
}

.fit-opt.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.adjust-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.adj-reset-btn {
  padding: 7px 12px;
  font-size: 12px;
  border: 1px solid var(--line-soft);
  color: var(--ink-muted);
}

.adj-done-btn {
  padding: 7px 16px;
  font-size: 12px;
  background: var(--ink);
  color: #ffffff;
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  z-index: 250;
  padding: 10px 18px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .about-bento-grid {
    grid-template-columns: 1fr;
  }
  .about-profile-card {
    position: static;
  }
  .two-col-panels {
    grid-template-columns: 1fr;
  }
  .header-inner {
    display: flex;
    justify-content: space-between;
  }
  .header-descriptor {
    display: none;
  }
  .section-banner,
  .works-toolbar,
  .about-row,
  .abcd-intro-grid,
  .abcd-sec-header,
  .contact-editorial {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .banner-left,
  .banner-center,
  .banner-right,
  .filter-bar,
  .view-toggle,
  .about-portrait-col,
  .about-side-label,
  .about-main-col,
  .contact-statement-col,
  .contact-channels-col,
  .contact-meta-col,
  .abcd-col-meta,
  .abcd-col-en,
  .abcd-col-cn {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
  .about-portrait-col {
    max-width: 300px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exp-ledger-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .works-gallery[data-view="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-list-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }
  .work-list-lead {
    grid-column: 1;
  }
  .work-list-title {
    grid-column: 2;
  }
  .work-cta {
    grid-column: 3;
    justify-self: end;
  }
  .work-list-cat,
  .work-list-year {
    display: none;
  }
  .case-topbar-grid {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
}

@media (max-width: 680px) {
  .works-gallery[data-view="grid"],
  .extension-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tools-spec-row,
  .clients-ledger {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .extension-item.wide {
    grid-column: span 1;
  }
  .work-list-thumb {
    display: none;
  }
}

/* ==================== PHONE REFINEMENT (≤ 480px) ==================== */
@media (max-width: 480px) {
  :root {
    --page-pad: 20px;
    --grid-gap: 18px;
  }

  /* Header：更紧凑的纵向高度与导航间距，保留可点区域 */
  .header-inner {
    height: 56px;
  }
  .brand-lockup {
    gap: 8px;
  }
  .site-nav {
    gap: 16px;
  }
  .nav-link,
  .filter-tab,
  .view-btn {
    padding: 9px 0;
  }

  /* Sections：收掉桌面端的大留白 */
  .section-block {
    padding: 56px 0 64px;
  }
  .section-works {
    padding-top: 24px;
  }
  .section-banner {
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 20px;
  }
  .sec-title-cn {
    font-size: 26px;
  }

  /* Works toolbar & grid */
  .works-toolbar {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }
  .filter-bar {
    gap: 4px 16px;
  }
  .works-gallery[data-view="grid"] {
    gap: 36px var(--grid-gap);
  }
  .work-caption {
    padding: 12px 0;
  }
  .work-caption-bottom {
    padding-left: 0;
    gap: 10px;
  }
  .work-name {
    font-size: 15px;
  }

  /* Index list view */
  .work-list-row {
    padding: 14px 0;
  }

  /* About */
  .about-bento-grid {
    gap: 20px;
  }
  .about-profile-card {
    padding: 18px;
    border-radius: 18px;
  }

  /* Contact & footer */
  .contact-editorial {
    padding: 20px 0 56px;
    row-gap: 32px;
  }
  .contact-channels-col,
  .contact-meta-col {
    gap: 28px;
  }
  .site-footer {
    gap: 10px;
    font-size: 10.5px;
  }

  /* Case study reader */
  .case-topbar {
    padding: 14px var(--page-pad);
  }
  .case-back-btn {
    font-size: 22px;
  }
  .case-article {
    padding: 12px var(--page-pad) 72px;
  }
  .abcd-intro-grid {
    padding-bottom: 32px;
  }
  .abcd-intro-grid,
  .case-media-stream,
  .extension-grid {
    gap: 16px;
  }
  .case-section {
    padding-top: 44px;
  }
  .abcd-sec-header {
    padding: 18px 0 22px;
    gap: 10px;
  }

  /* Lightbox：窄屏把翻页按钮压到屏幕边缘 */
  .lightbox {
    padding: 16px;
  }
  .lightbox-nav.prev {
    left: 8px;
  }
  .lightbox-nav.next {
    right: 8px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* ==================== LANDSCAPE PHONE (SHORT VIEWPORT) ==================== */
@media (orientation: landscape) and (max-height: 480px) {
  .section-block {
    padding: 40px 0 48px;
  }
  .section-works {
    padding-top: 20px;
  }
  .section-banner {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }
  .works-toolbar {
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 18px;
  }
}

/* ==================== TOUCH DEVICE OPTIMISATION ==================== */
@media (pointer: coarse) {  /* 触屏下把文字导航的可点区域垫到约 40px 高 */
  .nav-link,
  .filter-tab,
  .view-btn {
    padding: 10px 0;
  }
  .contact-value-btn,
  .edit-mode-trigger {
    padding: 6px 0;
  }
}

@media (hover: none) {
  /* 触屏没有真正的悬停态，避免点按后图片停留放大 */
  .work-card:hover .work-cover-wrap img,
  .work-card:focus-visible .work-cover-wrap img {
    transform: none;
  }
  .extension-item:hover img {
    opacity: 1;
  }
}
