:root {
  color-scheme: light;
  --paper: #faf7f1;
  --ink: #213141;
  --muted: #637280;
  --line: #e3ded6;
  --panel: #ffffff;
  --panel-soft: #edf4ef;
  --rose: #b86673;
  --gold: #d8b45f;
  --sage: #6f927e;
  --sky: #5a83a7;
  --shadow: 0 22px 64px rgba(33, 49, 65, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(33, 49, 65, 0.032) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(33, 49, 65, 0.024) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0;
  overflow-x: hidden;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.access-note {
  background: rgba(250, 247, 241, 0.82);
  border-bottom: 1px solid rgba(33, 49, 65, 0.06);
  color: rgba(99, 114, 128, 0.78);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  padding: 4px 14px;
  text-align: center;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(250, 247, 241, 0.92);
  border-bottom: 1px solid rgba(33, 49, 65, 0.1);
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr auto;
  min-height: 64px;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.navlinks a,
.button,
.icon-button,
.filter-button,
.preview-choice,
.source-link {
  font-weight: 800;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.language-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 49, 65, 0.14);
  border-radius: 8px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.language-toggle button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  min-height: 30px;
  padding: 0 9px;
}

.language-toggle button.is-active {
  background: var(--ink);
  color: #fff;
}

body.lang-zh {
  font-family: "Noto Sans SC", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.lang-zh h1,
body.lang-zh h2 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  line-height: 1.08;
}

body.lang-en .cn-note,
body.lang-en .navlinks a span,
body.lang-en .button small,
body.lang-en .role-line span,
body.lang-en .portfolio-context span,
body.lang-en .case-brief .case-signal small {
  display: none;
}

.navlinks {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.navlinks a {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 2px;
  line-height: 1.15;
  text-align: center;
}

.navlinks a:hover,
.navlinks a[aria-current="true"] {
  color: var(--ink);
}

.navlinks a span,
.button small,
.cn-note {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.navlinks a span {
  color: #84909a;
  font-size: 10px;
  font-weight: 700;
}

.icon-button,
.button,
.filter-button {
  align-items: center;
  border: 1px solid rgba(33, 49, 65, 0.14);
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
}

.icon-button {
  aspect-ratio: 1;
  background: var(--ink);
  color: white;
  width: 38px;
}

.button {
  background: rgba(255, 255, 255, 0.82);
  gap: 9px;
  min-height: 42px;
  padding: 7px 14px;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.button svg,
.icon-button svg,
.filter-button svg,
.source-link svg {
  height: 17px;
  width: 17px;
}

.button span {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.button small {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.72;
}

section {
  padding: 56px clamp(22px, 5vw, 72px);
  scroll-margin-top: 72px;
  width: 100%;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.74fr);
  min-height: min(660px, calc(82vh - 64px));
  padding-bottom: clamp(60px, 7vw, 88px);
  padding-top: clamp(58px, 7vw, 88px);
}

.hero-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.84fr);
  grid-template-rows: 1fr 1fr;
  height: clamp(370px, 42vw, 540px);
  isolation: isolate;
  max-height: calc(100vh - 180px);
  overflow: visible;
  position: relative;
}

.hero-copy {
  max-width: 760px;
}

.hero-gallery::before {
  background:
    linear-gradient(135deg, rgba(237, 244, 239, 0.84), rgba(250, 247, 241, 0.66)),
    rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(33, 49, 65, 0.08);
  border-radius: 8px;
  content: "";
  inset: 30px -18px -22px 42px;
  position: absolute;
  z-index: -1;
}

.hero-shot {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(33, 49, 65, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.hero-shot-main {
  grid-row: 1 / span 2;
  transform: translateY(10px);
}

.hero-shot img,
.card-media img,
.gallery-item img,
.archive-card img {
  background:
    linear-gradient(135deg, rgba(237, 244, 239, 0.88), rgba(250, 247, 241, 0.94)),
    #f0ebe4;
  width: 100%;
}

.hero-shot img {
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: clamp(8px, 1vw, 14px);
}

.hero-shot-main img {
  padding: 0;
}

.hero-shot figcaption {
  background: rgba(250, 247, 241, 0.94);
  border-top: 1px solid rgba(33, 49, 65, 0.09);
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.hero-shot figcaption span {
  color: var(--rose);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-shot figcaption strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.18;
}

.eyebrow,
.section-kicker {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 0.96;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.98;
  margin-bottom: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.22;
  margin-bottom: 10px;
}

.lede {
  color: #263444;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 12px;
  max-width: 840px;
}

.role-line {
  color: #435464;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 820px;
}

.role-line span {
  color: #6f7b86;
  display: block;
  font-family: "Noto Sans SC", Inter, sans-serif;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.6;
  margin-top: 3px;
}

.portfolio-context {
  border-left: 3px solid rgba(184, 102, 115, 0.34);
  color: #536474;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.58;
  margin: 14px 0 0;
  max-width: 800px;
  padding-left: 12px;
}

.portfolio-context span {
  color: #6f7b86;
  display: block;
  font-family: "Noto Sans SC", Inter, sans-serif;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.68;
  margin-top: 4px;
}

.cn-note {
  color: #77828d;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  margin-top: 10px;
}

.hero-actions,
.card-actions,
.hero-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 16px;
}

.hero-paths {
  margin-top: 14px;
}

.hero-paths a {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 49, 65, 0.12);
  border-radius: 8px;
  color: #4a5b69;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 32px;
  padding: 7px 10px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.hero-paths a:hover,
.hero-paths a:focus-visible,
.hero-paths a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  outline: 0;
  transform: translateY(-1px);
}

.signal-band {
  background: rgba(33, 49, 65, 0.08);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1px;
}

.signal-band article,
.capability-card,
.project-card,
.preview-choice,
.preview-frame-wrap,
.gallery-item,
.archive-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(33, 49, 65, 0.09);
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(33, 49, 65, 0.06);
}

.signal-band article {
  border-radius: 0;
  min-height: 174px;
  padding: 28px;
}

.signal-band strong {
  color: var(--rose);
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(46px, 5vw, 74px);
  line-height: 0.88;
  margin-bottom: 18px;
}

.signal-band span,
.proof-glance-grid span,
.capability-card p,
.project-card p,
.preview-choice span,
.preview-meta span,
.gallery-item figcaption,
.archive-card p,
.closing-section p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.proof-glance-section {
  align-items: start;
  background: rgba(250, 247, 241, 0.82);
  border-top: 1px solid rgba(33, 49, 65, 0.08);
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  padding-bottom: 42px;
  padding-top: 42px;
}

.proof-glance-copy {
  max-width: 460px;
}

.proof-glance-copy h2 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.02;
}

.proof-glance-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-glance-grid article {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(33, 49, 65, 0.09);
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(33, 49, 65, 0.055);
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 17px;
}

.proof-glance-grid svg {
  color: var(--rose);
  height: 20px;
  width: 20px;
}

.proof-glance-grid strong {
  font-size: 15px;
  line-height: 1.22;
}

.proof-glance-grid span {
  font-size: 12px;
  line-height: 1.46;
}

.portfolio-section {
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(33, 49, 65, 0.08);
}

.capability-section {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(33, 49, 65, 0.08);
}

.preview-section,
.archive-section {
  background: rgba(237, 244, 239, 0.62);
}

.section-heading {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
  margin-bottom: 34px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.capability-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.capability-card {
  align-content: start;
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 17px;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.capability-card:hover,
.capability-card:focus-visible,
.capability-card.is-active {
  border-color: rgba(184, 102, 115, 0.52);
  outline: 0;
  transform: translateY(-2px);
}

.capability-card svg {
  color: var(--rose);
  height: 21px;
  width: 21px;
}

.capability-label {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-card h3 {
  display: -webkit-box;
  font-size: clamp(15px, 1.2vw, 17px);
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  margin-bottom: 0;
  overflow: hidden;
}

.capability-card p {
  display: -webkit-box;
  font-size: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
  margin-bottom: 0;
  overflow: hidden;
}

.filter-button {
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  outline: 0;
  transform: translateY(-1px);
}

.project-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-groups {
  display: grid;
  gap: 28px;
}

.project-group {
  padding: 0;
}

.group-heading {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  margin: 0 0 16px;
}

.group-heading h3 {
  font-size: clamp(21px, 2.3vw, 32px);
  margin: 0;
}

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

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

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
}

.card-media {
  background: #f0ebe4;
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  overflow: hidden;
}

.card-media.single {
  display: block;
}

.card-media img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-media img.is-cover {
  object-fit: cover;
}

.card-media.single img {
  aspect-ratio: 4 / 3;
}

.card-media.single.is-wide img {
  aspect-ratio: 2048 / 900;
}

.card-copy {
  display: grid;
  align-content: start;
  padding: 24px;
}

.project-card h3 {
  margin: 0 0 8px;
}

.quick-summary {
  background: rgba(33, 49, 65, 0.08);
  border: 1px solid rgba(33, 49, 65, 0.09);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 12px;
  overflow: hidden;
}

.quick-summary span {
  background: rgba(237, 244, 239, 0.78);
  color: #3f5060;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 3px;
  line-height: 1.3;
  min-width: 0;
  padding: 9px 10px;
}

.quick-summary b {
  color: var(--rose);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-summary {
  margin-bottom: 14px;
}

.case-brief {
  border-top: 1px solid rgba(33, 49, 65, 0.09);
  display: grid;
  gap: 0;
  margin: 4px 0 2px;
}

.case-brief div {
  border-bottom: 1px solid rgba(33, 49, 65, 0.08);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(96px, 0.24fr) minmax(0, 1fr);
  padding: 10px 0;
}

.case-brief span,
.evidence-label {
  color: var(--rose);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-brief p {
  color: #536474;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.48;
  margin-bottom: 0;
}

.case-brief .case-signal {
  background: rgba(184, 102, 115, 0.075);
  border-bottom: 0;
  border-left: 3px solid rgba(184, 102, 115, 0.42);
  margin-top: 8px;
  padding: 10px 12px;
}

.case-brief .case-signal p {
  color: #344656;
  font-weight: 850;
}

.case-brief .case-signal small {
  color: #6f7b86;
  display: block;
  font-family: "Noto Sans SC", Inter, sans-serif;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.58;
  margin-top: 5px;
}

.evidence-label {
  margin-top: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tags span {
  background: rgba(33, 49, 65, 0.07);
  color: #4a5b69;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
  text-transform: uppercase;
}

.project-timeline {
  color: #637281;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: -2px 0 10px;
}

.category-pill {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-actions {
  margin-top: 8px;
}

.source-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(33, 49, 65, 0.12);
  border-radius: 8px;
  color: #4a5b69;
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
  min-height: 34px;
  padding: 8px 10px;
}

.source-link.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.platform-proof-section {
  background: rgba(250, 247, 241, 0.72);
}

.platform-proof-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.82fr));
}

.platform-proof-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(33, 49, 65, 0.09);
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(33, 49, 65, 0.06);
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.platform-proof-card figure {
  background: #f0ebe4;
  border-bottom: 1px solid rgba(33, 49, 65, 0.09);
  margin: 0;
}

.platform-proof-card img {
  aspect-ratio: 813 / 316;
  height: auto;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.platform-proof-copy {
  align-content: start;
  display: grid;
  padding: 20px;
}

.platform-logo {
  align-items: center;
  display: inline-flex;
  justify-self: start;
  margin-bottom: 14px;
}

.platform-logo-iqiyi {
  background: #00be06;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 190, 6, 0.18);
  color: white;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  min-height: 42px;
  padding: 10px 14px;
}

.platform-logo-tencent {
  background: #111f2c;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 31, 44, 0.16);
  color: white;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px 9px 11px;
}

.platform-logo-tencent > span:last-child {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.tencent-play-mark {
  background:
    linear-gradient(135deg, #16d66f 0 33%, transparent 33%),
    linear-gradient(225deg, #26a9ff 0 33%, transparent 33%),
    linear-gradient(90deg, #ffcf2e 0 50%, #ff8a1d 50%);
  border-radius: 50%;
  display: inline-block;
  height: 22px;
  position: relative;
  width: 22px;
}

.tencent-play-mark::after {
  border-bottom: 5px solid transparent;
  border-left: 8px solid white;
  border-top: 5px solid transparent;
  content: "";
  left: 8px;
  position: absolute;
  top: 6px;
}

.platform-proof-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.proof-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 14px;
}

.proof-metrics div {
  background: rgba(184, 102, 115, 0.09);
  border: 1px solid rgba(184, 102, 115, 0.18);
  border-radius: 8px;
  min-width: 0;
  padding: 10px;
}

.proof-metrics strong {
  color: var(--rose);
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 0.92;
}

.proof-metrics span {
  color: #536474;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-top: 6px;
  text-transform: uppercase;
}

.proof-link-row,
.proof-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.proof-link-list a {
  align-items: center;
  background: rgba(33, 49, 65, 0.06);
  border: 1px solid rgba(33, 49, 65, 0.1);
  border-radius: 8px;
  color: #4a5b69;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 8px 10px;
}

.proof-link-list a:hover,
.proof-link-list a:focus-visible {
  background: var(--ink);
  color: white;
  outline: 0;
}

.preview-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
}

.preview-list {
  display: grid;
  gap: 10px;
}

.preview-choice {
  cursor: pointer;
  display: grid;
  gap: 8px;
  padding: 16px;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.preview-choice strong {
  font-size: 15px;
}

.preview-choice:hover,
.preview-choice:focus-visible,
.preview-choice.is-active {
  border-color: rgba(184, 102, 115, 0.52);
  outline: 0;
  transform: translateY(-1px);
}

.preview-frame-wrap {
  align-self: start;
  overflow: hidden;
}

.preview-cover {
  align-items: end;
  background: #f0ebe4;
  display: grid;
  min-height: 210px;
  overflow: hidden;
  position: relative;
}

.preview-cover img {
  aspect-ratio: 16 / 6;
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.preview-cover .source-link {
  bottom: 16px;
  left: 16px;
  position: absolute;
}

.preview-frame-wrap.is-thumbnail-fallback .preview-cover {
  min-height: 360px;
}

.preview-frame-wrap.is-thumbnail-fallback .preview-cover img {
  aspect-ratio: 16 / 9;
}

.preview-frame-wrap.is-thumbnail-fallback iframe {
  display: none;
}

.preview-frame-wrap iframe,
.preview-dialog iframe {
  border: 0;
  border-top: 1px solid rgba(33, 49, 65, 0.09);
  display: block;
  height: min(48vh, 520px);
  width: 100%;
}

.preview-meta {
  border-top: 1px solid rgba(33, 49, 65, 0.09);
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.preview-meta strong {
  font-size: 16px;
}

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
  overflow: hidden;
}

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

.gallery-item img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.gallery-item.is-wide img {
  aspect-ratio: 16 / 10;
}

.gallery-item.is-cover img {
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 13px 14px;
}

.archive-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-card {
  display: grid;
  overflow: hidden;
}

.archive-card img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.archive-copy {
  padding: 20px;
}

.archive-copy .source-link {
  margin-top: 14px;
}

.closing-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(184, 102, 115, 0.18), transparent 42%),
    var(--ink);
  color: white;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.closing-section .section-kicker {
  color: #f1d37a;
}

.closing-section h2 {
  max-width: 820px;
}

.closing-section p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 760px;
}

.closing-section .cn-note {
  color: rgba(255, 255, 255, 0.66);
}

.contact-line {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin-top: 16px;
}

.contact-line a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  color: inherit;
}

.contact-line a:hover,
.contact-line a:focus-visible {
  border-bottom-color: #f1d37a;
  color: #f1d37a;
  outline: 0;
}

.preview-dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(33, 49, 65, 0.28);
  max-width: min(1120px, calc(100vw - 34px));
  padding: 0;
  width: 100%;
}

.preview-dialog::backdrop {
  background: rgba(33, 49, 65, 0.58);
}

.dialog-head {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid rgba(33, 49, 65, 0.1);
  display: flex;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
}

.dialog-close {
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .topbar {
    gap: 14px;
    padding: 0 24px;
  }

  .navlinks {
    gap: 12px;
  }

  .navlinks a {
    font-size: 12px;
  }

  .navlinks a span {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .language-toggle button {
    min-height: 28px;
    padding: 0 7px;
  }

  .icon-button {
    width: 36px;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .navlinks {
    display: none;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-gallery {
    justify-self: center;
    max-width: 760px;
    order: 2;
    width: 100%;
  }

  .section-heading,
  .proof-glance-section,
  .preview-layout,
  .closing-section {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .archive-grid,
  .platform-proof-grid,
  .signal-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid,
  .proof-glance-grid,
  .supporting-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-frame-wrap {
    order: 1;
  }

  .preview-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    order: 2;
  }

  .preview-choice {
    padding: 13px;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .language-toggle {
    padding: 2px;
  }

  .language-toggle button {
    font-size: 10px;
    min-height: 27px;
    padding: 0 6px;
  }

  .navlinks {
    display: none;
  }

  .access-note {
    font-size: 8.5px;
    padding: 4px 12px;
  }

  section {
    padding: 48px 18px;
  }

  h1 {
    font-size: clamp(32px, 8.4vw, 39px);
    line-height: 1.02;
  }

  .hero {
    gap: 28px;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 46px;
    padding-top: 42px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-gallery {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
    max-height: none;
    order: 2;
  }

  .hero-gallery::before {
    inset: 18px -8px -14px 20px;
  }

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

  .hero-shot-main {
    grid-column: 1 / -1;
    grid-row: auto;
    transform: none;
  }

  .hero-shot-main img {
    height: min(390px, 92vw);
  }

  .hero-shot:not(.hero-shot-main) img {
    height: min(150px, 38vw);
  }

  .hero-shot figcaption {
    padding: 9px 10px;
  }

  .hero-shot figcaption strong {
    font-size: 12px;
  }

  .featured-grid,
  .supporting-grid,
  .gallery-grid,
  .archive-grid,
  .proof-glance-grid,
  .platform-proof-grid,
  .signal-band {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .hero-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-paths {
    display: grid;
  }

  .hero-paths a {
    justify-content: center;
    text-align: center;
  }

  .role-line {
    display: block;
    font-size: 11.5px;
    line-height: 1.45;
  }

  .role-line span {
    font-size: 11.5px;
    line-height: 1.5;
  }

  .portfolio-context {
    font-size: 11.5px;
    line-height: 1.5;
    margin-top: 10px;
    padding-left: 10px;
  }

  .portfolio-context span {
    font-size: 11.5px;
    line-height: 1.55;
  }

  .hero-copy > .cn-note {
    display: none;
  }

  body.lang-zh .hero-copy > .cn-note {
    display: block;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button.primary {
    grid-column: 1 / -1;
  }

  .hero-actions .button {
    min-height: 40px;
    padding: 7px 10px;
  }

  .capability-card {
    min-height: 142px;
    padding: 14px;
  }

  .quick-summary {
    grid-template-columns: 1fr;
  }

  .capability-card p {
    display: none;
  }

  .gallery-item.is-wide {
    grid-column: span 1;
  }

  .group-heading {
    grid-template-columns: 1fr;
  }

  .preview-list {
    grid-template-columns: 1fr;
  }

  .preview-cover {
    min-height: 170px;
  }

  .hero-actions,
  .closing-actions,
  .closing-section .button {
    display: grid;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .preview-frame-wrap iframe,
  .preview-dialog iframe {
    height: 58vh;
  }
}
