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

:root {
  color-scheme: dark;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Songti TC", "SimSun", "Noto Serif SC", serif;
  --font-display: "Times New Roman", Times, "Nimbus Roman No9 L", "Liberation Serif", serif;
  --font-script: "Cormorant Garamond", "Baskerville", "Times New Roman", serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --paper: #fff;
  --paper-soft: #fff;
  --paper-faint: #fff;
  --signal: #9bffc4;
  --before-bar: rgba(255, 255, 255, 0.18);
  --after-bar: linear-gradient(90deg, rgba(155, 255, 196, 0.95), rgba(145, 214, 255, 0.72));
  --home-progress: 0;
  --contact-progress: 0;
  --project-progress: 0;
  --bytedance-visibility: 1;
  --huawei-visibility: 1;
}

html {
  height: 100%;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  -ms-overflow-style: none;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.05), transparent 24%),
    radial-gradient(circle at 20% 35%, rgba(159, 226, 255, 0.035), transparent 20%),
    radial-gradient(circle at 80% 24%, rgba(155, 255, 196, 0.03), transparent 18%),
    #000;
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 14%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.022), transparent 60%);
  content: "";
  pointer-events: none;
}

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

.portfolio-shell {
  position: relative;
}

.page-section {
  position: relative;
  width: 100%;
}

.top-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 40;
  width: fit-content;
  max-width: calc(100vw - 1.25rem);
  transform: translateX(-50%);
}

.top-nav__glass-panel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  background: rgba(16, 16, 18, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.top-nav__glass-panel::before {
  content: none;
}

.top-nav__glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
}

.top-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.54rem;
  padding: 0.64rem 1.04rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    color 220ms ease,
    transform 280ms cubic-bezier(0.2, 0.9, 0.24, 1),
    border-color 220ms ease,
    background 220ms ease,
    opacity 220ms ease;
}

.top-nav__item--glass {
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  opacity: 1;
}

.top-nav__item--glass::before,
.top-nav__item--glass::after {
  content: none;
}

.top-nav__item--glass span {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.top-nav__item--glass:hover,
.top-nav__item--glass:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.top-nav__item--glass.is-active {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.042) 46%, rgba(255, 255, 255, 0.012) 72%, rgba(255, 255, 255, 0.006)),
    rgba(22, 22, 24, 0.08);
  box-shadow: none;
}

.top-nav__item--glass.is-active::before,
.top-nav__item--glass.is-active::after {
  opacity: 0;
}

.hero {
  min-height: 112vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-content: flex-start;
  justify-items: start;
  width: min(100%, 96rem);
  margin: auto;
  padding:
    clamp(4.8rem, 8vw, 6.4rem)
    clamp(1.5rem, 4vw, 3rem)
    clamp(5rem, 10vw, 7.2rem);
  opacity: calc(1 - var(--home-progress) * 1.68);
  transform:
    translateY(calc(-5.6rem + var(--home-progress) * -7.2rem))
    translateX(-1.4rem)
    scale(calc(1 - var(--home-progress) * 0.16));
  transition: opacity 90ms linear, transform 90ms linear;
}

.hero-intro {
  display: grid;
  align-content: start;
  gap: 1rem;
  width: min(100%, 56rem);
  text-align: left;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 3.4vw, 2.35rem);
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-left: -1.7rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: calc(0.72 - var(--home-progress) * 1.1);
  transform:
    translateY(calc(var(--home-progress) * 1.8rem))
    scale(calc(1 - var(--home-progress) * 0.08));
  transition: opacity 180ms ease, transform 220ms ease;
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  opacity: calc(0.96 - var(--home-progress) * 0.9);
  outline: none;
}

.hero-scroll-cue__ring {
  position: absolute;
  inset: 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.015);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.018) inset,
    0 0 28px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-scroll-cue__chevron {
  position: absolute;
  width: 0.84rem;
  height: 0.84rem;
  border-right: 1.8px solid rgba(255, 255, 255, 0.94);
  border-bottom: 1.8px solid rgba(255, 255, 255, 0.94);
  transform: rotate(45deg);
  animation: hero-scroll-chevron 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.hero-scroll-cue__chevron--first {
  top: 1rem;
}

.hero-scroll-cue__chevron--second {
  top: 1.38rem;
  animation-delay: 0.18s;
}

.hero-title {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4rem;
  line-height: 0.96;
  margin-bottom: 0.75rem;
  margin-left: -0.55rem;
}

.hero-details {
  display: grid;
  align-content: start;
  gap: 1rem;
  opacity: 0;
  transform: translateY(1.15rem);
  animation: hero-details-enter 760ms cubic-bezier(0.16, 1, 0.3, 1) 680ms forwards;
}

.hero-word {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  white-space: nowrap;
}

.hero-word--hello {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7.8vw, 8.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.hero-word--name {
  font-family: var(--font-serif);
  font-size: clamp(3.6rem, 6.6vw, 6.6rem);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-role {
  margin-top: 3.1rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.84rem, 2.5vw, 2.55rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  opacity: calc(1 - var(--contact-progress) * 1.12);
  transform: translateY(calc(var(--contact-progress) * -1.15rem));
  transition: opacity 90ms linear, transform 90ms linear;
}

.hero-summary,
.hero-school {
  opacity: calc(1 - var(--contact-progress) * 1.15);
  transform: translateY(calc(var(--contact-progress) * -1.3rem));
  transition: opacity 90ms linear, transform 90ms linear;
}

.hero-summary {
  max-width: 42rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.18vw, 1.22rem);
  line-height: 1.9;
  letter-spacing: 0.01em;
  margin-top: 0.35rem;
}

.hero-school {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.02vw, 1.08rem);
  line-height: 1.9;
  margin-top: 0.4rem;
}

.hero-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4.8rem;
  opacity: calc(1 - var(--contact-progress) * 1.18);
  transform: translateY(calc(3.15rem + var(--contact-progress) * -1.35rem));
  transition: opacity 90ms linear, transform 90ms linear;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  min-height: 3rem;
  padding: 0.9rem 1.7rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: #080808;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  translate: 0 -4rem;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.24, 1), background 180ms ease, color 180ms ease;
}

.hero-button__label {
  font-family: var(--font-serif);
}

.hero-button__icon {
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1;
  transform: translateY(0.02rem);
}

.hero-button:hover,
.hero-button:focus-visible {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
  outline: none;
}

.hero-contact {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(6rem, 15vh, 10rem);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem 1rem;
  width: max-content;
  max-width: min(48rem, calc(100vw - 3rem));
  opacity: calc(0.98 - var(--home-progress) * 1.35);
  transform:
    translateY(calc(var(--home-progress) * 1.4rem))
    translateX(calc(var(--project-progress) * 0.8rem));
  transition: opacity 90ms linear, transform 90ms linear;
}

.hero-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #fff;
  text-decoration: none;
  padding: 0.08rem 0;
}

.hero-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  color: #fff;
}

.hero-contact__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-contact__label {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-contact__value {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
}

.hero-contact__item:hover,
.hero-contact__item:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.hero-char {
  display: inline-block;
  opacity: 0;
  filter: blur(0.3rem);
  transform: translateY(2.25rem) scale(0.76) rotate(3deg);
  transform-origin: 50% 85%;
  animation: character-pop 700ms cubic-bezier(0.16, 1.42, 0.36, 1) forwards;
  animation-delay: calc(120ms + var(--char-index) * 85ms);
}

.hero-char:nth-child(even) {
  transform: translateY(2.25rem) scale(0.76) rotate(-3deg);
}

.project-section {
  position: relative;
  min-height: 124vh;
  margin-top: -14vh;
  padding: 4.5rem 0 8rem;
}

.project-section::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 8, 10, 0.78) 22%, rgba(0, 0, 0, 1) 62%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.03), transparent 26rem);
  opacity: calc(0.16 + var(--project-progress) * 0.84);
  content: "";
}

.project-shell {
  width: min(100%, 96rem);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.project-stage {
  display: grid;
  justify-items: stretch;
  gap: clamp(1.8rem, 3vw, 2.8rem);
}

.project-copy {
  max-width: 44rem;
}

.project-header {
  display: grid;
  grid-template-columns: clamp(4.2rem, 5vw, 5rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.7rem);
  width: min(100%, 84rem);
  margin: 0 auto;
}

.project-logo {
  width: clamp(4.2rem, 5vw, 5rem);
  height: clamp(4.2rem, 5vw, 5rem);
  display: grid;
  place-items: center;
  border-radius: 1rem;
}

.project-logo__mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.6rem;
  min-width: 0;
}

.project-title-block {
  text-align: left;
  min-width: 0;
}

.project-role-line {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin-bottom: 0.72rem;
}

.project-company {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.project-role {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  letter-spacing: 0.01em;
}

.project-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.2vw, 3.28rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.project-title-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.62rem, 2.3vw, 2.52rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.project-copy h2 em,
.project-title-block h2 em {
  color: #fff;
  font-style: normal;
}

.project-time {
  justify-self: end;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.project-brief {
  display: grid;
  gap: 1.1rem;
  width: min(100%, 84rem);
  margin: 0 auto;
  padding: 1.15rem 0 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-brief__summary {
  max-width: 72rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.18vw, 1.08rem);
  line-height: 1.88;
  letter-spacing: 0.01em;
}

.project-brief__summary--single-line {
  max-width: none;
  font-size: clamp(0.86rem, 0.88vw, 1rem);
  line-height: 1.55;
  white-space: nowrap;
}

.project-brief__summary--rsi {
  max-width: none;
  color: #fff;
}

.project-brief__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.project-brief__grid--rsi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.8rem;
  row-gap: 1.6rem;
}

.project-brief__grid--rsi > :last-child {
  grid-column: 1 / -1;
}

.project-brief__grid--rsi > :nth-child(-n + 2) {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.018);
}

.project-brief__item--rsi-flow {
  padding-bottom: 0;
  border-bottom: none;
}

.project-brief__grid--story {
  gap: 1.5rem;
}

.project-brief__item {
  position: relative;
  padding-right: 0;
  min-height: 100%;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-brief__item:not(:last-child)::after {
  content: none;
}

.project-brief__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-brief__item h3 {
  margin-bottom: 0.8rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.26rem, 1.45vw, 1.5rem);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: 0.01em;
}

.project-brief__item p {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.9;
}

.project-brief__item p + p {
  margin-top: 0.92rem;
}

.project-brief__item strong {
  color: #fff;
  font-weight: 600;
}

.project-outcome {
  display: grid;
  gap: 0.84rem;
  width: min(100%, 84rem);
  margin: 0 auto;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-outcome--steady {
  opacity: 1;
  filter: none;
  transform: none;
}

.project-outcome h3 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 1.5vw, 1.52rem);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: 0.01em;
}

.project-outcome p {
  max-width: 68rem;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.9;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.project-metric {
  display: grid;
  gap: 0.32rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 12, 0.88);
}

.project-metric__value {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.2vw, 2rem);
  line-height: 1;
}

.project-metric__label {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.55;
}

.project-section-heading {
  display: grid;
  gap: 0.7rem;
  width: min(100%, 84rem);
  margin: 0 auto 1rem;
}

.project-section-heading__eyebrow {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-section-heading h3 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.36rem, 2vw, 1.92rem);
  font-weight: 600;
  line-height: 1.32;
}

.project-section-heading p {
  max-width: 68rem;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.88;
}

.project-inline-media,
.project-story-card,
.project-story-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.project-story-card .project-brief__item {
  margin: 0;
}

.project-story-row {
  align-items: start;
}

.project-story-row--media-left {
  grid-template-areas: "media copy";
}

.project-story-row--media-right {
  grid-template-areas: "copy media";
}

.project-story-row > .project-brief__item {
  grid-area: copy;
}

.project-story-row > .project-figure-panel {
  grid-area: media;
}

.project-brief__item--story {
  margin: 0;
}

.project-figures,
.project-results {
  display: grid;
  gap: 1.2rem;
  width: min(100%, 84rem);
  margin: 0 auto;
}

.project-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-figure-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(9, 9, 11, 0.94);
}

.project-figure-card--wide {
  margin-top: 0.2rem;
}

.project-figure-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

.project-figure-card figcaption {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.8;
}

.project-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-table-card,
.project-contrib-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(9, 9, 11, 0.94);
}

.project-table-card h4,
.project-contrib-card h4,
.project-subtable h5 {
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.42;
}

.project-subtable {
  display: grid;
  gap: 0.7rem;
}

.project-table__wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}

.project-table--compact {
  min-width: 0;
}

.project-table th,
.project-table td {
  padding: 0.74rem 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-table thead th {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.project-table tbody th {
  color: #fff;
  font-weight: 500;
}

.project-table tbody td {
  color: #fff;
}

.project-table--paper thead tr:first-child th {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
}

.project-table--paper thead tr:last-child th {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.015);
}

.project-table--paper thead th[rowspan] {
  vertical-align: middle;
}

.project-table--paper tbody th[rowspan] {
  vertical-align: middle;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
}

.project-table--paper tbody tr.project-table__group-start th,
.project-table--paper tbody tr.project-table__group-start td {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.project-table__row--highlight th,
.project-table__row--highlight td {
  color: #fff;
  background: rgba(123, 79, 255, 0.12);
}

.project-table__note,
.project-contrib-card p {
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.82;
}

.project-contrib-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.project-section--huawei .project-logo {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.project-section--huawei .huawei-context__copy p {
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.huawei-context {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0.75rem 0 1.75rem;
}

.huawei-context__copy {
  min-width: 0;
}

.huawei-context__copy h3 {
  margin-bottom: 0.8rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.huawei-context__problem {
  min-height: auto;
  margin-top: 1.75rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
}

.project-figure-panel.huawei-context__figure {
  min-width: 0;
  padding: clamp(0.75rem, 1.2vw, 1.1rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.025);
}

.huawei-context__figure figcaption {
  padding: 0 0.2rem 0.15rem;
  line-height: 1.8;
}

.huawei-framework {
  display: grid;
  min-width: 0;
  gap: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.huawei-framework > .project-figure-panel {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: 0;
}

.huawei-routing {
  min-width: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.huawei-routing__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.2rem;
  list-style: none;
}

.huawei-routing__steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 0.85rem;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.huawei-routing__steps li:first-child {
  padding-left: 0;
  border-left: none;
}

.huawei-routing__steps li:last-child {
  padding-bottom: 0;
}

.huawei-routing__number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.huawei-routing__steps h4 {
  margin: 0.1rem 0 0.5rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
}

.huawei-routing__steps p {
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

@media (max-width: 1000px) {
  .huawei-context {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .huawei-routing__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .huawei-routing__steps li {
    padding: 1.15rem 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .huawei-routing__steps li:first-child {
    padding-top: 0;
    border-top: none;
  }
}

.project-section--huawei .project-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-section--huawei .project-metric {
  padding: 1rem 0.95rem 1.05rem;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.project-section--huawei .project-metric:last-child {
  border-right: none;
}

.project-figure-panel {
  display: grid;
  gap: 0.9rem;
  padding: 10px 10px 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.project-figure-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
}

.project-figure-panel--crop {
  align-content: start;
}

.project-figure-panel--crop img {
  width: 100%;
  max-width: 100%;
  transform: none;
}

.project-figure-panel figcaption {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.7;
}

.project-collection-break {
  position: relative;
  width: min(100%, 84rem);
  margin: 0 auto;
  padding: 0.4rem 0 0.1rem;
}

.project-collection-break::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.14) 20%, rgba(255, 255, 255, 0.14) 80%, rgba(255, 255, 255, 0));
}

.project-collection-break span {
  position: relative;
  display: inline-block;
  padding-right: 1rem;
  background: #000;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-section--project-page {
  padding-top: 6.8rem;
  margin-top: -8vh;
}

.project-section--project-page::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(7, 7, 9, 0.86) 20%, rgba(0, 0, 0, 1) 64%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.026), transparent 28rem);
  opacity: 1;
}

.project-section--project-page + .project-section--project-page {
  margin-top: -10vh;
}

.project-header--project-page {
  align-items: start;
}

.project-logo--monogram {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.014)),
    rgba(9, 9, 11, 0.92);
}

.project-logo--monogram span {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.16vw, 1.12rem);
  font-style: italic;
  letter-spacing: 0.08em;
}

.project-metrics--flat {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-metrics--flat .project-metric {
  padding: 1rem 1rem 1.05rem;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.project-metrics--flat .project-metric:last-child {
  border-right: none;
}

.project-storyboard {
  display: grid;
  gap: 1.5rem;
  width: min(100%, 84rem);
  margin: 0 auto;
}

.memory-mechanism {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.8rem);
  width: min(100%, 84rem);
  min-width: 0;
  margin: 0 auto;
  scroll-margin-top: 6rem;
  color: #fff;
}

.memory-mechanism__heading {
  margin-bottom: 0;
}

.memory-mechanism__heading p {
  max-width: none;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.memory-mechanism__heading strong {
  font-weight: 600;
}

.memory-mechanism__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  list-style: none;
}

.memory-mechanism__steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.memory-mechanism__index {
  padding-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.memory-mechanism__steps h4 {
  margin-bottom: 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
}

.memory-mechanism__steps p {
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.85;
}

.memory-mechanism__figure {
  display: grid;
  gap: 0.9rem;
  width: min(82%, 58rem);
  min-width: 0;
  margin: 0 auto;
}

.memory-mechanism__image-link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
}

.memory-mechanism__image-link img {
  display: block;
  width: 100%;
  height: auto;
}

.memory-mechanism__figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 1rem 2rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.memory-mechanism__figure figcaption p {
  flex: 1;
}

.memory-mechanism__figure figcaption strong {
  font-weight: 600;
}

.memory-mechanism__figure figcaption a {
  flex-shrink: 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.memory-mechanism a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .memory-mechanism__figure {
    width: 100%;
  }

  .memory-mechanism__steps {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .memory-mechanism__steps h4 {
    margin-bottom: 0.4rem;
  }

  .memory-mechanism__figure figcaption {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.memory-architecture {
  gap: 1.8rem;
  min-width: 0;
  scroll-margin-top: 6rem;
  color: #fff;
}

.memory-architecture > .project-section-heading {
  margin-bottom: 0;
}

.memory-architecture__block {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.memory-architecture__block + .memory-architecture__block {
  padding-top: 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.memory-architecture__heading {
  display: grid;
  gap: 0.5rem;
}

.memory-architecture h4,
.memory-architecture h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.5;
}

.memory-architecture h4 {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
}

.memory-architecture h5 {
  font-size: 1.1rem;
}

.memory-architecture__block p {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.85;
}

.memory-architecture__routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.memory-architecture__route {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.memory-architecture__route-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.memory-architecture__route-heading span {
  font-family: var(--font-mono);
  font-size: 0.83rem;
}

.memory-architecture__priority {
  display: flex;
  align-items: baseline;
  gap: 0.35rem 1rem;
}

.memory-architecture__priority strong {
  flex-shrink: 0;
  font-weight: 500;
}

.memory-architecture__diagram {
  width: min(86%, 70rem);
  min-width: 0;
  margin: 0 auto;
  scroll-margin-top: 6rem;
}

.memory-architecture__diagram-link {
  display: block;
  overflow: hidden;
  padding: clamp(0.4rem, 1vw, 0.9rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #fff;
  color-scheme: light;
  cursor: zoom-in;
}

.memory-architecture__diagram-link img {
  display: block;
  width: 100%;
  height: auto;
}

.memory-architecture__diagram-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .memory-architecture__diagram {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .memory-architecture__routes {
    grid-template-columns: 1fr;
  }

  .memory-architecture__priority {
    flex-direction: column;
  }

  .memory-architecture__route {
    padding: 1rem;
  }
}

.project-board,
.project-training-board {
  display: grid;
  gap: 0.92rem;
  padding: 1rem 1rem 1.08rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(7, 7, 9, 0.92);
}

.project-board__eyebrow {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-board__grid {
  display: grid;
  gap: 0.85rem;
}

.project-board__grid--two,
.project-board__grid--comparison {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-board__item {
  display: grid;
  gap: 0.46rem;
  padding: 0.9rem 0.92rem 0.96rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.project-board__label {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.42;
}

.project-board__text,
.project-board__footnote {
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.82;
}

.project-pipeline {
  display: grid;
  gap: 0.72rem;
}

.project-pipeline__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.8rem;
  align-items: start;
  padding: 0.78rem 0.82rem 0.82rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.project-pipeline__index {
  grid-row: span 2;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1;
}

.project-pipeline__title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.42;
}

.project-pipeline__text {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.72;
}

.project-training-board__headline {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.46;
}

.project-training-board__lanes {
  display: grid;
  gap: 0.78rem;
}

.project-training-board__lane {
  display: grid;
  gap: 0.2rem;
  padding: 0.86rem 0.9rem 0.92rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.project-training-board__lane span {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-training-board__lane strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
}

.project-training-board__lane p {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.72;
}

.project-section--memory::after,
.project-section--fer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.project-section--memory::after {
  background:
    radial-gradient(circle at 22% 18%, rgba(151, 209, 255, 0.05), transparent 20rem),
    radial-gradient(circle at 78% 10%, rgba(181, 164, 255, 0.045), transparent 18rem);
}

.project-section--fer::after {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 196, 140, 0.045), transparent 18rem),
    radial-gradient(circle at 24% 14%, rgba(155, 255, 196, 0.04), transparent 20rem);
}

.project-result-highlight {
  display: grid;
  gap: 0.72rem;
  padding: 1rem 0 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-result-highlight__value-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 0.95rem;
}

.project-result-highlight__value {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 1.9vw, 1.78rem);
  line-height: 1.1;
}

.project-result-highlight__divider {
  width: 1px;
  height: 1rem;
  background: rgba(255, 255, 255, 0.14);
}

.project-result-highlight__note {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.82;
}

.project-table-card--secondary {
  margin-top: 0.2rem;
}

.project-table--comparison {
  min-width: 0;
}

.project-table--wide {
  min-width: 88rem;
}

.project-table--wide th,
.project-table--wide td {
  white-space: nowrap;
}

.project-section--huawei {
  padding-top: 5.8rem;
  opacity: var(--huawei-visibility);
  filter: blur(calc((1 - var(--huawei-visibility)) * 0.4rem));
  transform: translateY(calc((1 - var(--huawei-visibility)) * 2.4rem));
  transition: opacity 140ms linear, filter 180ms linear, transform 180ms linear;
}

.project-section--huawei::before {
  content: "";
  position: absolute;
  top: -18rem;
  left: 0;
  right: 0;
  height: 24rem;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.42) 24%, rgba(0, 0, 0, 0.82) 64%, rgba(0, 0, 0, 1) 100%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.03), transparent 44%);
  z-index: 0;
}

.project-section--huawei::after {
  content: "";
  position: absolute;
  top: -4rem;
  left: 0;
  right: 0;
  height: 9rem;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(10, 10, 12, 0.18) 18%, rgba(0, 0, 0, 0.88) 74%, rgba(0, 0, 0, 1) 100%);
  z-index: 0;
}

.project-section--huawei .project-results {
  gap: 2rem;
}

.project-section--huawei .project-table-card {
  min-width: 0;
  width: 100%;
  max-width: 74rem;
  justify-self: center;
  gap: 0.75rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.project-section--huawei .project-table-card--latency {
  margin-top: 0.75rem;
}

.project-section--huawei .project-table-card h4 {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  line-height: 1.65;
}

.project-table-card__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
}

.project-table-card__heading p {
  color: #fff;
  font: 0.8rem/1.5 var(--font-sans);
}

.project-section--huawei .project-table__note {
  max-width: 72rem;
  font-size: 0.9rem;
  line-height: 1.9;
}

.project-section--huawei .project-table__wrap {
  min-width: 0;
  border: none;
  border-radius: 0;
  scrollbar-color: #777 transparent;
}

.project-section--huawei .project-table {
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  font-variant-numeric: tabular-nums;
}

.project-section--huawei .project-table--wide {
  min-width: 62rem;
}

.project-section--huawei .project-table--compact {
  min-width: 0;
}

.project-section--huawei .project-table th,
.project-section--huawei .project-table td {
  padding: 0.42rem 0.55rem;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.45;
}

.project-section--huawei .project-table thead tr th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
}

.project-section--huawei .project-table--paper thead tr:first-child th[colspan] {
  padding-top: 0.65rem;
  padding-bottom: 0.2rem;
  border-bottom: none;
  font-size: 1.06rem;
  font-weight: 600;
}

.project-section--huawei .project-table--paper thead tr:last-child th {
  padding-top: 0.2rem;
  padding-bottom: 0.65rem;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.project-section--huawei .project-table--paper thead th[colspan],
.project-section--huawei .project-table--paper thead tr:last-child th,
.project-section--huawei .project-table--paper tbody td:nth-last-child(-n + 10) {
  text-align: center;
}

.project-section--huawei .project-table--paper tbody td:nth-last-child(-n + 10),
.project-section--huawei .project-table--compact tbody td {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: -0.025em;
}

.project-section--huawei .project-table--paper thead tr:last-child th:nth-child(2n),
.project-section--huawei .project-table--paper tbody td:nth-last-child(odd) {
  padding-right: 0.85rem;
}

.project-section--huawei .project-table--paper thead tr:last-child th:last-child,
.project-section--huawei .project-table--paper tbody td:last-child {
  padding-right: 0.65rem;
}

.project-section--huawei .project-table tbody tr:nth-child(even) {
  background: transparent;
}

.project-section--huawei .project-table--paper tbody th,
.project-section--huawei .project-table--paper tbody th[rowspan] {
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 600;
}

.project-section--huawei .project-table .project-table__group-start > * {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 0.65rem;
}

.project-section--huawei .project-table .project-table__row--highlight > * {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  font-weight: 700;
}

.project-section--huawei .project-table--compact th,
.project-section--huawei .project-table--compact td {
  padding: 1.1rem 0;
}

.project-section--huawei .project-table--compact tbody tr + tr > * {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.project-section--huawei .project-table--compact th:last-child,
.project-section--huawei .project-table--compact td:last-child {
  text-align: right;
}

.project-section--huawei .project-table--compact .project-table__row--highlight > * {
  border-top-color: rgba(255, 255, 255, 0.4);
}

.project-section--huawei .project-table tbody tr:last-child > * {
  border-bottom: none;
}

.project-section--huawei .project-table--latency {
  min-width: 62rem;
}

.project-section--huawei .project-table--latency th,
.project-section--huawei .project-table--latency td {
  padding: 0.32rem 0.6rem;
  white-space: nowrap;
  text-align: right;
}

.project-section--huawei .project-table--latency th:first-child {
  text-align: left;
}

.project-section--huawei .project-table--latency tbody th {
  vertical-align: middle;
  font-weight: 600;
}

.project-section--huawei .project-table--latency tbody td {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: -0.025em;
}

.project-section--huawei .project-table--latency tbody + tbody {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.project-section--huawei .project-table--latency thead th {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.project-section--huawei .project-table--latency .project-table__group--ours strong {
  font-weight: 700;
}

.project-section--huawei .project-shell,
.project-section--huawei .project-stage {
  position: relative;
  z-index: 1;
}

#bytedance-rsi {
  opacity: var(--bytedance-visibility);
  filter: blur(calc((1 - var(--bytedance-visibility)) * 0.42rem));
  transform: translateY(calc((1 - var(--bytedance-visibility)) * -1.2rem));
  transition: opacity 140ms linear, filter 180ms linear, transform 180ms linear;
}

.project-flowchart {
  scroll-margin-top: 7rem;
  --flow-ink: #fff;
  --flow-muted: #fff;
  --flow-blue: #74a7ff;
  --flow-purple: #c38dff;
  --flow-green: #5fd59a;
  --flow-orange: #f0c56b;
  --flow-red: #ff8d8d;
  --flow-songti: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  display: grid;
  gap: 0.85rem;
  width: min(100%, 84rem);
  margin: 0 auto;
  color: var(--flow-ink);
  font-family: var(--flow-songti);
}

.project-flowchart__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.project-flowchart__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.92);
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.project-flowchart__link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(22, 22, 24, 0.98);
}

.project-flowchart__embed {
  width: 100%;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(42, 42, 42, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #040404;
  background-size: 28px 28px, 28px 28px, auto;
}

.project-flowchart__embed-frame {
  display: block;
  width: 100%;
  aspect-ratio: 2840 / 1400;
  min-height: 0;
  height: auto;
  border: 0;
  border-radius: 12px;
  background: #050608;
}

.project-flowchart__hint {
  margin: 0;
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.65;
  flex: 1 1 38rem;
}

.project-flowchart__embed-note {
  margin: -0.05rem 0 0;
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.6;
}

.rsi-gates {
  width: min(100%, 80rem);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
  color: #fff;
  scroll-margin-top: 6rem;
}

.rsi-gates__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.rsi-gates__summary::-webkit-details-marker { display: none; }
.rsi-gates__summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.rsi-gates__summary h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  line-height: 1.7;
}

.rsi-gates__supplement {
  margin-right: 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.rsi-gates__toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.rsi-gates__toggle::after { content: "+"; font-family: var(--font-mono); }
.rsi-gates__collapse { display: none; }
.rsi-gates[open] > .rsi-gates__summary .rsi-gates__expand { display: none; }
.rsi-gates[open] > .rsi-gates__summary .rsi-gates__collapse { display: inline; }
.rsi-gates[open] > .rsi-gates__summary .rsi-gates__toggle::after { content: "−"; }

.rsi-gates__content {
  display: grid;
  gap: 1.5rem;
  padding: 0.5rem 0 0.4rem;
}

.rsi-gates__intro,
.rsi-gates__item p {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.8;
}

.rsi-gates__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rsi-gates__item {
  min-width: 0;
  padding: 1.2rem 0 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
}

.rsi-gates__item h4 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.rsi-gates__number {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.rsi-gates__example {
  margin-top: 0.75rem;
}

.rsi-gates__example summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  min-height: 2rem;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
}

.rsi-gates__example summary::-webkit-details-marker { display: none; }
.rsi-gates__example summary::before { content: "+"; font-family: var(--font-mono); }
.rsi-gates__example[open] summary::before { content: "−"; }
.rsi-gates__example summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.rsi-gates__example summary:focus-visible,
.rsi-gates__footer a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.rsi-gates__example p {
  margin-top: 0.55rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

.rsi-gates__footer {
  display: flex;
  align-items: flex-start;
  gap: 1rem 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
}

.rsi-gates__footer p {
  flex: 1;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.8;
}

.rsi-gates__footer a {
  flex-shrink: 0;
  padding: 0.15rem 0;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (max-width: 1000px) {
  .rsi-gates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .rsi-gates__supplement { display: block; margin: 0 0 0.2rem; }
  .rsi-gates__grid { grid-template-columns: 1fr; }
  .rsi-gates__footer { flex-direction: column; gap: 0.65rem; }
}

@media (max-width: 760px) {
  .project-flowchart__header {
    align-items: stretch;
  }

  .project-flowchart__link {
    width: 100%;
  }

  .project-flowchart__embed {
    padding: 4px;
    border-radius: 14px;
  }

  .project-flowchart__embed-frame {
    border-radius: 10px;
  }

}

.project-flowchart .muted {
  opacity: 0.24 !important;
}

.thinking-anchor {
  height: 16vh;
}

.project-reveal {
  opacity: var(--project-progress);
  transform: translateY(calc((1 - var(--project-progress)) * (2.8rem + var(--reveal-index, 0) * 0.65rem)));
  filter: blur(calc((1 - var(--project-progress)) * 0.65rem));
}

.motion-ready .project-reveal {
  transition:
    opacity 760ms cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 960ms cubic-bezier(0.16, 0.84, 0.44, 1),
    filter 960ms cubic-bezier(0.16, 0.84, 0.44, 1);
  transition-delay: calc(var(--reveal-index) * 110ms);
}

.motion-ready .project-reveal.is-visible {
  will-change: opacity, transform, filter;
}

@keyframes character-pop {
  0% {
    opacity: 0;
    filter: blur(0.3rem);
    transform: translateY(2.25rem) scale(0.76) rotate(3deg);
  }

  65% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-0.38rem) scale(1.02) rotate(-0.4deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes hero-details-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-scroll-chevron {
  0% {
    opacity: 0;
    transform: translateY(-0.36rem) rotate(45deg);
  }

  25% {
    opacity: 0.98;
  }

  70% {
    opacity: 0.82;
    transform: translateY(0.3rem) rotate(45deg);
  }

  100% {
    opacity: 0;
    transform: translateY(0.64rem) rotate(45deg);
  }
}

@media (max-width: 760px) {
  .top-nav {
    top: 0.85rem;
  }

  .top-nav__glass {
    gap: 0.18rem;
  }

  .top-nav__item {
    min-height: 2.26rem;
    padding: 0.52rem 0.72rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 110vh;
  }

  .hero-content {
    width: 100%;
    padding:
      clamp(4.6rem, 13vw, 6rem)
      clamp(1.2rem, 6vw, 1.5rem)
      clamp(4.8rem, 14vw, 6.6rem);
    transform:
      translateY(calc(-3.6rem + var(--home-progress) * -4.2rem))
      translateX(0)
      scale(calc(1 - var(--home-progress) * 0.08));
  }

  .hero-intro {
    width: min(100%, 30rem);
    gap: 0.6rem;
  }

  .hero-details {
    gap: 0.6rem;
  }

  .hero-scroll-cue {
    bottom: 1.1rem;
    width: 3rem;
    height: 3rem;
    margin-left: -1.5rem;
  }

  .hero-word--hello {
    font-size: clamp(3rem, 12.6vw, 4.8rem);
  }

  .hero-word--name {
    font-size: clamp(2.76rem, 10.8vw, 4.3rem);
  }

  .hero-title {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.18rem;
    line-height: 0.92;
    margin-bottom: 0.4rem;
    margin-left: 0;
  }

  .hero-word {
    white-space: normal;
  }

  .hero-role {
    margin-top: 0.62rem;
    font-size: clamp(1.46rem, 6vw, 1.96rem);
  }

  .hero-summary {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero-school {
    font-size: 0.92rem;
  }

  .hero-button {
    min-height: 2.9rem;
    padding: 0.82rem 1.45rem;
    font-size: 0.96rem;
    translate: 0 -1.5rem;
  }

  .hero-actions {
    margin-top: 1.8rem;
    transform: translateY(calc(0.5rem + var(--contact-progress) * -1.1rem));
  }

  .hero-contact {
    right: 1.5rem;
    bottom: 6rem;
    justify-content: flex-end;
    gap: 0.72rem 0.92rem;
    max-width: calc(100vw - 3rem);
    transform: translateY(calc(var(--home-progress) * 1rem));
  }

  .hero-contact__item {
    flex-wrap: wrap;
    gap: 0.4rem 0.46rem;
  }

  .hero-contact__label {
    font-size: 0.92rem;
  }

  .hero-contact__value {
    font-size: 0.94rem;
  }

  .hero-char {
    animation-delay: calc(100ms + var(--char-index) * 65ms);
  }

  .project-section {
    margin-top: -10vh;
    padding-top: 3.6rem;
    padding-bottom: 4rem;
  }

  .project-header {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.2rem;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .project-title-block {
    text-align: left;
  }

  .project-role-line {
    gap: 0.32rem 0.7rem;
    margin-bottom: 0.55rem;
  }

  .project-title-block h2 {
    font-size: clamp(1.56rem, 7.2vw, 2.3rem);
    white-space: normal;
  }

  .project-time {
    justify-self: start;
    font-size: 0.88rem;
  }

  .project-brief {
    gap: 0.9rem;
    padding: 1rem 0 1.05rem;
  }

  .project-brief__summary {
    font-size: 0.95rem;
    line-height: 1.78;
  }

  .project-brief__summary--single-line {
    font-size: 0.95rem;
    line-height: 1.78;
    white-space: normal;
  }

  .project-brief__summary--rsi {
    color: #fff;
  }

  .project-brief__grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .project-brief__grid--rsi > :last-child {
    grid-column: auto;
  }

  .project-brief__grid--rsi > :nth-child(-n + 2) {
    padding: 1rem;
  }

  .project-inline-media,
  .project-story-card,
  .project-story-row {
    grid-template-columns: 1fr;
  }

  .project-story-row--media-left,
  .project-story-row--media-right {
    grid-template-areas:
      "copy"
      "media";
  }

  .project-metrics,
  .project-figure-grid,
  .project-table-grid,
  .project-contrib-grid {
    grid-template-columns: 1fr;
  }

  .project-section--huawei .project-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-metrics--flat .project-metric {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .project-metrics--flat .project-metric:nth-child(2n) {
    border-right: none;
  }

  .project-metrics--flat .project-metric:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .project-section--huawei .project-metric {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .project-section--huawei .project-metric:nth-child(2n) {
    border-right: none;
  }

  .project-section--huawei .project-metric:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .project-figure-panel,
  .project-figure-card,
  .project-table-card,
  .project-contrib-card {
    padding: 0.95rem;
    border-radius: 1.2rem;
  }

  .project-board,
  .project-training-board {
    padding: 0.95rem;
    border-radius: 1.1rem;
  }

  .project-board__grid--two,
  .project-board__grid--comparison {
    grid-template-columns: 1fr;
  }

  .project-table {
    min-width: 28rem;
  }

  .project-table--wide {
    min-width: 44rem;
  }

  .project-brief__item {
    padding-right: 0;
    padding-bottom: 0.85rem;
  }

  .project-brief__item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: 0;
    width: 100%;
    height: 1px;
  }

  .project-flowchart {
    gap: 0.85rem;
  }

  .project-flowchart__embed-frame {
    aspect-ratio: auto;
    height: 660px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .hero-char,
  .hero-details,
  .hero-role,
  .hero-summary,
  .hero-school,
  .hero-actions,
  .hero-contact,
  .project-reveal,
  .motion-ready .project-reveal {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
    transition: none;
  }

  .project-section::before {
    opacity: 1;
  }

  #bytedance-rsi,
  .project-section--huawei {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .hero-scroll-cue,
  .hero-scroll-cue__chevron {
    animation: none;
    transition: none;
  }
}
