:root {
  --bg: #ede6da;
  --bg-soft: #f6f1e8;
  --paper: #f4efe6;
  --paper-strong: #fbf8f1;
  --paper-muted: #e7dece;
  --ink: #181411;
  --text-muted: #6a6156;
  --line: rgba(47, 38, 28, 0.18);
  --line-strong: rgba(47, 38, 28, 0.68);
  --accent: #8e3e2e;
  --accent-strong: #6b2e22;
  --accent-alt: #52604d;
  --accent-soft: #b38d58;
  --shadow-soft: 0 16px 40px rgba(61, 42, 21, 0.06);
  --shadow-card: 0 24px 54px rgba(61, 42, 21, 0.08);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --content-width: 1320px;
  --display-font: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --ui-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono-font: "Cascadia Code", "Cascadia Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.04;
  --lh-title: 1.18;
  --lh-body: 1.76;
  --fs-hero: clamp(3.15rem, 5.2vw, 5.45rem);
  --fs-section: clamp(1.95rem, 2.55vw, 2.75rem);
  --fs-subsection: clamp(1.38rem, 1.65vw, 1.78rem);
  --fs-card-title: clamp(1.2rem, 1.35vw, 1.52rem);
  --fs-body-lg: 1.12rem;
  --fs-body: 1.03rem;
  --fs-meta: 0.9rem;
  --fs-label: 0.79rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--ui-font);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(237, 230, 218, 0.96)),
    repeating-linear-gradient(180deg, rgba(107, 92, 70, 0.05) 0, rgba(107, 92, 70, 0.05) 1px, transparent 1px, transparent 42px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - min(660px, 49vw) - 1.1rem), rgba(47, 38, 28, 0.09) calc(50% - min(660px, 49vw) - 1.1rem), rgba(47, 38, 28, 0.09) calc(50% - min(660px, 49vw) - 1rem), transparent calc(50% - min(660px, 49vw) - 1rem)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 12rem);
  opacity: 0.8;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.ambient {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(10px);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.5rem;
  height: 0.55rem;
  background:
    linear-gradient(90deg, var(--accent), var(--accent) 62%, var(--accent-soft) 62%, var(--accent-soft));
}

.brand-text {
  font-family: var(--ui-font);
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-text[data-lang="zh"] {
  letter-spacing: 0.14em;
  text-transform: none;
  font-size: 0.88rem;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav-link {
  flex: 0 0 auto;
  padding: 0.42rem 0.65rem;
  color: var(--text-muted);
  font-family: var(--ui-font);
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.topnav-link:hover,
.topnav-link:focus-visible {
  color: var(--ink);
  background: rgba(142, 62, 46, 0.08);
}

.topnav-link.is-active {
  color: var(--ink);
  background: rgba(142, 62, 46, 0.12);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 4.8rem;
  min-height: 3.2rem;
  padding: 0.72rem 0.92rem 0.68rem 0.88rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.nav-toggle-box {
  display: grid;
  gap: 0.24rem;
}

.nav-toggle-box span {
  display: block;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-toggle.is-open .nav-toggle-box span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-box span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.lang-toggle {
  min-width: 3.2rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(47, 38, 28, 0.06);
}

main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.section {
  padding-top: 50px;
  
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(22rem, 0.82fr);
  gap: 3rem;
  align-items: stretch;
  padding-top: 2.75rem;
}

.hero-copy,
.hero-side {
  display: grid;
  gap: 1.75rem;
}

.hero-copy {
  align-content: start;
}

.hero-side {
  height: auto;
  align-self: start;
  align-content: start;
}

.hero-identity-block,
.hero-thesis-block,
.hero-support-block {
  display: grid;
}

.hero-identity-block {
  gap: 1rem;
}

.hero-thesis-block {
  gap: 1.5rem;
}

.hero-support-block {
  gap: 0.85rem;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.05rem;
  border-top: 2px solid var(--line-strong);
}

.hero-meta-strip.is-compact {
  justify-content: flex-start;
}

.hero-edition,
.section-index,
.project-role {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-family: var(--ui-font);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.1rem;
  height: 1px;
  background: currentColor;
}

.identity-row,
.hero-actions,
.meta-row,
.proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.identity-row {
  gap: 1.2rem;
}

.identity-row span {
  padding-bottom: 0.28rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--ui-font);
  font-size: 0.98rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
}

.hero-title,
.section-title {
  margin: 0;
  font-family: var(--display-font);
}

.hero-title {
  max-width: 16ch;
  font-size: 76px;
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: -0.06em;
}

.hero-title-zh {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.6rem, 4.3vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.08em;
}

.hero-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  max-width: 43rem;
}

.hero-summary,
.section-copy,
.project-summary,
.story-card p,
.stat-card p,
.process-card p,
.evidence-copy p,
.proof-card p,
.award-card-body p,
.contact-card p,
.feature-panel p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

.hero-summary {
  margin: 0;
  max-width: 41rem;
  font-size: var(--fs-body-lg);
}

.hero-note {
  max-width: 30rem;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 2px solid var(--accent);
  background: transparent;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.68; 
}

.hero-actions {
  gap: 0.9rem;
  padding-top: 0px;
  padding-bottom: 15px;
}

.hero-tags,
.tag-pill,
.meta-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tags {
  gap: 1rem 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(107, 46, 34, 0.22);
}

.page-home .hero-tags {
  gap: 0.65rem 0.55rem;
  align-items: flex-start;
  padding-top: 0;
  border-top: 0;
}

.hero-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--accent-strong);
  font-family: var(--ui-font);
  font-size: 0.92rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-tag::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: rgba(107, 46, 34, 0.4);
  transform: translateY(1px);
}

.summary-rail {
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.15rem;
  border-top: 0;
}

.tag-pill,
.meta-pill {
  align-items: center;
  padding: 0.18rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag-pill{
  font-size: 14px;
}

.page-home .hero-tags .tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.36rem 0.72rem;
  border: 1px solid rgba(107, 46, 34, 0.28);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.9);
  color: var(--accent-strong);
  font-family: var(--ui-font);
  font-size: 0.76rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(107, 46, 34, 0.28);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--ui-font);
  font-size: 0.86rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button::after,
.secondary-button::after {
  content: "->";
  font-family: var(--mono-font);
  font-size: 0.8em;
}

.primary-button {
  background: var(--ink);
  color: var(--paper-strong);
}

.secondary-button {
  background: var(--paper-strong);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.showcase-card,
.intro-card,
.project-shell,
.feature-panel,
.story-card,
.stat-card,
.process-card,
.evidence-item,
.proof-card,
.award-group,
.award-card,
.contact-shell,
.contact-card,
.metric-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 248, 241, 0.96), rgba(244, 239, 230, 0.96));
  box-shadow: var(--shadow-soft);
}

.showcase-card,
.intro-card,
.project-shell,
.award-group,
.contact-shell {
  border-radius: var(--radius-xl);
}

.hero-feature {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(250, 246, 238, 0.62);
  box-shadow: none;
}

.hero-profile-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  width: min(100%, 28rem);
  height: auto;
  min-height: 0;
  border: 1px solid rgba(47, 38, 28, 0.22);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.9), rgba(244, 239, 230, 0.82));
  box-shadow: var(--shadow-soft);
  justify-self: end;
}

.hero-directory-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(100%, 33rem);
  padding: 1.1rem;
  border: 1px solid rgba(47, 38, 28, 0.22);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.94), rgba(244, 239, 230, 0.9));
  box-shadow: var(--shadow-soft);
  justify-self: end;
}

.hero-directory-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.hero-directory-head {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.hero-directory-head h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  font-weight: var(--fw-semibold);
  line-height: 1.12;
}

.hero-directory-list {
  display: grid;
  gap: 0.85rem;
}

.hero-directory-item {
  display: grid;
  grid-template-columns: 8.2rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.82);
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-directory-item:hover,
.hero-directory-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 38, 28, 0.36);
}

.hero-directory-media {
  overflow: hidden;
  border: 1px solid rgba(47, 38, 28, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(231, 222, 206, 0.86));
}

.hero-directory-thumb {
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  object-fit: cover;
}

.hero-directory-copy {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.hero-directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.hero-directory-copy h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.18rem, 1.4vw, 1.44rem);
  font-weight: var(--fw-semibold);
  line-height: 1.22;
}

.hero-directory-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.hero-directory-copy .chapter-link {
  justify-self: start;
  padding-left: 0;
}

.hero-profile-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.hero-profile-head {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem 0.82rem;
  border-bottom: 1px solid var(--line);
}

.hero-profile-head h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.24rem, 1.38vw, 1.46rem);
  font-weight: var(--fw-semibold);
  line-height: 1.18;
}

.hero-profile-photo {
  display: grid;
  align-items: end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  max-height: 13rem;
  padding: 0.55rem 0.65rem 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(82, 96, 77, 0.08));
}

.hero-profile-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-profile-body {
  display: grid;
  gap: 0.72rem;
  padding: 0.82rem 1rem 0.84rem;
}

.hero-profile-identity {
  display: grid;
  gap: 0.28rem;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid var(--line);
}

.hero-profile-identity h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.46rem, 1.55vw, 1.74rem);
  font-weight: var(--fw-semibold);
  line-height: 1.02;
}

.hero-profile-identity p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.46;
}

.hero-profile-list {
  display: grid;
  gap: 0.56rem;
  margin: 0;
}

.hero-profile-academics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-profile-academic {
  display: grid;
  gap: 0.24rem;
  padding: 0.75rem 0.8rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.hero-profile-academic-label {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-profile-academic strong {
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: var(--fw-semibold);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-profile-row {
  display: grid;
  grid-template-columns: minmax(4.8rem, 5.8rem) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding-top: 0.56rem;
  border-top: 1px solid var(--line);
}

.hero-profile-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-profile-row dt {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.74rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-profile-row dd {
  margin: 0;
  line-height: 1.48;
  min-width: 0;
  word-break: break-word;
}

.home-mobile-cover,
.home-mobile-projects,
.home-mobile-profile {
  display: none;
}

.home-mobile-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.55rem;
  align-items: flex-start;
}

.home-mobile-cover-actions {
  display: grid;
  gap: 0.7rem;
}

.home-mobile-cover-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-mobile-cover-fact,
.home-mobile-project-card,
.home-mobile-profile-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 248, 241, 0.96), rgba(244, 239, 230, 0.96));
  box-shadow: var(--shadow-soft);
}

.home-mobile-cover-fact {
  display: grid;
  gap: 0.28rem;
  padding: 0.82rem 0.9rem;
}

.home-mobile-cover-fact span {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.74rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-mobile-cover-fact strong {
  font-family: var(--display-font);
  font-size: 1.38rem;
  font-weight: var(--fw-semibold);
  line-height: 1.05;
}

.home-mobile-project-media {
  overflow: hidden;
  border: 1px solid rgba(47, 38, 28, 0.14);
  background: #efe6d8;
}

.home-mobile-project-media {
  aspect-ratio: 16 / 10;
}

.home-mobile-project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-mobile-project-copy,
.home-mobile-section-head,
.home-mobile-profile-copy,
.home-mobile-profile-identity {
  display: grid;
}

.home-mobile-project-copy,
.home-mobile-profile-copy {
  gap: 0.42rem;
}

.home-mobile-section-head h2,
.home-mobile-project-copy h3,
.home-mobile-profile-identity h3 {
  margin: 0;
  font-family: var(--display-font);
}

.home-mobile-section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: var(--fw-semibold);
  line-height: 1.12;
}

.home-mobile-project-copy h3 {
  font-size: 1.28rem;
  font-weight: var(--fw-semibold);
  line-height: 1.16;
}

.home-mobile-section-head p,
.home-mobile-project-copy p,
.home-mobile-profile-identity p,
.home-mobile-profile-row strong {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.64;
}

.home-mobile-project-link {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-mobile-project-link::after {
  content: " ->";
}

.home-mobile-project-stack {
  display: grid;
  gap: 0.85rem;
}

.home-mobile-project-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.home-mobile-project-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.home-mobile-profile-card {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem;
  align-items: start;
}

.home-mobile-profile-photo {
  overflow: hidden;
  border: 1px solid rgba(47, 38, 28, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(82, 96, 77, 0.08));
}

.home-mobile-profile-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.home-mobile-profile-identity {
  gap: 0.18rem;
}

.home-mobile-profile-identity h3 {
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  line-height: 1.08;
}

.home-mobile-profile-lines {
  display: grid;
  gap: 0.42rem;
}

.home-mobile-profile-row {
  display: grid;
  gap: 0.16rem;
}

.home-mobile-profile-row span {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-mobile-profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.home-mobile-profile-metrics div {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.home-mobile-profile-metrics span {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-mobile-profile-metrics strong {
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  line-height: 1.04;
}

.hero-feature-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(82, 96, 77, 0.06));
}

.hero-feature-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-copy {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem 1.35rem 1.35rem;
}

.hero-feature-label,
.chapter-kicker,
.chapter-link,
.case-prelude-index {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-feature-copy h3,
.chapter-main h3,
.case-prelude-copy h3 {
  margin: 0;
  font-family: var(--display-font);
}

.hero-feature-copy h3 {
  font-size: 1.34rem;
  font-weight: var(--fw-semibold);
  line-height: 1.22;
}

.hero-feature-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 31ch;
}

.project-shell::before,
.award-group::before,
.contact-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.showcase-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.showcase-card-primary {
  grid-column: 1 / -1;
}

.showcase-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(82, 96, 77, 0.08), rgba(179, 141, 88, 0.08));
}

.showcase-card-primary .showcase-media {
  aspect-ratio: 16 / 9;
}

.showcase-thumb,
.intro-thumb,
.feature-media,
.evidence-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-copy,
.intro-card-body,
.feature-panel,
.story-card,
.stat-card,
.process-card,
.proof-card,
.award-card-body,
.contact-card,
.metric-card {
  padding: 1.2rem;
}

.showcase-label,
.feature-caption,
.story-label,
.evidence-tag,
.stat-label,
.process-index,
.proof-award-type,
.metric-label {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.showcase-copy h3,
.intro-card-body h3,
.feature-panel h3,
.subsection-head h3,
.award-group-head h3,
.award-card-body h4,
.evidence-copy h3,
.process-card h3 {
  margin: 0;
  font-family: var(--display-font);
}

.showcase-copy h3,
.intro-card-body h3,
.evidence-copy h3 {
  margin-top: 0.45rem;
  font-size: var(--fs-card-title);
  font-weight: var(--fw-semibold);
  line-height: 1.28;
}

.showcase-copy p,
.intro-card-body p {
  margin: 0.65rem 0 0;
}

.metrics-grid,
.intro-grid,
.stats-grid,
.process-grid,
.proof-grid,
.award-grid,
.contact-grid,
.story-grid {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.45rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line-strong);
  margin-top: 15px;

}

.hero-metric {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  grid-template-areas:
    "index label"
    "index value"
    "index note";
  column-gap: 1.1rem;
  row-gap: 0.2rem;
  padding: 0.3rem 0 0.2rem;
  min-width: 0;
}

.hero-metric + .hero-metric {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.page-lead {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.75rem;
}

.page-lead-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-crumb-link {
  color: var(--accent);
}

.page-crumb-current {
  color: var(--ink);
}

.page-lead-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: end;
  padding-top: 1rem;
  border-top: 2px solid var(--line-strong);
}

.page-lead-compact {
  gap: 1.05rem;
  padding-top: 2.15rem;
}

.page-lead-body.is-compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.page-lead-copy {
  display: grid;
  gap: 0.8rem;
  max-width: 56rem;
}

.page-lead-compact .page-lead-copy {
  max-width: 38rem;
  gap: 0.65rem;
}

.page-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  font-weight: var(--fw-semibold);
  line-height: 1.04;
}

.page-lead-compact .page-title {
  max-width: 9.5ch;
}

.page-lead-text {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-body-lg);
  line-height: 1.8;
}

.page-lead-actions {
  justify-self: end;
}

.page-lead-compact .page-lead-actions {
  justify-self: start;
}

.page-lead-compact .page-lead-actions .secondary-button {
  min-width: 14rem;
}

.hero-metric-index {
  grid-area: index;
  align-self: start;
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
}

.metric-value {
  grid-area: value;
  margin-top: 0.38rem;
  font-family: var(--display-font);
  font-size: clamp(1.62rem, 1.75vw, 2.02rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  word-break: break-word;
}

.metric-label {
  grid-area: label;
}

.metric-note {
  grid-area: note;
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.66;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.85fr);
  gap: 2rem;
  align-items: end;
  padding-top: 1.3rem;
  border-top: 2px solid var(--line-strong);
}

.section-title {
  max-width: 12ch;
  font-size: var(--fs-section);
  line-height: var(--lh-title);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.04em;
}

.section-copy {
  margin: 0;
  max-width: 40rem;
}

.intro-grid,
.stats-grid,
.process-grid,
.proof-grid,
.award-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chapter-list {
  display: grid;
  margin-top: 1.9rem;
  border-top: 1px solid var(--line-strong);
}

.chapter-list-tight {
  margin-top: 0;
}

.chapter-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.9fr);
  gap: 1.65rem;
  align-items: start;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.chapter-index {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.84rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
}

.chapter-main {
  display: grid;
  gap: 0.45rem;
}

.chapter-main h3 {
  font-size: clamp(1.28rem, 1.65vw, 1.64rem);
  font-weight: var(--fw-semibold);
  line-height: 1.18;
}

.chapter-subtitle,
.chapter-abstract p,
.case-prelude-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.72;
}

.chapter-abstract {
  display: grid;
  gap: 0;
  max-width: 34rem;
}

.chapter-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chapter-keywords span {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.79rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-link {
  align-self: end;
  justify-self: end;
  padding-left: 0.5rem;
  color: var(--text-muted);
}

.chapter-link::after {
  content: " ->";
}

.case-prelude {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
  margin-top: 2.35rem;
  padding-top: 1.5rem;
  padding-bottom: 0.45rem;
  border-top: 2px solid var(--line-strong);
}

.case-prelude-copy {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
}

.case-prelude-actions {
  padding-top: 0.25rem;
}

.case-prelude-copy h3 {
  font-size: clamp(1.34rem, 1.72vw, 1.68rem);
  font-weight: var(--fw-semibold);
  line-height: 1.26;
}

.support-overview {
  padding-bottom: 1rem;
}

.support-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.85rem;
}

.support-card {
  display: grid;
  gap: 1rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.82);
  box-shadow: var(--shadow-soft);
}

.support-card-head {
  display: grid;
  gap: 0.4rem;
}

.support-card-head h3 {
  margin: 0;
  font-size: clamp(1.28rem, 1.55vw, 1.62rem);
  line-height: 1.18;
}

.support-card > p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.78;
}

.support-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink);
}

.support-list li {
  line-height: 1.6;
}

.support-meta {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.support-meta-row {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.support-meta-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.support-meta dt {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-meta dd {
  margin: 0;
  line-height: 1.7;
}

.support-link {
  align-self: end;
  color: var(--accent);
  font-weight: var(--fw-semibold);
}

.support-link::after {
  content: " ->";
}

.project-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: end;
  margin-bottom: 1.1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line-strong);
}

.project-head-main {
  display: grid;
  gap: 0.35rem;
}

.section-index {
  padding-top: 0.2rem;
  color: var(--accent);
}

.meta-row {
  justify-content: end;
  align-self: start;
  max-width: 22rem;
}

.project-shell {
  padding: 1.45rem;
}

.project-shell-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.project-shell-head .meta-row {
  justify-content: start;
}

.project-section-lead .project-head {
  margin-top: 0.2rem;
}

.project-section-lead .project-shell::before {
  height: 7px;
}

.project-section-standalone {
  padding-top: 0.9rem;
}

.project-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(21rem, 0.98fr);
  gap: 1rem;
  align-items: start;
}

.project-narrative {
  display: grid;
  gap: 0.95rem;
}

.project-role {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.project-role-block {
  display: grid;
  gap: 0.55rem;
}

.project-promise {
  margin: 0;
  max-width: 24ch;
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2vw, 1.96rem);
  font-weight: var(--fw-semibold);
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.project-summary {
  margin: 0;
  max-width: 62ch;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.stat-card,
.process-card,
.proof-card,
.contact-card {
  border-radius: var(--radius-md);
}

.story-card {
  border-top: 3px solid rgba(142, 62, 46, 0.36);
}

.story-card p,
.stat-card p,
.proof-card p,
.contact-card p,
.feature-panel p {
  margin: 0.6rem 0 0;
}

.feature-panel {
  display: grid;
  gap: 1rem;
  border-radius: var(--radius-lg);
}

.feature-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.feature-panel h3,
.subsection-head h3,
.award-group-head h3 {
  font-size: var(--fs-subsection);
  font-weight: var(--fw-semibold);
  line-height: 1.22;
}

.brand-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 4.35rem;
  height: 4.35rem;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.brand-badge img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

.feature-visual {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(47, 38, 28, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(231, 222, 206, 0.86));
}

.feature-media,
.evidence-visual {
  object-position: center;
}

video.feature-media,
video.evidence-visual {
  background: #121212;
  object-fit: cover;
}

.stats-grid {
  margin-top: 1rem;
}

.stat-value {
  font-family: var(--display-font);
  font-size: 1.38rem;
  font-weight: var(--fw-semibold);
  line-height: 1.24;
}

.subsection {
  margin-top: 1.7rem;
}

.subsection-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.subsection-head p {
  margin: 0;
  max-width: 52rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
  display: grid;
  gap: 0.58rem;
  align-content: start;
}

.process-index {
  color: var(--accent-alt);
}

.process-card h3 {
  font-size: 1.18rem;
  font-weight: var(--fw-semibold);
  line-height: 1.36;
}

.evidence-stack {
  display: grid;
  gap: 1rem;
}

.evidence-item {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: var(--radius-xl);
}

.evidence-item-reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
}

.evidence-item-reverse .evidence-media {
  order: 2;
}

.evidence-item-reverse .evidence-copy {
  order: 1;
}

.evidence-media {
  overflow: hidden;
  border: 1px solid rgba(47, 38, 28, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(231, 222, 206, 0.9));
}

.evidence-visual {
  min-height: 18rem;
  object-fit: contain;
  background: transparent;
}

.media-contrast {
  background: linear-gradient(180deg, #4c628a, #667ea7);
  padding: 0.85rem;
}

.evidence-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.2rem 0.3rem 0.2rem 0;
}

.proof-card {
  display: grid;
  gap: 0.75rem;
}

.proof-image-shell,
.award-image-shell {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eadfce;
}

.proof-image-shell {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
}

.proof-image-shell.award-orientation-landscape {
  aspect-ratio: 16 / 10;
  padding: 0.65rem;
}

.proof-image-shell.award-orientation-portrait {
  aspect-ratio: 4 / 5;
  padding: 0.85rem;
}

.proof-image-shell.award-orientation-rotated {
  aspect-ratio: 4 / 5;
  padding: 0.6rem;
}

@media (min-width: 921px) {
  .project-data-guardian .proof-image-shell.award-orientation-landscape,
  .project-data-guardian .proof-image-shell.award-orientation-portrait,
  .project-maxkb .proof-image-shell.award-orientation-landscape,
  .project-maxkb .proof-image-shell.award-orientation-portrait,
  .project-maxkb .proof-image-shell.award-orientation-rotated,
  .project-data-guardian .proof-image-shell.award-orientation-rotated {
    aspect-ratio: 16 / 10;
    padding: 0;
  }
}

.proof-image-shell img,
.award-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.proof-card strong,
.contact-card strong {
  display: block;
  font-size: 1.12rem;
  font-weight: var(--fw-semibold);
  line-height: 1.42;
}

.award-groups {
  display: grid;
  gap: 1rem;
}

.section-awards {
  padding-top: 1.8rem;
}

.award-archive {
  padding: 1.05rem 1.2rem 1.2rem;
}

.award-archive-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  align-items: end;
}

.award-archive-intro {
  display: grid;
  gap: 0.55rem;
  max-width: 44rem;
}

.award-archive-label,
.award-card-subtitle {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.76rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.award-archive-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
}

.award-archive-label strong {
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.award-archive-intro p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.award-archive-ledger {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

.award-group {
  padding: 1.35rem;
}

.award-group-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.85fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.award-group-head p {
  margin: 0;
}

.award-card {
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.9rem;
  border-radius: var(--radius-lg);
}

.award-card-archive {
  align-content: start;
  background: rgba(251, 248, 241, 0.88);
}

.award-card-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.award-image-shell {
  aspect-ratio: 4 / 5;
  padding: 0.9rem;
  background: #f4ede1;
}

.proof-image-shell.award-rotate-90,
.award-image-shell.award-rotate-90 {
  background: #f4ede1;
}

.proof-image-shell.award-rotate-90 img,
.award-image-shell.award-rotate-90 img {
  object-fit: contain;
  transform: rotate(90deg) scale(0.82);
  transform-origin: center;
}

.proof-image-shell.award-rotate-180 img,
.award-image-shell.award-rotate-180 img {
  object-fit: contain;
  transform: rotate(180deg) scale(0.92);
  transform-origin: center;
}

.proof-image-shell.award-rotate-270 img,
.award-image-shell.award-rotate-270 img {
  object-fit: contain;
  transform: rotate(270deg) scale(1.2);
  transform-origin: center;
}

.proof-image-shell.award-rotate-270-gentle img,
.award-image-shell.award-rotate-270-gentle img {
  object-fit: contain;
  transform: rotate(270deg) scale(0.92);
  transform-origin: center;
}

.award-card-body h4 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: var(--fw-semibold);
  line-height: 1.36;
}

.award-card-body {
  display: grid;
  gap: 0.55rem;
}

.award-card-body p {
  margin: 0;
}

.award-text-honors {
  margin-top: 1.15rem;
}

.text-honor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.text-honor-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.82);
  box-shadow: var(--shadow-soft);
}

.text-honor-ledger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.text-honor-body {
  display: grid;
  gap: 0.55rem;
}

.text-honor-body h4 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.16rem, 1.5vw, 1.34rem);
  font-weight: var(--fw-semibold);
  line-height: 1.28;
}

.text-honor-meta {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-shell {
  padding: 1.35rem;
}

.contact-shell > .section-copy {
  max-width: 48rem;
  margin-bottom: 1rem;
}

.profile-dossier {
  display: grid;
  gap: 1.45rem;
}

.profile-dossier-head {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.profile-dossier-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(82, 96, 77, 0.08));
}

.profile-dossier-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.profile-dossier-intro {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.profile-dossier-intro h3,
.profile-dossier-card-head h3 {
  margin: 0;
  font-family: var(--display-font);
}

.profile-dossier-intro h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--fw-semibold);
  line-height: 1.02;
}

.profile-dossier-role {
  margin: 0;
  max-width: 34rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.68;
}

.profile-dossier-note,
.profile-dossier-footnote {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.74;
}

.profile-dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.35rem;
}

.profile-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.98fr);
  gap: 1rem;
}

.profile-dossier-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(250, 246, 238, 0.7);
}

.profile-dossier-card-head {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.profile-dossier-card-head h3 {
  font-size: 1.28rem;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.profile-dossier-list {
  display: grid;
  gap: 0.82rem;
  margin: 0;
}

.profile-dossier-row {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: 0.9rem;
  padding-top: 0.82rem;
  border-top: 1px solid var(--line);
}

.profile-dossier-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-dossier-row dt {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-dossier-row dd {
  margin: 0;
  line-height: 1.7;
}

.profile-dossier-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.profile-dossier-metric {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.profile-dossier-metric span {
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-dossier-metric strong {
  font-family: var(--display-font);
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: var(--fw-semibold);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .hero,
  .page-lead-body,
  .section-heading,
  .project-head,
  .project-spotlight,
  .award-archive-head,
  .award-group-head,
  .case-prelude {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

  .hero-side {
    align-self: auto;
    height: auto;
  }

  .hero-profile-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto auto;
  }

  .profile-dossier-head,
  .profile-dossier-grid {
    grid-template-columns: 1fr;
  }

  .hero-deck,
  .contact-grid,
  .support-card-grid,
  .evidence-item,
  .evidence-item-reverse,
  .award-group-head {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .stats-grid,
  .process-grid,
  .proof-grid,
  .award-grid,
  .text-honor-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metric:last-child {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .project-head {
    gap: 0.6rem;
  }

  .chapter-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .chapter-link {
    justify-self: start;
    padding-left: 0;
  }

  .award-archive-ledger {
    justify-items: start;
  }

  .meta-row {
    justify-content: start;
    max-width: none;
  }

  .evidence-item-reverse .evidence-media,
  .evidence-item-reverse .evidence-copy {
    order: initial;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    width: min(calc(100% - 1rem), var(--content-width));
    padding: 0.8rem 0;
    align-items: center;
  }

  .topnav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding: 0.95rem 0 0.25rem;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(251, 248, 241, 0.9), rgba(244, 239, 230, 0.75));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    overflow: visible;
  }

  .topnav.is-open {
    display: flex;
  }

  main {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .section {
    padding-top: 3.9rem;
  }

  .hero-title {
    max-width: 8.8ch;
  }

  .hero-title-zh {
    font-size: clamp(2rem, 7vw, 3.4rem);
  }

  .topnav-link {
    width: 100%;
    padding: 0.92rem 0.95rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .topbar-actions {
    gap: 0.55rem;
    align-items: center;
  }

  .primary-button,
  .secondary-button {
    min-height: 2.75rem;
    gap: 0.55rem;
    padding: 0.78rem 0.94rem 0.74rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .page-lead-actions .secondary-button,
  .page-lead-compact .page-lead-actions .secondary-button {
    min-height: 2.75rem;
    padding: 0.78rem 0.94rem 0.74rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .nav-toggle {
    display: inline-flex;
    min-width: 4.95rem;
    min-height: 2.75rem;
    gap: 0.48rem;
    padding: 0.62rem 0.84rem 0.58rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .lang-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.62rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .page-lead-actions .secondary-button,
  .page-lead-compact .page-lead-actions .secondary-button {
    min-width: 0;
    width: auto;
    max-width: 100%;
  }

  .brand-text {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }

  .brand-text[data-lang="zh"] {
    font-size: 0.82rem;
  }

  .story-card,
  .stat-card,
  .process-card,
  .proof-card {
    padding: 1rem;
  }

  .feature-panel {
    gap: 0.9rem;
  }

  .brand-badge {
    width: 3.6rem;
    height: 3.6rem;
  }

  .feature-visual {
    aspect-ratio: 16 / 11;
  }

  .evidence-item {
    padding: 0.9rem;
  }

  .evidence-visual {
    min-height: 14rem;
  }
}

@media (max-width: 820px) {
  .page-home .topbar {
    border-bottom: 0;
    background: rgba(246, 241, 232, 0.84);
    backdrop-filter: blur(8px);
  }

  .page-home .nav-toggle {
    min-width: 4.95rem;
    min-height: 2.75rem;
    justify-content: space-between;
    gap: 0.46rem;
    padding: 0.62rem 0.8rem 0.58rem;
  }

  .page-home .nav-toggle-label {
    display: inline-flex;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }

  .page-home .lang-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.62rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .page-home .hero {
    gap: 1.05rem;
    padding-top: 1.35rem;
  }

  .page-home .hero-meta-strip {
    border-top: 0;
    padding-top: 0;
  }

  .page-home .identity-row {
    gap: 0.45rem;
  }

  .page-home .identity-row span:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .page-home .hero-title-zh {
    font-size: clamp(1.62rem, 6.9vw, 2.4rem);
    line-height: 1;
    white-space: nowrap;
    max-width: none;
  }

  .page-home .hero-summary {
    max-width: 28rem;
    font-size: 1rem;
    line-height: 1.72;
  }

  .page-home .hero-support-desktop,
  .page-home .hero-side-desktop,
  .page-home .section-heading,
  .page-home .chapter-list {
    display: none;
  }

  .page-home .home-mobile-cover,
  .page-home .home-mobile-projects,
  .page-home .home-mobile-profile {
    display: grid;
  }

  .page-home .home-mobile-cover {
    gap: 0.9rem;
    margin-top: 0.15rem;
  }

  .page-home .home-mobile-cover-tags {
    gap: 0.5rem 0.45rem;
  }

  .page-home .home-mobile-cover .tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.36rem 0.72rem;
    border: 1px solid rgba(107, 46, 34, 0.28);
    border-radius: 999px;
    background: rgba(251, 248, 241, 0.9);
    color: var(--accent-strong);
    font-family: var(--ui-font);
    font-size: 0.76rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    border-bottom-color: rgba(107, 46, 34, 0.28);
  }

  .page-home #intro.section {
    padding-top: 2.2rem;
  }

  .page-home .home-mobile-projects,
  .page-home .home-mobile-profile {
    gap: 0.85rem;
  }

  .page-home .home-mobile-section-head {
    gap: 0.35rem;
  }
}

@media (max-width: 720px) {
  :root {
    --fs-hero: clamp(2.45rem, 9vw, 3.5rem);
    --fs-section: clamp(1.72rem, 6vw, 2.18rem);
    --fs-subsection: clamp(1.24rem, 4.8vw, 1.52rem);
    --fs-card-title: clamp(1.1rem, 4vw, 1.28rem);
    --fs-body-lg: 1.04rem;
    --fs-body: 0.98rem;
    --fs-label: 0.76rem;
  }

  body::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 9rem);
  }

  .hero-meta-strip {
    display: grid;
    gap: 0.6rem;
  }

  .hero,
  .hero-copy,
  .hero-side {
    gap: 1.1rem;
  }

  .section-awards {
    padding-top: 1.3rem;
  }

  .text-honor-grid {
    grid-template-columns: 1fr;
  }

  .hero-profile-photo {
    aspect-ratio: 4 / 5;
  }

  .hero-title,
  .section-title {
    max-width: none;
  }

  .hero-title-zh {
    font-size: clamp(1.7rem, 7vw, 2.8rem);
    line-height: 0.94;
  }

  .identity-row {
    gap: 0.55rem;
  }

  .hero-deck {
    gap: 0.8rem;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: space-between;
  }

  .page-lead-actions .secondary-button,
  .page-lead-compact .page-lead-actions .secondary-button {
    width: auto;
    justify-content: space-between;
  }

  .showcase-copy,
  .intro-card-body,
  .feature-panel,
  .story-card,
  .stat-card,
  .process-card,
  .proof-card,
  .award-card-body,
  .contact-card,
  .support-card,
  .metric-card,
  .profile-dossier-card,
  .project-shell,
  .award-group,
  .contact-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-profile-body {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-profile-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: 100%;
  }

  .hero-profile-head {
    padding: 0.78rem 0.9rem 0.72rem;
  }

  .hero-profile-photo {
    aspect-ratio: 4 / 3;
    max-height: 9.25rem;
    min-height: 0;
    padding: 0.4rem 0.55rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-profile-body {
    gap: 0.55rem;
    padding: 0.78rem 0.85rem 0.85rem;
  }

  .hero-profile-identity {
    gap: 0.18rem;
    padding-bottom: 0.55rem;
  }

  .hero-profile-identity h3 {
    font-size: 1.12rem;
  }

  .hero-profile-identity p {
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .hero-profile-list {
    gap: 0.42rem;
  }

  .hero-profile-academics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hero-profile-academic {
    padding: 0.55rem 0.6rem;
  }

  .hero-profile-academic strong {
    font-size: 0.98rem;
  }

  .hero-profile-row,
  .profile-dossier-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .profile-dossier-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-dossier-head {
    gap: 1rem;
  }

  .chapter-row {
    padding: 1.15rem 0;
  }

  .case-prelude {
    margin-top: 1.75rem;
    padding-top: 1.2rem;
  }

  .page-lead,
  .page-lead-body {
    gap: 1rem;
  }

  .page-lead-actions {
    justify-self: start;
  }

  .chapter-keywords {
    gap: 0.55rem;
  }

  .showcase-card,
  .intro-card,
  .project-shell,
  .award-group,
  .contact-shell,
  .support-card,
  .evidence-item {
    border-radius: 18px;
  }

  .feature-panel,
  .story-card,
  .stat-card,
  .process-card,
  .proof-card,
  .contact-card {
    border-radius: 10px;
  }

  .evidence-visual,
  .feature-media {
    min-height: auto;
  }

  .hero-actions {
    display: grid;
    gap: 0.65rem;
  }

  .hero-tags {
    gap: 0.62rem 0.8rem;
    padding-top: 0.7rem;
  }

  .hero-tag {
    font-size: 0.82rem;
    white-space: normal;
  }

  .hero-tag::before {
    width: 0.85rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
  }

  .hero-metric {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    column-gap: 0.75rem;
    row-gap: 0.12rem;
  }

  .hero-metric + .hero-metric {
    border-left: 0;
    padding-left: 0;
  }

  .hero-metric:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    padding-top: 0.8rem;
    padding-bottom: 0;
  }

  .hero-metric .metric-note {
    display: none;
  }

  .hero-metric .metric-value {
    margin-top: 0.22rem;
    font-size: clamp(1.18rem, 5vw, 1.52rem);
    line-height: 1.04;
  }

  .hero-metric:last-child .metric-value {
    font-size: clamp(1rem, 4vw, 1.16rem);
  }

  .chapter-list {
    margin-top: 1.3rem;
  }

  .project-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .story-grid,
  .stats-grid,
  .process-grid,
  .proof-grid,
  .award-grid,
  .text-honor-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .stat-card,
  .process-card,
  .proof-card,
  .award-card,
  .text-honor-card {
    gap: 0.55rem;
  }

  .feature-panel {
    gap: 0.75rem;
  }

  .feature-panel-head {
    gap: 0.75rem;
  }

  .brand-badge {
    width: 3rem;
    height: 3rem;
  }

  .feature-panel p,
  .story-card p,
  .stat-card p,
  .process-card p,
  .evidence-copy p,
  .proof-card p {
    line-height: 1.62;
  }

  .subsection {
    margin-top: 1.35rem;
  }

  .subsection-head {
    margin-bottom: 0.8rem;
  }

  .evidence-item {
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .evidence-visual {
    min-height: 12rem;
  }

  .evidence-copy {
    padding-right: 0;
  }

  .proof-image-shell,
  .award-image-shell {
    padding: 0.55rem;
  }

  .proof-image-shell.award-orientation-portrait {
    padding: 0.7rem;
  }

  .proof-image-shell.award-orientation-rotated {
    padding: 0.45rem;
  }

  .award-card {
    padding: 0.75rem;
  }

  .award-card-body,
  .text-honor-card {
    gap: 0.45rem;
  }

  .page-home .hero {
    padding-top: 1rem;
  }

  .page-home .hero-copy {
    gap: 0.95rem;
  }

  .page-home .topbar {
    padding: 0.5rem 0 0.16rem;
  }

  .page-home .brand-mark {
    width: 2rem;
    height: 0.42rem;
  }

  .page-home .brand-text {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .page-home .brand-text[data-lang="zh"] {
    font-size: 0.74rem;
  }

  .page-home .hero-meta-strip {
    gap: 0.4rem;
  }

  .page-home .eyebrow {
    gap: 0.45rem;
    letter-spacing: 0.16em;
  }

  .page-home .eyebrow::before {
    width: 1.45rem;
  }

  .page-home .identity-row span {
    font-size: 0.84rem;
  }

  .page-home .home-mobile-cover {
    gap: 0.78rem;
  }

  .page-home .home-mobile-cover-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
  }

  .page-home .home-mobile-cover-actions .primary-button,
  .page-home .home-mobile-cover-actions .secondary-button {
    width: auto;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.72rem 0.68rem 0.68rem;
    gap: 0.42rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: none;
  }

  .page-home .home-mobile-cover-facts {
    gap: 0.6rem;
  }

  .page-home .home-mobile-cover-fact {
    padding: 0.7rem 0.78rem;
  }

  .page-home .nav-toggle {
    min-width: 4.7rem;
    min-height: 2.7rem;
    padding: 0.58rem 0.74rem 0.54rem;
  }

  .page-home .nav-toggle-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .page-home .lang-toggle {
    min-width: 2.7rem;
    min-height: 2.7rem;
    padding: 0.54rem;
  }

  .page-home .home-mobile-section-head h2 {
    font-size: 1.5rem;
  }

  .page-home .home-mobile-project-copy p,
  .page-home .home-mobile-profile-identity p,
  .page-home .home-mobile-profile-row strong {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .page-home .home-mobile-project-stack {
    gap: 0.72rem;
  }

  .page-home .home-mobile-project-card {
    gap: 0.68rem;
    padding: 0.78rem;
  }

  .page-home .home-mobile-project-copy h3 {
    font-size: 1.18rem;
  }

  .page-home .home-mobile-profile-card {
    grid-template-columns: 4.8rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.78rem;
  }

  .page-home .home-mobile-profile-metrics {
    gap: 0.5rem;
  }

  .page-home .home-mobile-profile-metrics div {
    padding: 0.5rem 0.55rem;
  }
}
