@font-face {
  font-family: "Huiwen";
  src: url("./assets/huiwenmingchaoti.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #f5efe3;
  --bg-soft: #fbf8f1;
  --panel: rgba(255, 251, 243, 0.84);
  --panel-strong: rgba(255, 248, 237, 0.96);
  --ink: #211a12;
  --ink-soft: #5f5345;
  --ink-faint: #867764;
  --line: rgba(52, 38, 22, 0.12);
  --line-strong: rgba(52, 38, 22, 0.2);
  --accent: #2b5b82;
  --accent-deep: #163a58;
  --gold: #a98748;
  --green: #4d6b5c;
  --shadow: 0 24px 64px rgba(31, 20, 12, 0.12);
  --shadow-soft: 0 16px 36px rgba(31, 20, 12, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell-width: 1240px;
  --ui-font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-language="zh"] [data-lang="en"],
html[data-language="en"] [data-lang="zh"] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--serif-font);
  background:
    radial-gradient(circle at top left, rgba(210, 176, 115, 0.15), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(43, 91, 130, 0.16), transparent 20%),
    linear-gradient(180deg, #f8f3ea 0%, #f4edde 42%, #efe6d5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 28%),
    repeating-linear-gradient(
      180deg,
      rgba(88, 63, 31, 0.025) 0,
      rgba(88, 63, 31, 0.025) 1px,
      transparent 1px,
      transparent 11px
    );
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.lang-block {
  display: block;
}

.site-shell {
  width: min(calc(100% - 32px), var(--shell-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 0 14px;
  background: rgba(248, 243, 234, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(52, 38, 22, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 84px;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  font-family: var(--ui-font);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  line-height: 1;
}

.brand-subtitle {
  color: var(--ink-soft);
  font-family: var(--ui-font);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.12;
}

.brand-subtitle-en {
  color: #5f7286;
  letter-spacing: 0.01em;
}

.brand-subtitle-zh {
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a,
.nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--ink-soft);
  font-family: var(--ui-font);
  font-size: 0.96rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-nav a::after,
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-current::after,
.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger.is-current::after,
.nav-dropdown.is-open .nav-dropdown-trigger::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 172px;
  height: 12px;
  transform: translateX(-50%);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 25;
  display: grid;
  gap: 4px;
  min-width: 188px;
  padding: 8px;
  border: 1px solid rgba(22, 58, 88, 0.14);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.98);
  box-shadow: 0 20px 48px rgba(23, 18, 12, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-submenu a {
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: center;
}

.nav-submenu a::after {
  display: none;
}

.nav-submenu a:hover {
  background: rgba(43, 91, 130, 0.08);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.is-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.88);
}

.lang-switch button {
  min-width: 46px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--ui-font);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #567da0);
  box-shadow: 0 14px 28px rgba(43, 91, 130, 0.26);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.82);
}

.button-large {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--accent-deep);
  font-family: var(--ui-font);
  font-weight: 700;
}

.page-main {
  display: grid;
  gap: 42px;
  padding-top: 30px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 30px;
  align-items: center;
}

.hero-subpage {
  grid-template-columns: minmax(0, 1fr);
}

.hero-home {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  align-items: start;
}

.hero-home .hero-panel {
  position: relative;
  margin-top: -8px;
  padding: 22px 22px 20px;
}

.hero-home .hero-panel h2 {
  margin: 4px 0 12px;
}

.hero-home .hero-panel p {
  margin: 0;
}

.case-subtitle {
  color: var(--accent-deep);
  font-family: var(--ui-font);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.case-tagline {
  text-align: left;
  text-indent: 2em;
  width: 100%;
}

.hero-home .hero-panel .case-detail-button {
  position: absolute;
  top: 22px;
  right: 22px;
  margin-top: 0;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-family: var(--ui-font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title,
.section-title {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title [data-lang="zh"],
.section-title [data-lang="zh"] {
  font-family: "Huiwen", var(--serif-font);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.hero-title .lang-block {
  display: block;
}

.hero-title-sub {
  display: block;
  margin-top: 0.16em;
  font-size: 0.8em;
  line-height: 1.14;
}

.hero-title em,
.section-title em {
  color: var(--accent);
  font-style: normal;
}

.hero-text,
.page-main p,
.team-card .team-bio,
.news-body {
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.hero-panel .button {
  align-self: flex-end;
  margin-top: 28px;
}

.compact-points {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-home .compact-points {
  margin-top: 12px;
  line-height: 1.58;
}

.compact-points li + li {
  margin-top: 8px;
}

.hero-home .compact-points li + li {
  margin-top: 6px;
}

.section-block {
  display: grid;
  gap: 22px;
}

.section-tight {
  gap: 12px;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-heading.split {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.section-heading.compact {
  gap: 0;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.info-card {
  padding: 24px;
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
}

.info-card-wide {
  display: grid;
  gap: 10px;
  padding: 26px;
}

.info-card-wide p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.info-card-contact {
  color: var(--ink);
  font-weight: 700;
}

.team-bio a,
.role-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
  word-break: break-word;
}

.team-bio a:hover,
.role-copy a:hover {
  color: var(--accent-deep);
}

.info-card-contact a {
  color: inherit;
}

.launch-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.launch-panel-art {
  min-height: 360px;
  background: linear-gradient(180deg, rgba(238, 245, 251, 0.92), rgba(230, 221, 204, 0.94));
}

.launch-panel-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.launch-panel-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
}

.launch-panel-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(250, 246, 238, 0.44), rgba(250, 246, 238, 0.36)),
    url("./assets/itp/start/alongtheriver-01.jpg");
  background-size: cover;
  background-position: left center;
  opacity: 0.66;
  pointer-events: none;
}

.launch-panel-copy > * {
  position: relative;
  z-index: 1;
}

.launch-panel-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.launch-panel-note {
  color: var(--ink);
  font-size: 0.94rem;
  margin-bottom: 8px;
  text-align: center;
}

.launch-panel-note-small {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.86em;
  line-height: 1.7;
}

.news-feed {
  display: grid;
  gap: 18px;
}

.news-card {
  padding: 26px;
}

.news-date {
  margin: 0 0 10px;
  color: var(--ink-faint);
  font-family: var(--ui-font);
  font-size: 0.9rem;
}

.news-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.section-callout .callout-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(229, 239, 247, 0.96), rgba(252, 242, 228, 0.92));
  border: 1px solid rgba(43, 91, 130, 0.2);
  box-shadow: var(--shadow);
}

.callout-banner h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.site-footer {
  margin-top: 42px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.logo-row img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  filter: saturate(0.94);
}

.footer-note {
  margin: 0;
  color: var(--ink-faint);
  font-family: var(--ui-font);
  font-size: 0.94rem;
  text-align: center;
}

.visitor-map {
  width: 100%;
  padding: 4px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.visitor-map-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 96px;
  overflow: auto;
}

.visitor-map-frame {
  width: 100%;
  min-height: 120px;
  border: 0;
  background: transparent;
}

.visitor-map-embed > * {
  max-width: 100%;
}

.visitor-map-embed iframe,
.visitor-map-embed img {
  max-width: 100%;
}

.visitor-map-placeholder {
  display: grid;
  gap: 12px;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.map-grid span {
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(43, 91, 130, 0.9), rgba(43, 91, 130, 0.14) 70%),
    rgba(169, 135, 72, 0.12);
}

.hero-itp {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.itp-collage {
  position: relative;
  min-height: 520px;
}

.collage-card,
.collage-badge {
  overflow: hidden;
  position: absolute;
}

.collage-card-large {
  inset: 0 90px 110px 0;
  transform: rotate(-3deg);
}

.collage-card-tall {
  right: 0;
  top: 56px;
  width: 44%;
  height: 58%;
  transform: rotate(5deg);
}

.collage-card img,
.collage-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-badge {
  left: 48px;
  right: 56px;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  background: rgba(255, 248, 240, 0.94);
}

.gallery-frame {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  outline: none;
}

.gallery-frame:focus-visible {
  outline: 2px solid rgba(43, 91, 130, 0.36);
  outline-offset: 10px;
}

.gallery-button {
  border: 1px solid rgba(22, 58, 88, 0.22);
  background: rgba(246, 250, 252, 0.94);
  color: var(--accent-deep);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(22, 58, 88, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.gallery-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
}

.gallery-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.gallery-button-edge {
  position: static;
  z-index: 10;
  width: 54px;
  height: 54px;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  justify-self: center;
  align-self: center;
}

.gallery-button-prev {
  grid-column: 1;
}

.gallery-button-next {
  grid-column: 3;
}

.gallery-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gallery-track {
  --card-width: min(820px, 64vw);
  --card-overlap: 148px;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 18px 8px 28px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track .gallery-card {
  position: relative;
  flex: 0 0 var(--card-width);
  scroll-snap-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 260ms ease, opacity 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.gallery-track .gallery-card + .gallery-card {
  margin-left: calc(var(--card-overlap) * -1);
}

.gallery-track .gallery-card.is-before,
.gallery-track .gallery-card.is-after {
  opacity: 0.72;
  filter: saturate(0.88);
  transform: scale(0.94) translateY(18px);
}

.gallery-track .gallery-card.is-active {
  z-index: 6;
  opacity: 1;
  filter: none;
  transform: scale(1) translateY(0);
  box-shadow: 0 26px 54px rgba(31, 20, 12, 0.14);
}

.painting-points-figure {
  width: min(100%, 1040px);
  margin: 0 auto 22px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.painting-points-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.network-figure {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 12px;
}

.network-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.painting-points-figure figcaption {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.role-track {
  --card-width: min(640px, 48vw);
  --card-overlap: 104px;
}

.story-track {
  --card-width: min(560px, 42vw);
  --card-overlap: 78px;
  align-items: flex-start;
}

.role-card {
  display: grid;
  grid-template-columns: minmax(214px, 0.35fr) minmax(0, 1fr);
  min-height: 392px;
}

.role-image-wrap {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(238, 245, 251, 0.92), rgba(230, 221, 204, 0.94));
}

.role-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 20px;
}

.role-card-body h3 {
  margin: 0;
  font-size: 1.14rem;
}

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

.role-meta span {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(141, 108, 63, 0.06);
}

.role-meta strong,
.role-meta em {
  font-style: normal;
  font-family: var(--ui-font);
}

.role-meta strong {
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-meta em {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.role-copy {
  display: grid;
  gap: 8px;
}

.role-copy p {
  margin: 0;
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
}

.role-copy strong {
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-card {
  display: block;
  padding: 8px;
  background: rgba(255, 251, 245, 0.98);
}

.story-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.story-thumb {
  display: block;
  width: 100%;
  height: clamp(320px, 34vw, 430px);
  overflow: hidden;
  border-radius: 14px;
  background: rgba(240, 232, 220, 0.96);
}

.story-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  background: rgba(240, 232, 220, 0.96);
}

.story-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  padding: 22px 24px;
}

.story-tagline {
  margin: 0;
  grid-column: 2;
  text-align: center;
  font-size: 1.28rem;
  color: var(--ink);
}

.story-note {
  margin: 0;
  grid-column: 2;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

.story-callout > .button {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
}

.credits-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.credits-title [data-lang="zh"] {
  font-family: "Huiwen", var(--serif-font);
}

.credits-role {
  margin: 0;
  text-align: center;
  color: var(--accent-deep);
  font-family: var(--ui-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credits-note {
  width: min(700px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  text-align: center;
}

.credits-note-body {
  display: grid;
  gap: 10px;
}

.credits-note-body p {
  margin: 0;
  color: var(--ink-soft);
}

.credits-contact {
  color: var(--ink);
  font-weight: 700;
}

.credits-contact a {
  color: inherit;
}

.credits-roll {
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.credits-entry {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.credits-names {
  display: grid;
  gap: 2px;
}

.credits-names p {
  margin: 0;
  text-align: center;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
}

body.lightbox-open {
  overflow: hidden;
}

.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.story-lightbox[hidden] {
  display: none;
}

.story-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(19, 24, 30, 0.76);
}

.story-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(94vw, 1120px);
  height: min(92vh, 980px);
  margin: min(4vh, 28px) auto;
  padding: 20px 22px 22px;
  border-radius: 24px;
  background: rgba(20, 27, 36, 0.84);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.34);
}

.story-lightbox-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-right: 64px;
}

.story-lightbox-zoom-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.story-lightbox-tool {
  min-width: 46px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.92);
  color: var(--accent-deep);
  font-family: var(--ui-font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.story-lightbox-tool-reset {
  min-width: 84px;
}

.story-lightbox-hint {
  margin: 0;
  text-align: right;
  color: rgba(255, 248, 238, 0.84);
  font-size: 0.92rem;
}

.story-lightbox-viewport {
  overflow: auto;
  min-height: 0;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 248, 238, 0.06);
  cursor: auto;
}

.story-lightbox-viewport.is-draggable {
  cursor: grab;
}

.story-lightbox-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.story-lightbox-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
}

.story-lightbox-image {
  display: block;
  max-width: none;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  background: #f6f0e5;
}

.story-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.team-page {
  display: grid;
  gap: 28px;
}

.team-section {
  display: grid;
  gap: 16px;
}

.team-category-title {
  color: var(--accent-deep);
  letter-spacing: 0.01em;
}

.team-category-title [data-lang="zh"] {
  font-family: var(--serif-font);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-category-title [data-lang="en"] {
  font-family: var(--ui-font);
  font-size: 0.92em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f7286;
}

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

.team-card {
  padding: 24px;
}

.team-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.team-role,
.team-affiliation,
.team-focus {
  margin: 0 0 8px;
}

.team-role {
  color: var(--accent-deep);
  font-family: var(--ui-font);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-affiliation,
.team-focus {
  color: var(--ink-soft);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .hero-itp,
  .footer-grid,
  .launch-panel,
  .three-up,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .story-callout,
  .section-callout .callout-banner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .story-tagline,
  .story-note,
  .story-callout > .button {
    grid-column: auto;
  }

  .story-callout > .button {
    grid-row: auto;
    justify-self: center;
    margin-top: 4px;
  }

  .gallery-track {
    --card-width: min(70vw, 660px);
    --card-overlap: 72px;
  }

  .story-track {
    --card-width: min(46vw, 500px);
    --card-overlap: 52px;
  }

  .itp-collage {
    min-height: 440px;
  }

  .role-card {
    grid-template-columns: minmax(210px, 0.4fr) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 22px), var(--shell-width));
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    order: 3;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 8px;
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a,
  .nav-dropdown-trigger {
    width: auto;
    justify-content: center;
    padding: 8px 0;
  }

  .nav-dropdown {
    width: auto;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown::after {
    display: none;
  }

  .nav-submenu {
    display: none !important;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .site-header {
    position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .gallery-frame {
    display: block;
  }

  .gallery-button-edge {
    position: absolute;
    top: 50%;
    z-index: 12;
    width: 42px;
    height: 42px;
    font-size: 1.64rem;
    transform: translateY(-50%);
  }

  .gallery-button-prev {
    left: 2px;
    grid-column: auto;
  }

  .gallery-button-next {
    right: 2px;
    grid-column: auto;
  }

  .gallery-track,
  .story-track {
    --card-width: min(94vw, 540px);
    --card-overlap: 20px;
    padding: 12px 6px 22px;
  }

  .role-track {
    --card-width: min(96vw, 620px);
    --card-overlap: 8px;
  }

  .painting-points-figure {
    padding: 8px;
    margin-bottom: 18px;
  }

  .painting-points-figure figcaption {
    font-size: 0.88rem;
  }

  .role-card {
    grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
    min-height: 0;
  }

  .role-image-wrap {
    min-height: 0;
  }

  .role-card-body {
    gap: 8px;
    padding: 14px 15px;
  }

  .role-card-body h3 {
    font-size: 1.02rem;
  }

  .role-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .role-meta span {
    padding: 7px 8px;
  }

  .role-meta strong {
    font-size: 0.68rem;
  }

  .role-meta em {
    font-size: 0.86rem;
  }

  .role-copy {
    gap: 6px;
  }

  .role-copy p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .gallery-button-edge {
    width: 46px;
    height: 46px;
    font-size: 1.72rem;
  }

  .gallery-button-prev {
    grid-column: 1;
  }

  .gallery-button-next {
    grid-column: 3;
  }

  .collage-card-large {
    inset: 0 54px 96px 0;
  }

  .collage-card-tall {
    width: 48%;
  }

  .story-thumb {
    height: clamp(260px, 64vw, 380px);
  }

  .story-lightbox-dialog {
    width: min(96vw, 980px);
    height: min(92vh, 900px);
    padding: 16px;
  }

  .story-lightbox-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
    padding-right: 52px;
  }

  .story-lightbox-hint {
    text-align: left;
    font-size: 0.84rem;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(calc(100% - 16px), var(--shell-width));
  }

  .site-header {
    gap: 12px;
    padding: 14px 0 12px;
  }

  .brand-mark {
    width: 60px;
  }

  .brand {
    gap: 10px;
    align-items: flex-start;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-subtitle {
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .lang-switch button {
    min-width: 40px;
    padding: 7px 10px;
  }

  .page-main {
    gap: 34px;
    padding-top: 22px;
  }

  .hero,
  .hero-home,
  .hero-itp {
    gap: 20px;
  }

  .cta-row {
    gap: 10px;
    margin-top: 22px;
  }

  .cta-row .button {
    width: 100%;
  }

  .hero-home .hero-panel {
    margin-top: 0;
    padding: 18px 18px 16px;
  }

  .hero-home .hero-panel .case-detail-button {
    position: static;
    margin-top: 14px;
    align-self: center;
  }

  .section-title {
    font-size: clamp(1.56rem, 7vw, 2.1rem);
  }

  .launch-panel-art {
    min-height: 250px;
  }

  .launch-panel-copy {
    padding: 18px 16px;
    gap: 12px;
  }

  .launch-panel-note {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .gallery-track,
  .story-track {
    --card-width: calc(100vw - 40px);
    --card-overlap: 10px;
    padding: 10px 4px 20px;
  }

  .role-track {
    --card-width: calc(100vw - 24px);
    --card-overlap: 0px;
  }

  .gallery-button-edge {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .role-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .role-image-wrap {
    min-height: 0;
  }

  .role-image-wrap img {
    object-position: center top;
  }

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

  .logo-row img {
    max-height: 32px;
  }

  .itp-collage {
    min-height: 360px;
  }

  .collage-card-large {
    inset: 0 32px 84px 0;
  }

  .collage-badge {
    left: 14px;
    right: 14px;
  }

  .story-card {
    padding: 6px;
  }

  .story-thumb {
    height: clamp(220px, 72vw, 320px);
  }

  .story-lightbox-dialog {
    width: min(96vw, 980px);
    height: min(90vh, 860px);
    padding: 14px;
  }
}
