:root {
  --paper: #D1CFCF;
  --ink: #101010;
  --muted: rgba(16, 16, 16, 0.58);
  --line: rgba(16, 16, 16, 0.16);
  --blue: #0038c7;
  --red: #ff4a2f;
  --dark: #050505;
  --cloud-white:
    radial-gradient(ellipse at 24% 16%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 26%, transparent 54%),
    radial-gradient(ellipse at 78% 22%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.36) 28%, transparent 58%),
    radial-gradient(ellipse at 52% 54%, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.58) 38%, rgba(255, 255, 255, 0.22) 68%, transparent 100%),
    linear-gradient(180deg, #f4f3f1 0%, #dfdddd 54%, #f7f6f3 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cloud-white);
  color: var(--ink);
  font-family: "Source Han Sans SC", "思源黑体", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-frame {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr auto;
}

.page-frame a {
  pointer-events: auto;
}

.brand {
  grid-column: 2;
  justify-self: center;
}

.page-nav {
  grid-column: 1;
  display: grid;
  gap: 18px;
  width: max-content;
  color: var(--muted);
}

.page-nav a,
.top-links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.page-nav a:hover,
.top-links a:hover,
.page-nav a.active,
.top-links a.active {
  color: var(--blue);
  border-color: rgba(0, 56, 199, 0.42);
  background: rgba(255, 255, 255, 0.66);
}

.top-links {
  grid-column: 3;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.top-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(16, 16, 16, 0.2);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
}

.top-links .primary-link {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.top-links .primary-link:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.page-main {
  position: relative;
  z-index: 2;
}

.page-hero {
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 150px 32px 96px;
}

.page-hero.compact-hero {
  min-height: 64svh;
}

.page-hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 220px));
  margin: 0 auto;
}

.kicker {
  margin: 0 0 20px;
  color: var(--blue);
}

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

h1 {
  width: min(1040px, 100%);
  font-size: clamp(54px, 6.4vw, 108px);
  line-height: 1.03;
  font-weight: 800;
}

h2 {
  font-size: clamp(40px, 4.6vw, 76px);
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.12;
}

h1,
h2,
h3 {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
}

p {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.78;
}

.blue {
  color: var(--blue);
}

.red {
  color: var(--red);
}

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

.lead {
  width: min(760px, 100%);
  margin-top: 28px;
}

.quick-points {
  width: min(880px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.quick-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.section {
  min-height: 80svh;
  padding: 110px 32px;
  border-top: 1px solid var(--line);
}

.section.dark {
  background: var(--dark);
  color: var(--paper);
}

.section.dark p {
  color: rgba(241, 241, 236, 0.68);
}

.section.dark .strong {
  color: var(--paper);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  border: 1px solid var(--line);
  margin-top: 42px;
}

.card {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.38);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.card:nth-child(3n),
.card:last-child {
  border-right: 0;
}

.card p {
  font-size: 16px;
  line-height: 1.7;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.role-card {
  grid-column: auto;
  min-height: 420px;
  gap: 14px;
  justify-content: flex-start;
}

.role-card:nth-child(4),
.role-card:nth-child(5) {
  grid-column: auto;
}

.role-card:nth-child(3n) {
  border-right: 1px solid var(--line);
}

.role-card:nth-child(3),
.role-card:nth-child(5) {
  border-right: 0;
}

.role-label {
  margin-top: 4px;
  margin-bottom: 2px;
}

.role-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.role-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(16, 16, 16, 0.08);
}

.wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.wide h2 {
  max-width: 960px;
}

.image-panel {
  width: min(760px, 100%);
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(16, 16, 16, 0.08);
}

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

.list-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.list-item p {
  grid-column: 2;
  margin-top: 10px;
}

.cases-page .compact-hero {
  min-height: auto;
  display: block;
  padding-top: 122px;
  padding-bottom: 84px;
}

.case-explorer {
  width: 100%;
}

.case-explorer h1 {
  width: min(1040px, 100%);
}

.case-track {
  --case-card-width: min(430px, 72vw);
  display: flex;
  gap: 24px;
  margin: 56px calc(50% - 50vw) 0;
  padding: 0 max(32px, calc((100vw - var(--case-card-width)) / 2)) 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(32px, calc((100vw - var(--case-card-width)) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.case-picker {
  flex: 0 0 var(--case-card-width);
  scroll-snap-align: center;
  appearance: none;
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  opacity: 0.46;
  transform: scale(0.92);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-picker.is-active,
.case-picker:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.case-picker img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 26px 52px rgba(16, 16, 16, 0.09);
}

.case-picker strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.case-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
  margin-top: 58px;
}

.case-detail-copy > span {
  display: block;
  margin: 10px 0 24px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.case-detail h2 {
  max-width: 780px;
  font-size: clamp(48px, 5.6vw, 94px);
  line-height: 0.98;
}

.case-detail h3 {
  margin-top: 28px;
  color: var(--blue);
}

.case-detail-copy > p:not(.mono) {
  margin-top: 18px;
  width: min(720px, 100%);
}

.case-detail-media {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 900;
  line-height: 1;
}

.case-detail-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(16, 16, 16, 0.1);
}

.cta {
  min-height: 70svh;
  display: grid;
  place-items: center;
  padding: 110px 32px;
  text-align: center;
}

.cta a {
  display: inline-block;
  margin-top: 32px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: color 180ms ease, background 180ms ease;
}

.cta a:hover {
  background: transparent;
  color: var(--ink);
}

@media (max-width: 900px) {
  html,
  body {
    background: var(--cloud-white);
    overflow-x: hidden;
  }

  .page-frame {
    padding: 0;
    display: block;
  }

  .brand {
    display: none;
  }

  .top-links {
    position: fixed;
    left: 50%;
    top: max(14px, env(safe-area-inset-top));
    bottom: auto;
    z-index: 40;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 6px;
    padding-bottom: 0;
  }

  .top-links a {
    min-width: 56px;
    min-height: 32px;
    justify-content: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    writing-mode: horizontal-tb;
    font-size: 12px;
  }

  .top-links .primary-link,
  .top-links a.active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
  }

  .page-nav {
    display: none;
  }

  .page-hero {
    min-height: auto;
    padding: 86px 18px 72px;
    background: var(--cloud-white);
  }

  .page-hero.compact-hero {
    min-height: auto;
  }

  .page-hero-inner,
  .section-inner {
    width: min(100%, calc(100vw - 36px));
  }

  h1 {
    font-size: clamp(38px, 10vw, 54px);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(34px, 9.6vw, 48px);
    line-height: 1.12;
  }

  h3 {
    font-size: clamp(24px, 7.5vw, 34px);
  }

  h1,
  h2,
  h3 {
    word-break: normal;
    overflow-wrap: break-word;
  }

  .section,
  .cta {
    padding: 86px 18px 84px;
    background: var(--cloud-white);
  }

  .section.dark {
    background: var(--cloud-white);
    color: var(--ink);
  }

  .section.dark p {
    color: var(--muted);
  }

  .section.dark .strong {
    color: var(--ink);
  }

  .wide,
  .grid,
  .list-item {
    display: block;
  }

  .wide h2 {
    max-width: 100%;
  }

  .card {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .grid {
    margin-top: 32px;
  }

  .role-card {
    min-height: 0;
    padding-bottom: 34px;
  }

  .role-avatar {
    width: 96px;
    height: 96px;
  }

  .card:last-child {
    border-bottom: 0;
  }

  .image-panel {
    margin-top: 32px;
  }

  .list-item h3,
  .list-item p {
    margin-top: 14px;
  }

  .team-page .page-hero {
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 96px;
  }

  .team-page .page-hero h1 {
    font-size: clamp(40px, 10.8vw, 56px);
    line-height: 1.04;
    text-align: left;
  }

  .team-page .page-hero .lead {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.8;
  }

  .team-page .quick-points {
    gap: 6px;
    margin-top: 24px;
  }

  .team-page .quick-points span {
    min-height: 30px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.56);
  }

  .team-page .team-grid {
    display: block;
    border: 0;
    margin-top: 34px;
  }

  .team-page .role-card {
    position: relative;
    min-height: 0;
    padding: 0 0 54px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    text-align: center;
    align-items: center;
  }

  .team-page .role-card::before,
  .team-page .role-card::after {
    position: absolute;
    top: 22px;
    color: var(--ink);
    font-family: "Source Han Sans SC", "思源黑体", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
  }

  .team-page .role-card::before {
    content: "*(";
    left: 0;
  }

  .team-page .role-card::after {
    content: ")";
    right: 0;
  }

  .team-page .role-avatar {
    width: min(52vw, 176px);
    height: 150px;
    margin: 0 auto 18px;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .team-page .role-label {
    margin: 0 0 4px;
    font-size: 12px;
  }

  .team-page .role-card h3 {
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1.05;
  }

  .team-page .role-name {
    margin-top: 6px;
    font-size: 17px;
  }

  .team-page .role-card p:last-child {
    width: min(100%, 312px);
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
  }

  .cases-page .compact-hero {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 54px;
  }

  .case-explorer h1 {
    font-size: clamp(34px, 9.4vw, 48px);
    line-height: 1.08;
  }

  .case-track {
    --case-card-width: min(72vw, 292px);
    gap: 14px;
    margin-top: 34px;
    padding-bottom: 12px;
  }

  .case-picker {
    gap: 9px;
  }

  .case-picker img {
    aspect-ratio: 1.08 / 1;
  }

  .case-picker strong {
    font-size: 13px;
  }

  .case-detail {
    display: block;
    margin-top: 34px;
  }

  .case-detail-copy > span {
    margin: 8px 0 18px;
    font-size: 13px;
  }

  .case-detail h2 {
    font-size: clamp(38px, 11.6vw, 56px);
    line-height: 1.02;
  }

  .case-detail h3 {
    margin-top: 20px;
    font-size: clamp(24px, 7.6vw, 34px);
  }

  .case-detail-copy > p:not(.mono) {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.72;
  }

  .case-detail-media {
    margin-top: 30px;
    gap: 6px;
    font-size: 40px;
  }

}
