:root {
  --paper: #f4f2ee;
  --white: #fbfaf7;
  --ink: #151515;
  --muted: #696760;
  --muted-2: #8b867b;
  --line: #d5d1c8;
  --soft: #e8e4dc;
  --stone: #cfc8bc;
  --clay: #b9aa96;
  --max: 1500px;
  --page-pad: clamp(18px, 3vw, 46px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 34px;
  width: 100%;
  padding: 16px var(--page-pad);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: clamp(14px, 1.8vw, 22px);
  width: auto;
  min-width: min(100%, 340px);
  flex: 0 0 auto;
}

.brand-mark {
  width: clamp(148px, 13vw, 178px);
  height: auto;
}

.brand-type {
  display: grid;
  gap: 4px;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.brand-name {
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-cn {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600;
  letter-spacing: 0;
}

.brand-en {
  margin-top: 2px;
  font-size: clamp(7px, 0.68vw, 9px);
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 36px);
  color: var(--muted);
}

.main-nav a {
  display: grid;
  gap: 4px;
  min-width: 58px;
  text-align: right;
}

.nav-cn {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
}

.nav-en {
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
}

.main-nav a,
.site-footer a,
.contact-grid a,
.case-nav a,
.text-link,
.featured-card,
.filter-tab {
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.site-footer a:hover,
.contact-grid a:hover,
.case-nav a:hover,
.text-link:hover,
.featured-card:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

main,
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 156px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.section-link {
  margin-top: 26px;
}

.home-hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: min(720px, calc(100vh - 112px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.14) 58%, rgba(15, 15, 15, 0.36)),
    linear-gradient(0deg, rgba(15, 15, 15, 0.64), transparent 46%);
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.94);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  max-width: 920px;
  min-height: 0;
  padding: clamp(62px, 8vw, 116px) var(--page-pad) 0;
  color: var(--white);
}

.hero-copy .eyebrow {
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

.hero-copy h1 {
  max-width: 980px;
  margin-bottom: clamp(22px, 3vw, 34px);
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 500;
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  color: color-mix(in srgb, var(--white) 82%, transparent);
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.8;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 920px;
  margin-top: clamp(24px, 3vw, 42px);
  padding: 0 var(--page-pad) clamp(30px, 4vw, 48px);
  color: color-mix(in srgb, var(--white) 76%, transparent);
  font-size: 13px;
  line-height: 1.55;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-right: 18px;
  border-right: 1px solid color-mix(in srgb, var(--white) 24%, transparent);
}

.hero-meta span:last-child {
  padding-right: 0;
  border-right: 0;
}

.project-index,
.featured-band,
.page-hero,
.home-route-band,
.scope-band,
.process-band,
.budget-band,
.delivery-band,
.faq-band,
.profile-band,
.contact-band,
.case-hero,
.case-overview,
.case-brief,
.case-story,
.case-faq,
.case-contact,
.related-band,
.case-notes,
.case-nav {
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(26px, 6vw, 86px);
  padding-top: clamp(54px, 9vw, 126px);
  padding-bottom: clamp(44px, 7vw, 96px);
}

.page-kicker {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}

.page-heading h1 {
  max-width: 980px;
  margin-bottom: clamp(22px, 3vw, 40px);
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.page-heading p {
  max-width: 760px;
  margin-bottom: 0;
  color: #3f3d39;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.7;
}

.featured-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(44px, 7vw, 96px);
}

.featured-list,
.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.home-route-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(48px, 8vw, 110px);
  background: color-mix(in srgb, var(--soft) 42%, var(--paper));
}

.home-route-band h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.18;
}

.route-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.route-list a {
  display: grid;
  grid-template-columns: 52px minmax(170px, 0.38fr) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 34px);
  padding: 24px;
  background: var(--paper);
  color: var(--muted);
}

.route-list a:hover {
  color: var(--ink);
}

.route-list span {
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.route-list strong {
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.28;
}

.route-list p {
  margin-bottom: 0;
  color: #3f3d39;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.75;
}

.route-list--compact a {
  grid-template-columns: 52px minmax(0, 0.45fr) minmax(0, 1fr);
}

.featured-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: var(--paper);
  color: var(--muted);
}

.featured-card img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  background: var(--soft);
  filter: saturate(0.88);
}

.featured-card strong {
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.featured-meta,
.archive-count {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-index {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 52px);
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(48px, 8vw, 110px);
}

.section-label h2,
.scope-band h2,
.process-band h2,
.budget-band h2,
.delivery-band h2,
.profile-band h2,
.contact-band h2,
.case-brief h2,
.case-notes h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.18;
}

.section-label p:not(.eyebrow) {
  margin: 22px 0 0;
  color: #3f3d39;
  font-size: 15px;
  line-height: 1.7;
}

.archive-tools {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-label {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.filter-tab {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  padding: 10px 12px;
  text-transform: uppercase;
}

.filter-tab:hover,
.filter-tab.is-active {
  background: var(--ink);
  color: var(--white);
}

.project-preview {
  position: sticky;
  top: 104px;
  align-self: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
}

.project-preview img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86);
  transition: opacity 180ms ease, transform 240ms ease;
}

.project-list,
.scope-list,
.case-facts {
  border-top: 1px solid var(--ink);
}

.project-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(150px, 220px) 56px;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.project-row:hover,
.project-row.is-active {
  color: var(--ink);
}

.project-number,
.project-type,
.project-year,
.scope-row span {
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.scope-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(44px, 7vw, 96px);
  background: color-mix(in srgb, var(--soft) 48%, var(--paper));
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-links a {
  padding: 10px 14px;
  background: color-mix(in srgb, var(--paper) 88%, var(--white));
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.service-links a:hover {
  background: var(--ink);
  color: var(--white);
}

.scope-row {
  display: grid;
  grid-template-columns: 46px minmax(150px, 0.52fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 34px);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.scope-row span {
  color: var(--muted);
}

.scope-row h3 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.3;
}

.scope-row p,
.process-row p,
.budget-row p,
.delivery-row p,
.service-note,
.profile-copy p,
.contact-band p,
.notes-grid p,
.case-brief p {
  margin-bottom: 0;
  color: #3f3d39;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
}

.process-band,
.budget-band,
.delivery-band,
.faq-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.54fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(48px, 8vw, 110px);
}

.process-band,
.delivery-band,
.faq-band {
  background: color-mix(in srgb, var(--soft) 32%, var(--paper));
}

.process-list,
.delivery-list,
.budget-breakdown,
.faq-list {
  border-top: 1px solid var(--ink);
}

.process-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(170px, 240px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.process-row h3,
.delivery-row h3,
.budget-breakdown h3 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.3;
}

.process-step {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.process-row strong,
.budget-row strong,
.budget-levels strong {
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.25;
}

.process-row > p {
  grid-column: 3;
}

.process-row > p + p {
  margin-top: -8px;
}

.budget-content {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.budget-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.budget-levels div {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 150px;
  padding: 20px;
  background: var(--paper);
}

.budget-levels span,
.budget-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.budget-breakdown {
  display: grid;
}

.budget-breakdown h3 {
  padding: 0 0 22px;
}

.budget-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.36fr) minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: clamp(14px, 2.2vw, 30px);
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.budget-row p {
  grid-column: 3;
}

.service-note {
  color: var(--muted);
  font-size: 13px;
}

.delivery-list {
  display: grid;
}

.delivery-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.delivery-row h3 {
  padding: 8px 12px;
  background: color-mix(in srgb, var(--stone) 78%, var(--paper));
  color: var(--ink);
}

.services-page .process-band,
.services-page .budget-band,
.services-page .delivery-band,
.services-page .faq-band {
  grid-template-columns: 1fr;
  justify-items: center;
}

.services-page .process-band > .section-label,
.services-page .budget-band > .section-label,
.services-page .delivery-band > .section-label,
.services-page .faq-band > .section-label {
  max-width: 780px;
  text-align: center;
}

.services-page .process-list,
.services-page .budget-content,
.services-page .delivery-list,
.services-page .faq-list {
  width: min(100%, 1180px);
}

.services-page .process-row {
  grid-template-columns: minmax(180px, 220px) minmax(220px, 300px) minmax(360px, 500px);
  justify-content: center;
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(30px, 4vw, 48px) 0;
}

.services-page .process-row > p {
  max-width: 500px;
}

.services-page .delivery-row {
  grid-template-columns: minmax(280px, 360px) minmax(380px, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(42px, 7vw, 118px);
  padding: clamp(34px, 5vw, 56px) 0;
}

.services-page .delivery-row h3 {
  width: 100%;
  padding: 22px 26px;
}

.services-page .delivery-row p {
  max-width: 560px;
}

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

.faq-item {
  display: grid;
  gap: 14px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.3;
}

.faq-item p {
  margin-bottom: 0;
  color: #3f3d39;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.78;
}

.profile-band,
.contact-band,
.case-brief,
.case-contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(48px, 8vw, 110px);
}

.profile-copy {
  display: grid;
  gap: 22px;
}

.contact-grid {
  display: grid;
  gap: 18px;
  align-self: end;
  color: #3f3d39;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.3;
}

.contact-grid a,
.contact-grid span {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px var(--page-pad);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.case-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(26px, 6vw, 86px);
  padding-top: clamp(54px, 9vw, 126px);
  padding-bottom: clamp(34px, 6vw, 82px);
}

.case-kicker {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}

.case-heading h1 {
  max-width: 900px;
  margin-bottom: clamp(22px, 3vw, 40px);
  font-size: clamp(50px, 6.2vw, 92px);
  font-weight: 500;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.case-heading p {
  max-width: 760px;
  margin-bottom: 0;
  color: #3f3d39;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.7;
}

.case-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 360px);
  gap: clamp(24px, 4vw, 58px);
  padding-top: clamp(28px, 5vw, 74px);
  padding-bottom: clamp(28px, 5vw, 74px);
}

.case-cover {
  min-height: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}

.case-cover img,
.case-gallery img {
  height: 100%;
  object-fit: cover;
}

.case-facts {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
}

.case-facts div {
  display: grid;
  grid-template-columns: minmax(84px, 0.58fr) 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.case-facts dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.case-brief h2 {
  max-width: 700px;
}

.case-story,
.case-faq {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(48px, 8vw, 110px);
  background: color-mix(in srgb, var(--soft) 30%, var(--paper));
}

.case-story-list,
.case-faq-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.case-story-list article,
.case-faq-list article {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--paper);
}

.case-story-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.case-story-list h3,
.case-faq-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.28;
}

.case-story-list p,
.case-faq-list p,
.case-contact p {
  margin-bottom: 0;
  color: #3f3d39;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.78;
}

.case-contact {
  align-items: end;
  background: color-mix(in srgb, var(--soft) 42%, var(--paper));
}

.case-contact h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.case-contact .text-link {
  justify-self: start;
}

.case-gallery {
  padding: clamp(30px, 5vw, 74px) var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.case-gallery figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
  gap: clamp(18px, 3vw, 38px);
  margin: 0 0 clamp(28px, 6vw, 82px);
}

.case-gallery figure:last-child {
  margin-bottom: 0;
}

.case-gallery figure:nth-child(even) {
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
}

.case-gallery figure:nth-child(even):not(.comparison-figure) img {
  grid-column: 2;
}

.case-gallery figure:nth-child(even):not(.comparison-figure) figcaption {
  grid-column: 1;
  grid-row: 1;
}

.case-gallery img {
  aspect-ratio: 16 / 9;
  background: var(--soft);
}

.case-gallery figcaption {
  align-self: end;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.comparison-figure,
.case-gallery figure.comparison-figure:nth-child(even) {
  grid-template-columns: 1fr;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.comparison-panel {
  position: relative;
  min-width: 0;
  background: var(--soft);
}

.comparison-panel img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
}

.compare-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  color: var(--white);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-notes {
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(48px, 8vw, 110px);
}

.case-notes h2 {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 70px);
}

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 32px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.not-found {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 77px);
  padding: clamp(54px, 9vw, 126px) var(--page-pad);
  border-bottom: 1px solid var(--line);
}

.not-found h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(56px, 10vw, 144px);
  font-weight: 500;
  line-height: 0.98;
}

.not-found p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 32px;
  color: #3f3d39;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.7;
}

.related-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  padding-top: clamp(40px, 7vw, 92px);
  padding-bottom: clamp(40px, 7vw, 92px);
}

.related-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1320px) {
  .project-index {
    grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1fr);
  }

  .project-preview {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-meta,
  .featured-band,
  .page-hero,
  .home-route-band,
  .project-index,
    .scope-band,
    .process-band,
    .budget-band,
    .delivery-band,
    .faq-band,
    .profile-band,
  .contact-band,
    .case-hero,
    .case-overview,
    .case-brief,
    .case-story,
    .case-faq,
    .case-contact,
    .related-band,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 660px;
  }

  .hero-copy {
    min-height: 0;
  }

  .scope-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .scope-row p {
    grid-column: 2;
  }

  .process-row,
  .budget-row,
  .delivery-row,
  .route-list a,
  .route-list--compact a {
    grid-template-columns: 1fr;
  }

  .services-page .process-band > .section-label,
  .services-page .budget-band > .section-label,
  .services-page .delivery-band > .section-label,
  .services-page .faq-band > .section-label {
    max-width: none;
    text-align: left;
  }

  .services-page .process-list,
  .services-page .budget-content,
  .services-page .delivery-list,
  .services-page .faq-list {
    width: 100%;
  }

  .services-page .process-row,
  .services-page .delivery-row {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .services-page .process-row > p,
  .services-page .delivery-row p {
    max-width: none;
  }

  .process-row > p,
  .budget-row p {
    grid-column: auto;
  }

  .process-row > p + p {
    margin-top: 0;
  }

  .budget-levels {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 44px minmax(0, 1fr) 72px;
    min-height: 94px;
  }

  .project-type {
    display: none;
  }

  .case-gallery figure,
  .case-gallery figure:nth-child(even),
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .case-gallery figure:nth-child(even) img,
  .case-gallery figure:nth-child(even) figcaption {
    grid-column: auto;
    grid-row: auto;
  }

  .featured-list,
  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --page-pad: 18px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    width: 100%;
  }

  .brand-mark {
    width: 100px;
  }

  .brand-type {
    gap: 3px;
    min-width: 0;
    white-space: normal;
  }

  .brand-name {
    font-size: 25px;
  }

  .brand-cn {
    font-size: 15px;
  }

  .brand-en {
    max-width: 148px;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.9px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 1px;
    border-top: 1px solid var(--line);
    background: var(--line);
  }

  .main-nav a {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px 5px;
    background: color-mix(in srgb, var(--paper) 96%, var(--white));
    text-align: left;
  }

  .nav-cn {
    font-size: 13px;
  }

  .nav-en {
    font-size: 9px;
    line-height: 1;
  }

  section[id] {
    scroll-margin-top: 138px;
  }

  .home-hero {
    min-height: min(500px, calc(100svh - 96px));
  }

  .hero-copy {
    min-height: 0;
  }

  .home-hero::after {
    background:
      linear-gradient(90deg, rgba(15, 15, 15, 0.72), rgba(15, 15, 15, 0.28)),
      linear-gradient(0deg, rgba(15, 15, 15, 0.7), transparent 50%);
  }

  .hero-copy {
    padding-top: 42px;
    padding-bottom: 0;
  }

  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1.04;
  }

  .hero-copy p:not(.eyebrow) {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-actions {
    gap: 14px 22px;
  }

  .hero-meta {
    gap: 7px 14px;
    margin-top: 22px;
    padding-bottom: 22px;
    font-size: 12px;
    line-height: 1.45;
  }

  .hero-meta span {
    min-height: 0;
    padding-right: 0;
    border-right: 0;
  }

  .featured-band,
  .page-hero,
  .home-route-band,
  .project-index,
  .scope-band,
  .process-band,
  .budget-band,
  .delivery-band,
  .profile-band,
  .contact-band,
  .case-hero,
  .case-overview,
  .case-brief,
  .related-band,
  .case-notes {
    gap: 24px;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .page-hero,
  .case-hero {
    gap: 18px;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .page-kicker,
  .case-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .page-heading p,
  .case-heading p {
    font-size: 16px;
    line-height: 1.68;
  }

  .section-label h2,
  .scope-band h2,
  .process-band h2,
  .budget-band h2,
  .delivery-band h2,
  .profile-band h2,
  .contact-band h2,
  .case-brief h2,
  .case-notes h2 {
    font-size: 26px;
  }

  .section-label p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.68;
  }

  .project-title {
    font-size: 24px;
    line-height: 1.12;
  }

  .project-row {
    grid-template-columns: 30px minmax(0, 1fr) 54px;
    gap: 10px;
    min-height: 74px;
  }

  .project-number,
  .project-year,
  .project-type,
  .scope-row span {
    font-size: 11px;
  }

  .featured-list,
  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-card {
    gap: 9px;
    padding: 10px;
  }

  .featured-card img {
    aspect-ratio: 16 / 10;
  }

  .featured-card strong {
    font-size: 17px;
    line-height: 1.18;
  }

  .featured-meta {
    font-size: 11px;
  }

  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 10px;
  }

  .scope-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .scope-row p {
    grid-column: auto;
  }

  .scope-row p,
  .process-row p,
  .budget-row p,
  .delivery-row p,
  .service-note,
  .profile-copy p,
  .contact-band p,
  .notes-grid p,
  .case-brief p {
    font-size: 15px;
    line-height: 1.72;
  }

  .process-row,
  .budget-row,
  .delivery-row {
    gap: 10px;
    padding: 18px 0;
  }

  .services-page .process-row,
  .services-page .delivery-row {
    padding: 20px 0;
  }

  .process-row > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
  }

  .process-step {
    margin-bottom: 0;
  }

  .process-row strong,
  .budget-row strong,
  .budget-levels strong {
    font-size: 22px;
  }

  .budget-levels div {
    gap: 12px;
    min-height: 104px;
    padding: 16px;
  }

  .budget-breakdown h3 {
    padding-bottom: 14px;
  }

  .services-page .delivery-row h3 {
    padding: 14px 16px;
  }

  .services-page .delivery-row h3 br {
    display: none;
  }

  .faq-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-grid {
    gap: 0;
    font-size: 20px;
    line-height: 1.25;
  }

  .contact-grid a,
  .contact-grid span {
    padding: 14px 0;
  }

  .case-heading h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .page-heading h1 {
    margin-bottom: 18px;
    font-size: 40px;
    line-height: 1.04;
  }

  .case-cover {
    min-height: 0;
  }

  .case-facts div {
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .case-gallery {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .case-gallery figure {
    gap: 12px;
    margin-bottom: 34px;
  }

  .case-gallery figcaption {
    padding-top: 10px;
    font-size: 12px;
    line-height: 1.55;
  }

  .compare-label {
    top: 8px;
    left: 8px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .case-nav {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .site-footer,
  .case-nav {
    flex-direction: column;
  }

  .site-footer {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

@media (max-width: 360px) {
  .brand-mark {
    width: 92px;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-cn {
    font-size: 14px;
  }

  .brand-en {
    display: none;
  }

  .nav-cn {
    font-size: 12px;
  }

  .project-title {
    font-size: 22px;
  }

  .page-heading h1,
  .case-heading h1 {
    font-size: 36px;
  }
}
