:root {
  color-scheme: light;
  --bg: #f3f4ef;
  --surface: #fffdf8;
  --ink: #11120f;
  --text: #292b26;
  --muted: #686b61;
  --line: #d9d3c6;
  --accent: #bd302b;
  --accent-2: #12606d;
  --accent-3: #5f6f3d;
  --soft: #e9e5da;
  --paper: #f8f6ee;
  --shadow: 0 30px 80px rgba(17, 18, 15, 0.16);
  --shadow-soft: 0 18px 48px rgba(17, 18, 15, 0.1);
  --radius: 6px;
  --max: 1440px;
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 18, 15, 0.035) 1px, transparent 1px) 0 0 / 112px 112px,
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(243, 244, 239, 0.94) 42%, #eff0ec 100%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-modal {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: rgba(189, 48, 43, 0.18);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(243, 244, 239, 0.82);
  border-bottom: 1px solid rgba(17, 18, 15, 0.09);
  backdrop-filter: blur(20px) saturate(1.08);
  box-shadow: 0 12px 34px rgba(17, 18, 15, 0.045);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions,
.detail-meta,
.detail-tags,
.tool-cloud,
.skill-cloud {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.08);
}

.brand-text {
  color: var(--ink);
}

.site-nav {
  gap: clamp(18px, 3vw, 38px);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-apple);
}

.site-nav a:hover,
.site-footer a:hover,
.back-link:hover {
  color: var(--accent);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(34px, 6vw, 88px);
  max-width: var(--max);
  min-height: calc(100svh - 124px);
  margin: 0 auto;
  padding: clamp(38px, 5.6vw, 72px) clamp(20px, 4vw, 64px) clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(28px, 4vw, 58px) clamp(20px, 4vw, 64px);
  border-left: 1px solid rgba(189, 48, 43, 0.28);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  align-self: center;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.work-card-meta,
.detail-meta,
.detail-tags,
.detail-figure figcaption,
.site-footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  opacity: 0.72;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  letter-spacing: 0;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: clamp(50px, 8.5vw, 122px);
  line-height: 0.9;
  font-weight: 900;
}

.hero-role {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(18px, 1.9vw, 30px);
  font-weight: 850;
  line-height: 1.35;
}

.hero-intro {
  max-width: 660px;
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 3px solid var(--accent);
  color: #33352e;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.8;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 253, 248, 0.72);
  color: #3b3935;
  font-size: 13px;
  font-weight: 750;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 18, 15, 0);
  transition:
    transform 180ms var(--ease-apple),
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 18, 15, 0.12);
}

.button:focus-visible,
.modal-close:focus-visible,
.detail-figure button:focus-visible {
  outline: 3px solid rgba(18, 96, 109, 0.28);
  outline-offset: 3px;
}

.button-dark {
  background: var(--ink);
  color: var(--surface);
}

.button-light {
  background: transparent;
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink);
  border-color: rgba(22, 22, 22, 0.22);
}

.button-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.arrow-fill-button {
  --arrow-button-bg: #454543;
  --arrow-button-fill: #e5e5e2;
  --arrow-button-text: #fff;
  --arrow-button-fill-text: #222321;
  --arrow-button-icon-size: 46px;
  --arrow-button-inset: 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 58px;
  overflow: hidden;
  padding: 0 74px 0 27px;
  border: 1px solid var(--arrow-button-bg);
  border-radius: 999px;
  background: var(--arrow-button-bg);
  color: var(--arrow-button-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  transition: color 220ms ease 90ms, border-color 220ms ease;
}

.arrow-fill-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: var(--arrow-button-inset);
  right: var(--arrow-button-inset);
  bottom: var(--arrow-button-inset);
  width: var(--arrow-button-icon-size);
  border-radius: 999px;
  background: var(--arrow-button-fill);
  transition:
    top 450ms cubic-bezier(.785, .135, .15, .86),
    right 450ms cubic-bezier(.785, .135, .15, .86),
    bottom 450ms cubic-bezier(.785, .135, .15, .86),
    width 450ms cubic-bezier(.785, .135, .15, .86);
}

.arrow-fill-button-label {
  position: relative;
  z-index: 1;
}

.arrow-fill-button-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: var(--arrow-button-inset);
  display: grid;
  width: var(--arrow-button-icon-size);
  height: var(--arrow-button-icon-size);
  place-items: center;
  overflow: hidden;
  color: var(--arrow-button-fill-text);
  transform: translateY(-50%);
}

.arrow-fill-button-arrow {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 450ms cubic-bezier(.785, .135, .15, .86), opacity 300ms ease;
}

.arrow-fill-button-arrow-enter {
  opacity: 0;
  transform: translateX(-30px) scale(.4);
}

.arrow-fill-button:is(:hover, :active)::before {
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.arrow-fill-button:is(:hover, :active) {
  color: var(--arrow-button-fill-text);
}

.arrow-fill-button:is(:hover, :active) .arrow-fill-button-arrow-enter {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.arrow-fill-button:is(:hover, :active) .arrow-fill-button-arrow-leave {
  opacity: 0;
  transform: translateX(30px) scale(.4);
}

.arrow-fill-button:focus-visible {
  outline: 3px solid rgb(69 69 67 / 28%);
  outline-offset: 4px;
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(48px, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  min-height: min(590px, calc(100svh - 220px));
  align-self: center;
  z-index: 1;
}

.hero-work {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(17, 18, 15, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform-origin: 50% 100%;
  animation: hero-rise 820ms var(--ease-apple) forwards;
  transition:
    transform 420ms var(--ease-apple),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.hero-work::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.hero-work img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 620ms var(--ease-apple), filter 420ms ease;
}

.hero-work:hover {
  border-color: rgba(189, 48, 43, 0.44);
  box-shadow: 0 34px 90px rgba(17, 18, 15, 0.2);
}

.hero-work:hover img {
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.045);
}

.hero-work span,
.hero-work strong {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  color: var(--surface);
}

.hero-work span {
  bottom: 52px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.78;
}

.hero-work strong {
  bottom: 20px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.1;
}

.hero-work-1 {
  grid-column: 1 / 5;
  grid-row: 1 / 6;
  animation-delay: 180ms;
}

.hero-work-2 {
  grid-column: 5 / 7;
  grid-row: 2 / 8;
  animation-delay: 300ms;
}

.hero-work-3 {
  grid-column: 2 / 5;
  grid-row: 6 / 9;
  animation-delay: 420ms;
}

.hero-copy > * {
  opacity: 0;
  animation: hero-rise 820ms var(--ease-apple) forwards;
}

.hero-copy > :nth-child(1) {
  animation-delay: 80ms;
}

.hero-copy > :nth-child(2) {
  animation-delay: 160ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 240ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 320ms;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 144px) clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 24px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.split-heading h2,
.resume-intro-panel h2,
.contact-section h2,
.detail-hero h1 {
  margin-bottom: 0;
  font-size: clamp(36px, 5.6vw, 78px);
  line-height: 0.98;
  font-weight: 900;
}

.split-heading p,
.resume-intro-panel p,
.contact-section h2 + p,
.detail-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.skill-cloud,
.detail-tags,
.tool-cloud {
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud {
  margin-bottom: 44px;
}

.skill-cloud span,
.detail-tags span,
.tool-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 253, 248, 0.72);
  color: #3b3935;
  font-size: 13px;
  font-weight: 750;
}

.reveal,
.reveal-block {
  opacity: 0;
  transform: translateY(28px) scale(0.992);
  transition:
    opacity 680ms var(--ease-apple),
    transform 680ms var(--ease-apple);
}

.reveal.is-visible,
.reveal-block.is-visible {
  opacity: 1;
  transform: none;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.capability-list li,
.resume-panel {
  background: var(--surface);
}

.capability-list li {
  min-height: 220px;
  padding: clamp(24px, 3vw, 38px);
  transition: background-color 220ms ease, transform 220ms var(--ease-apple);
}

.capability-list li:hover {
  background: #fbf8ed;
  transform: translateY(-2px);
}

.capability-list strong,
.resume-panel h3 {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-list span {
  color: var(--muted);
  line-height: 1.75;
}

.works-section {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(17, 18, 15, 0.96), rgba(17, 18, 15, 0.985)),
    var(--ink);
  color: rgba(255, 253, 248, 0.82);
}

.works-section .section-kicker,
.works-section .split-heading,
.works-grid,
.capability-grid {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.works-section .section-kicker,
.works-section .split-heading p {
  color: rgba(255, 253, 248, 0.68);
}

.works-section .split-heading h2 {
  color: var(--surface);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.work-card {
  grid-column: span 4;
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  transition:
    opacity 680ms var(--ease-apple),
    transform 260ms var(--ease-apple),
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.work-card:nth-child(1),
.work-card:nth-child(6) {
  grid-column: span 5;
}

.work-card:nth-child(2),
.work-card:nth-child(7) {
  grid-column: span 7;
}

.work-card a {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.work-card-media {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  border-radius: calc(var(--radius) - 2px);
}

.work-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.14)),
    linear-gradient(90deg, rgba(189, 48, 43, 0.16), transparent 38%, rgba(18, 96, 109, 0.14));
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.work-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 520ms var(--ease-apple), filter 420ms ease;
}

.work-card:hover {
  border-color: rgba(255, 253, 248, 0.38);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.work-card:hover img {
  filter: contrast(1.04) saturate(1.03);
  transform: scale(1.045);
}

.work-card:hover .work-card-media::after {
  opacity: 1;
}

.work-card-meta,
.detail-meta {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.work-card h3 {
  margin-bottom: 0;
  font-size: clamp(23px, 2.3vw, 34px);
  line-height: 1.08;
}

.work-card p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.work-card-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #4a4741;
  font-size: 12px;
  font-weight: 800;
  background: rgba(248, 248, 246, 0.76);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.capability-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: var(--radius);
  background: #181915;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  transition:
    opacity 680ms var(--ease-apple),
    transform 260ms var(--ease-apple),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.capability-card:hover {
  border-color: rgba(255, 253, 248, 0.34);
  box-shadow: 0 36px 92px rgba(0, 0, 0, 0.32);
  transform: translateY(-6px);
}

.capability-main-link {
  display: grid;
  min-height: inherit;
  grid-template-rows: minmax(240px, 1fr) auto;
}

.capability-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #24251f;
}

.capability-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.06), rgba(0, 0, 0, 0.2)),
    linear-gradient(90deg, rgba(189, 48, 43, 0.18), transparent 44%, rgba(18, 96, 109, 0.18));
  opacity: 0.58;
  mix-blend-mode: screen;
  pointer-events: none;
}

.capability-media img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 680ms var(--ease-apple), filter 680ms var(--ease-apple);
}

.capability-card:hover .capability-media img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.06);
}

.capability-content {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 38px);
}

.capability-content > span {
  color: rgba(255, 253, 248, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.capability-content h3 {
  margin: 0;
  color: var(--surface);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
}

.capability-content p {
  max-width: 38em;
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.75;
}

.capability-card .work-card-tags span {
  border-color: rgba(255, 253, 248, 0.18);
  color: rgba(255, 253, 248, 0.76);
  background: rgba(255, 253, 248, 0.035);
}

.supporting-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(22px, 3vw, 38px) clamp(22px, 3vw, 38px);
}

.supporting-links a {
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 13px;
  transition: color 220ms var(--ease-apple), border-color 220ms var(--ease-apple);
}

.supporting-links a:hover {
  border-color: rgba(255, 253, 248, 0.56);
  color: var(--surface);
}

.detail-related {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.detail-related-links {
  padding: 0;
}

.detail-related-links a {
  border-color: rgba(17, 18, 15, 0.12);
  color: var(--text);
  background: rgba(255, 253, 248, 0.72);
}

.detail-related-links a:hover {
  border-color: rgba(17, 18, 15, 0.32);
  color: var(--ink);
}

.resume-section {
  max-width: none;
  background: linear-gradient(180deg, #eef0eb, #e4e6df);
}

.resume-section > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.resume-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 2.4vw, 32px);
  align-items: stretch;
}

.resume-intro-panel,
.resume-panel,
.resume-feature-card {
  padding: clamp(24px, 3vw, 38px);
}

.resume-intro-panel {
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-soft);
}

.resume-intro-panel h2 {
  color: var(--surface);
  font-size: clamp(32px, 4.6vw, 62px);
}

.resume-intro-panel p {
  color: rgba(255, 255, 255, 0.72);
  margin: 24px 0 30px;
}

.resume-intro-panel .button {
  border-color: var(--surface);
}

.resume-identity {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.resume-identity span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.resume-identity strong {
  color: var(--surface);
  font-size: 18px;
}

.resume-contact-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.resume-contact-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.resume-contact-item span,
.resume-panel-head p {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.resume-contact-item strong {
  color: var(--surface);
  font-size: 16px;
}

.resume-detail-grid {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
}

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

.resume-panel-wide {
  padding-bottom: 18px;
}

.resume-panel-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.resume-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 38px);
}

.resume-entry-list {
  display: grid;
  gap: 18px;
}

.resume-entry {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.resume-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resume-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.resume-entry-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.resume-entry-head strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.resume-entry-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.resume-entry > p,
.resume-feature-card > p,
.resume-project-card p,
.resume-skill-card p,
.resume-closing p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.resume-bullets {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.resume-bullets li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.resume-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.resume-grid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.resume-project-grid,
.resume-skill-grid {
  display: grid;
  gap: 14px;
}

.resume-project-card,
.resume-skill-card {
  padding: 18px 20px;
  background: rgba(248, 246, 238, 0.74);
  border: 1px solid var(--line);
}

.resume-project-card span,
.resume-skill-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.tool-panel {
  background: #eceee8;
}

.resume-closing p:last-child,
.resume-project-card p:last-child,
.resume-skill-card p:last-child,
.resume-entry > p:last-child,
.resume-feature-card > p:last-child {
  margin-bottom: 0;
}

.contact-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  max-width: none;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 118px) clamp(20px, 4vw, 64px);
  background:
    linear-gradient(110deg, rgba(189, 48, 43, 0.96), rgba(18, 96, 109, 0.92)),
    var(--accent);
  overflow: hidden;
}

.contact-section > * {
  position: relative;
  z-index: 1;
  max-width: var(--max);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 92px 92px;
  opacity: 0.28;
  pointer-events: none;
}

.contact-section .eyebrow,
.contact-section h2 {
  color: var(--surface);
}

.contact-actions {
  justify-content: flex-start;
}

.contact-actions .button {
  border-color: rgba(255, 255, 255, 0.76);
}

.contact-actions .button-dark {
  background: var(--surface);
  color: var(--accent);
}

.contact-actions .button-light {
  color: var(--surface);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 64px);
}

.detail-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px) clamp(70px, 9vw, 120px);
}

.detail-hero {
  display: grid;
  gap: 24px;
  padding: clamp(48px, 8vw, 110px) 0 clamp(38px, 6vw, 74px);
  border-bottom: 1px solid var(--line);
}

.back-link {
  width: fit-content;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.detail-meta {
  max-width: 680px;
}

.detail-hero h1 {
  max-width: 980px;
}

.detail-english {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-hero p {
  max-width: 760px;
}

.case-study {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(24px, 4vw, 54px);
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.case-study-item {
  min-height: 240px;
  padding: clamp(22px, 2.4vw, 34px);
  background: var(--surface);
}

.case-study-item span {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.case-study-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding-top: clamp(34px, 5vw, 72px);
}

.detail-figure {
  grid-column: span 6;
  margin: 0;
}

.detail-figure-wide {
  grid-column: 1 / -1;
}

.detail-figure button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(17, 18, 15, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.detail-figure img {
  height: 100%;
  max-height: 1200px;
  object-fit: contain;
  background: var(--surface);
  transition: transform 460ms var(--ease-apple);
}

.detail-figure button:hover img {
  transform: scale(1.012);
}

.detail-figure figcaption {
  margin-top: 10px;
}

.story-main {
  padding-right: 0;
  padding-left: 0;
}

.story-main > * {
  padding-right: clamp(20px, 4vw, 64px);
  padding-left: clamp(20px, 4vw, 64px);
}

.story-hero {
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 0;
}

.story-hero-visual {
  margin-top: clamp(10px, 3vw, 28px);
}

.story-section,
.story-system,
.story-method,
.story-scope {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(46px, 7vw, 96px);
  padding-bottom: clamp(46px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.story-section,
.story-system {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(28px, 4.6vw, 72px);
  align-items: start;
}

.story-copy {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
}

.story-copy > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-copy h2,
.story-scope h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1.05;
}

.story-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.8;
}

.story-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.story-figure {
  margin: 0;
}

.story-figure-wide {
  grid-column: 1 / -1;
}

.story-figure button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 18, 15, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.story-figure img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
  transition: transform 460ms var(--ease-apple);
}

.story-figure-wide img {
  aspect-ratio: 16 / 9;
}

.story-figure button:hover img {
  transform: scale(1.012);
}

.story-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.story-method {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(90deg, rgba(17, 18, 15, 0.035) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(233, 229, 218, 0.72));
}

.decision-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.decision-path li {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: clamp(18px, 2vw, 28px);
  background: var(--surface);
}

.decision-path strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 500;
}

.decision-path span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.story-feelings,
.story-field-tags,
.story-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-feelings span,
.story-field-tags span,
.story-scope-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.story-system-media {
  min-width: 0;
}

.story-scope {
  display: grid;
  gap: 22px;
}

.detail-return {
  display: flex;
  justify-content: center;
  margin-top: clamp(42px, 7vw, 90px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(18, 18, 18, 0.68);
}

.modal.is-open {
  display: grid;
}

.modal-panel,
.lightbox-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-panel {
  padding: clamp(28px, 5vw, 54px);
}

.modal-panel h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 4vw, 46px);
}

.modal-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.modal-panel p span {
  color: var(--ink);
  font-weight: 850;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin-bottom: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-missing {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.qr-missing[aria-hidden="true"] {
  display: none;
}

.qr-missing strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.qr-missing span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lightbox-panel {
  width: min(1180px, 100%);
  background: #111;
}

.lightbox-panel img {
  max-height: calc(100vh - 72px);
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-copy > *,
  .hero-work,
  .capability-media img,
  .story-figure img,
  .reveal,
  .reveal-block {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .hero,
  .split-heading,
  .contact-section,
  .resume-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-gallery {
    min-height: 540px;
  }

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

  .resume-grid-pair {
    grid-template-columns: 1fr;
  }

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

  .work-card,
  .work-card:nth-child(1),
  .work-card:nth-child(2),
  .work-card:nth-child(6),
  .work-card:nth-child(7) {
    grid-column: auto;
  }

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

  .story-section,
  .story-system {
    grid-template-columns: 1fr;
  }

  .story-copy {
    position: static;
  }

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

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

  .capability-card,
  .capability-main-link {
    min-height: auto;
  }

  .capability-media {
    min-height: 220px;
  }

  .story-visual-grid,
  .decision-path {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    min-height: 62px;
    padding: 10px 18px;
  }

  .brand-text {
    display: none;
  }

  .brand {
    flex: 0 0 auto;
  }

  .site-nav {
    flex: 1;
    width: auto;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero::before {
    inset: 22px 18px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .hero-role {
    font-size: 18px;
  }

  .hero-intro {
    padding-left: 16px;
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-gallery {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 14px;
    min-height: 0;
    margin: 0 -18px;
    padding: 4px 18px 14px;
    overflow-x: auto;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .hero-work,
  .hero-work-1,
  .hero-work-2,
  .hero-work-3 {
    flex: 0 0 min(82vw, 360px);
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
    scroll-snap-align: start;
  }

  .works-grid,
  .capability-list,
  .case-study,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .resume-entry-head {
    flex-direction: column;
    gap: 8px;
  }

  .works-section,
  .resume-section,
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .work-card {
    padding: 10px;
  }

  .detail-figure,
  .detail-figure-wide {
    grid-column: auto;
  }

  .detail-return,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions .button {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .brand-mark {
    width: 34px;
  }

  .site-nav a {
    padding: 8px 2px;
  }

  .hero h1 {
    font-size: clamp(39px, 13vw, 54px);
  }

  .split-heading h2,
  .resume-intro-panel h2,
  .contact-section h2,
  .detail-hero h1 {
    font-size: clamp(31px, 10vw, 43px);
  }

  .hero-work,
  .hero-work-1,
  .hero-work-2,
  .hero-work-3 {
    flex-basis: 84vw;
    min-height: 300px;
  }
}

.continuous-case-main {
  max-width: none;
  margin: 0;
  padding: 96px 0 clamp(70px, 9vw, 120px);
}

.continuous-case-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.continuous-boards {
  width: 100%;
  margin-top: clamp(24px, 4vw, 48px);
  line-height: 0;
}

.continuous-board {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
}

.continuous-board img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.continuous-case-main .detail-return {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(20px, 4vw, 64px);
  padding-left: clamp(20px, 4vw, 64px);
}

/* Light template-inspired refresh */
:root {
  --bg: #f6f6f1;
  --surface: #fffefa;
  --ink: #141512;
  --text: #2b2c27;
  --muted: #6e7068;
  --line: rgba(20, 21, 18, 0.12);
  --accent: #1d6fff;
  --accent-2: #11120f;
  --accent-3: #8c7a58;
  --soft: #ecebe5;
  --paper: #fbfaf5;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 90px rgba(20, 21, 18, 0.12);
  --shadow-soft: 0 18px 50px rgba(20, 21, 18, 0.08);
  --radius: 16px;
  --max: 1280px;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 111, 255, 0.1), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8f8f3 46%, #efefea 100%);
  color: var(--text);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  width: min(calc(100% - 32px), 1280px);
  min-height: 62px;
  padding: 10px 14px 10px 24px;
  border: 1px solid rgba(20, 21, 18, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 60px rgba(20, 21, 18, 0.1);
  backdrop-filter: blur(22px) saturate(1.22);
  transform: translateX(-50%);
}

.brand {
  font-size: 18px;
  font-weight: 900;
  text-transform: none;
}

.brand-text {
  color: var(--ink);
}

.site-nav {
  gap: clamp(14px, 2.2vw, 34px);
  font-size: 15px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 6px;
  transition: color 180ms ease, background-color 180ms ease;
}

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

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(720px, 92svh, 900px);
  padding-top: 132px;
  text-align: center;
  border-bottom: 0;
}

.hero::before {
  inset: 96px clamp(20px, 4vw, 64px) 34px;
  border: 1px solid rgba(20, 21, 18, 0.06);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
}

.hero-copy {
  align-self: center;
  max-width: 920px;
}

.eyebrow,
.section-kicker {
  justify-content: center;
  color: var(--accent);
}

.eyebrow::before,
.section-kicker::before {
  display: none;
}

.hero h1 {
  margin-bottom: 16px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(62px, 11vw, 156px);
  font-weight: 950;
  line-height: 0.94;
}

.hero-role {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 34px);
}

.hero-intro {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 0;
  border-left: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.75;
}

.hero-facts,
.hero-actions {
  justify-content: center;
}

.hero-facts span,
.skill-cloud span,
.detail-tags span,
.tool-cloud span,
.work-card-tags span {
  border-color: rgba(20, 21, 18, 0.1);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.button {
  min-height: 48px;
  border-radius: 999px;
  border-color: rgba(20, 21, 18, 0.12);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(20, 21, 18, 0.06);
  backdrop-filter: blur(14px);
}

.button-dark {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 36px rgba(29, 111, 255, 0.24);
}

.button-light,
.button-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-light:hover,
.button-ghost:hover {
  border-color: rgba(29, 111, 255, 0.36);
  color: var(--accent);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  width: min(980px, 100%);
  margin: clamp(38px, 5vw, 62px) auto 0;
}

.hero-stat-card {
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid rgba(20, 21, 18, 0.1);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(1.15);
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 760ms var(--ease-apple) forwards;
}

.hero-stat-card:nth-child(1) {
  animation-delay: 420ms;
}

.hero-stat-card:nth-child(2) {
  animation-delay: 520ms;
}

.hero-stat-card:nth-child(3) {
  animation-delay: 620ms;
}

.hero-stat-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 24px);
}

.hero-stat-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.split-heading {
  align-items: start;
}

.split-heading h2,
.resume-intro-panel h2,
.contact-section h2,
.detail-hero h1 {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}

.about-section,
.resume-section {
  background: transparent;
}

.capability-list {
  overflow: hidden;
  border: 1px solid rgba(20, 21, 18, 0.1);
  border-radius: 24px;
  background: rgba(20, 21, 18, 0.08);
  box-shadow: var(--shadow-soft);
}

.capability-list li {
  background: rgba(255, 255, 255, 0.72);
}

.works-section {
  max-width: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 111, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f4f4ef 100%);
  color: var(--text);
}

.portfolio-heading {
  max-width: 860px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}

.portfolio-heading .section-kicker {
  display: flex;
  margin-bottom: 18px;
}

.portfolio-heading h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 950;
  line-height: 1;
}

.portfolio-heading > p {
  margin: 0 auto 26px;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.75;
}

.portfolio-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid rgba(20, 21, 18, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.portfolio-tab {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  transition:
    transform 180ms var(--ease-apple),
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.portfolio-tab:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.portfolio-tab.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 30px rgba(29, 111, 255, 0.24);
}

.portfolio-notes {
  min-height: 58px;
}

.portfolio-category-note {
  display: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.portfolio-category-note.is-active {
  display: block;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: var(--max);
  margin: 0 auto;
}

.portfolio-card {
  display: none;
  min-width: 0;
}

.portfolio-card.is-visible-card {
  display: block;
}

.portfolio-card a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(230px, 21vw, 330px);
  border: 1px solid rgba(20, 21, 18, 0.1);
  border-radius: 20px;
  background: #d9d8d0;
  box-shadow: 0 22px 60px rgba(20, 21, 18, 0.12);
  transform: translateZ(0);
  transition:
    transform 320ms var(--ease-apple),
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.portfolio-card a:hover {
  border-color: rgba(29, 111, 255, 0.26);
  box-shadow: 0 32px 76px rgba(20, 21, 18, 0.16);
  transform: translateY(-6px);
}

.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98) brightness(0.82);
  transition:
    transform 620ms var(--ease-apple),
    filter 420ms ease;
}

.portfolio-card a:hover img {
  filter: saturate(1.04) contrast(1.04) brightness(0.72);
  transform: scale(1.08);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 36%, rgba(0, 0, 0, 0.72) 100%);
  color: #fff;
  opacity: 0.96;
}

.portfolio-card-overlay > span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.78;
}

.portfolio-card-overlay h3 {
  margin: 0;
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
}

.portfolio-card-overlay p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 320ms var(--ease-apple),
    opacity 260ms ease,
    transform 260ms var(--ease-apple);
}

.portfolio-card a:hover .portfolio-card-overlay p {
  max-height: 8em;
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card .work-card-tags span {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}

.portfolio-card:nth-child(1) a,
.portfolio-card:nth-child(4) a {
  min-height: clamp(260px, 24vw, 380px);
}

.resume-shell {
  align-items: start;
}

.resume-intro-panel,
.resume-panel,
.resume-feature-card,
.resume-project-card,
.resume-skill-card {
  border-color: rgba(20, 21, 18, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.resume-intro-panel {
  position: sticky;
  top: 104px;
  color: var(--ink);
}

.resume-intro-panel h2,
.resume-identity strong,
.resume-contact-item strong {
  color: var(--ink);
}

.resume-intro-panel p,
.resume-identity span,
.resume-contact-item span {
  color: var(--muted);
}

.resume-intro-panel .button {
  border-color: var(--accent);
}

.resume-contact-item {
  border-color: rgba(20, 21, 18, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.tool-panel {
  background: rgba(255, 255, 255, 0.72);
}

.contact-section {
  margin: clamp(40px, 7vw, 90px) clamp(20px, 4vw, 64px) clamp(24px, 4vw, 54px);
  border: 1px solid rgba(20, 21, 18, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(29, 111, 255, 0.16), transparent 24rem),
    linear-gradient(135deg, #ffffff, #efeee7);
  box-shadow: var(--shadow);
}

.contact-section::before {
  display: none;
}

.contact-section .eyebrow,
.contact-section h2 {
  color: var(--ink);
}

.contact-actions .button-dark {
  background: var(--accent);
  color: #fff;
}

.contact-actions .button-light {
  color: var(--ink);
}

.site-footer {
  color: var(--muted);
}

.detail-main {
  padding-top: 96px;
}

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

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

  .resume-intro-panel {
    position: static;
  }
}

@media (max-width: 740px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), 1280px);
    min-height: auto;
    padding: 10px 12px;
  }

  .brand-text {
    display: block;
    font-size: 16px;
  }

  .site-nav {
    justify-content: flex-end;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-nav a {
    padding: 9px 4px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
    text-align: left;
  }

  .hero-copy {
    align-self: stretch;
  }

  .eyebrow,
  .section-kicker,
  .hero-facts,
  .hero-actions {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(54px, 19vw, 86px);
  }

  .hero-intro {
    margin-left: 0;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .portfolio-heading {
    text-align: left;
  }

  .portfolio-heading .section-kicker,
  .portfolio-tabs {
    justify-content: flex-start;
  }

  .portfolio-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .portfolio-tab {
    flex: 0 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card a,
  .portfolio-card:nth-child(1) a,
  .portfolio-card:nth-child(4) a {
    min-height: 310px;
  }

  .portfolio-card-overlay p {
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .contact-section {
    margin-right: 18px;
    margin-left: 18px;
  }
}

@media (max-width: 440px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 148px;
  }
}

.case-process-note {
  padding: clamp(48px, 7vw, 110px) max(24px, calc((100vw - 1100px) / 2));
  background: #131319;
  color: #b9b3a9;
}

.case-process-note .case-process-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #ba9460;
}

.case-process-note h2 {
  color: #e7d9bf;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.5;
  margin: 24px 0;
}

.case-process-note > p:not(.case-process-kicker) {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.9;
  margin-bottom: 16px;
}

/* Editorial homepage */
body[data-page="home"] {
  overflow-x: hidden;
  background: #fff;
}

.nav-toggle {
  display: none;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.identity-hero {
  display: grid;
  min-height: calc(100svh - 70px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 4vw, 64px) clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--ink);
}

.identity-hero-topline,
.identity-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-hero-copy {
  align-self: center;
  padding: clamp(48px, 8vh, 100px) 0;
}

.identity-hero-name {
  margin-bottom: clamp(22px, 3vw, 40px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.identity-hero h1 {
  max-width: 1260px;
  margin: 0;
  color: var(--ink);
  font-family: "Helvetica Neue", "Arial", "PingFang SC", sans-serif;
  font-size: clamp(64px, 11.8vw, 174px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.79;
  text-transform: uppercase;
}

.identity-hero h1 span {
  display: block;
}

.identity-hero h1 span:nth-child(2) {
  padding-left: clamp(24px, 10vw, 150px);
}

.identity-hero-footer {
  align-self: end;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 18, 15, 0.28);
}

.identity-hero-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.identity-hero-footer a {
  flex: 0 0 auto;
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
  transition: color 180ms ease;
}

.identity-hero-footer a:hover {
  color: var(--accent);
}

.project-index {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 152px) clamp(20px, 4vw, 64px);
  padding-top: clamp(44px, 5vw, 76px);
}

.project-index-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 80px);
}

.project-index-heading .section-kicker {
  margin-bottom: 22px;
}

.project-index-heading h2 {
  margin: 0;
  font-family: "Helvetica Neue", "Arial", "PingFang SC", sans-serif;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.project-index-heading > p {
  margin: 0;
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.project-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(54px, 7vw, 104px) clamp(20px, 2.5vw, 40px);
}

.project-index-card {
  min-width: 0;
}

.project-index-card a {
  display: block;
  padding: clamp(12px, 1.5vw, 20px);
  background: #f7f7f7;
}

.project-index-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ecebe6;
}

.project-index-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  transition: transform 700ms var(--ease-apple), filter 500ms ease;
}

.project-index-card-chahui-exhibition .project-index-media img {
  object-fit: cover;
}

.project-index-card-lrek-atid .project-index-media {
  background: #f3f1eb;
}

.project-index-media span {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0 9px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.project-index-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 20px 0 12px;
  border-bottom: 1px solid rgba(17, 18, 15, 0.28);
}

.project-index-copy p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-index-copy h3 {
  margin: 0;
  font-family: "Helvetica Neue", "Arial", "PingFang SC", sans-serif;
  font-size: clamp(24px, 2.3vw, 38px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.project-index-copy > span {
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.project-index-role {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.project-index-card a:hover .project-index-media img {
  filter: saturate(1.06) contrast(1.02);
  transform: none;
}

.project-index-card a:hover .project-index-copy {
  border-color: var(--ink);
}

.project-index-card a:focus-visible,
.detail-project-navigation a:focus-visible,
.identity-hero a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.compact-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(44px, 9vw, 144px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(84px, 10vw, 148px) clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--ink);
}

.personal-practice {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 136px) clamp(20px, 4vw, 64px);
  border-top: 1px solid rgba(17, 18, 15, 0.18);
}

.personal-practice-copy h2 {
  margin: 18px 0 24px;
  font-family: "Helvetica Neue", "Arial", "PingFang SC", sans-serif;
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.personal-practice-copy > p:not(.section-kicker) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.personal-practice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 18, 15, 0.24);
  color: var(--muted);
  font-size: 12px;
}

.personal-practice-account {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}

.personal-practice-link {
  flex: 0 0 auto;
}

.personal-practice-link.is-pending {
  cursor: default;
}

.personal-practice-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
  align-items: end;
}

.personal-practice-image {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: #eeeae3;
}

.personal-practice-image:nth-child(2) {
  transform: translateY(clamp(18px, 3vw, 42px));
}

.personal-practice-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-apple), filter 500ms ease;
}

.personal-practice-image:hover img {
  filter: saturate(1.04);
  transform: scale(1.025);
}

.compact-profile-heading h2 {
  margin: 18px 0 24px;
  font-family: "Helvetica Neue", "Arial", "PingFang SC", sans-serif;
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.compact-profile-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.compact-profile-detail {
  align-self: end;
}

.profile-experience-list {
  display: grid;
  gap: 0;
  margin-bottom: 30px;
  border-top: 1px solid rgba(17, 18, 15, 0.3);
}

.profile-experience-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(17, 18, 15, 0.18);
}

.profile-experience-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
}

.profile-experience-item p,
.profile-experience-item span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.profile-experience-item > span {
  white-space: nowrap;
}

.profile-resume-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.profile-resume-action .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background-color 180ms ease, transform 180ms ease;
}

.profile-resume-action .text-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.detail-project-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: center;
  max-width: var(--max);
  margin: clamp(72px, 9vw, 132px) auto 0;
  padding: clamp(30px, 4vw, 54px) clamp(20px, 4vw, 64px);
  border-top: 1px solid rgba(17, 18, 15, 0.24);
}

.detail-project-navigation.is-single {
  display: flex;
  justify-content: center;
}

.detail-project-index {
  padding: 12px 16px;
  border: 1px solid rgba(17, 18, 15, 0.3);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease;
}

.detail-project-index:hover {
  background: var(--ink);
  color: #fff;
}

.detail-project-direction {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.detail-project-direction.is-next {
  align-items: flex-end;
  text-align: right;
}

.detail-project-direction span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-project-direction strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(15px, 1.5vw, 20px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-project-direction:not(.is-empty):hover strong {
  color: var(--accent);
}

@media (max-width: 740px) {
  body.has-open-nav {
    overflow: hidden;
  }

  .site-header {
    min-height: 62px;
    flex-direction: row;
    align-items: center;
    padding: 12px 18px;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 62px 0 auto;
    display: none;
    min-height: calc(100svh - 62px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 34px 20px;
    background: #f4f2ec;
    border-top: 1px solid rgba(17, 18, 15, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid rgba(17, 18, 15, 0.16);
    color: var(--ink);
    font-size: 26px;
    font-weight: 800;
  }

  .identity-hero {
    min-height: calc(100svh - 62px);
    padding: 24px 18px 28px;
  }

  .identity-hero-copy {
    padding: 46px 0;
  }

  .identity-hero h1 {
    font-size: clamp(56px, 20vw, 96px);
    line-height: 0.82;
  }

  .identity-hero h1 span:nth-child(2) {
    padding-left: 0;
  }

  .identity-hero-footer {
    align-items: flex-end;
  }

  .identity-hero-footer p {
    max-width: 75%;
    font-size: 13px;
  }

  .project-index {
    padding: 42px 18px 104px;
  }

  .project-index-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 42px;
  }

  .project-index-heading h2 {
    font-size: clamp(50px, 17vw, 78px);
  }

  .project-index-heading > p {
    max-width: 440px;
  }

  .project-index-grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .project-index-media {
    aspect-ratio: 16 / 9;
  }

  .project-index-copy {
    gap: 12px;
    padding-top: 16px;
  }

  .project-index-copy h3 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .compact-profile {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 84px 18px;
  }

  .personal-practice {
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 76px 18px 94px;
  }

  .personal-practice-copy h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .personal-practice-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .personal-practice-gallery {
    gap: 7px;
    padding-bottom: 22px;
  }

  .personal-practice-image:nth-child(2) {
    transform: translateY(22px);
  }

  .profile-experience-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .profile-resume-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-project-navigation {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .detail-project-index {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .detail-project-direction {
    grid-row: 2;
  }

  .detail-project-direction strong {
    font-size: 14px;
  }
}

@media (max-width: 440px) {
  .identity-hero-topline span:last-child {
    display: none;
  }

  .identity-hero-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .identity-hero-footer p {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-index-media img,
  .profile-resume-action .text-link {
    transition: none;
  }
}

/* Homepage closing resume */
.resume-tail {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 156px) clamp(20px, 4vw, 64px) clamp(54px, 7vw, 96px);
  border-top: 1px solid var(--ink);
  overflow-x: clip;
}

.resume-tail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  column-gap: clamp(44px, 9vw, 144px);
  align-items: end;
  min-width: 0;
}

.resume-tail-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 22px;
}

.resume-tail-heading h2 {
  min-width: 0;
  margin: 0;
  font-family: "Helvetica Neue", "Arial", "PingFang SC", sans-serif;
  font-size: clamp(54px, 7.8vw, 116px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.resume-tail-heading h2 span {
  display: block;
}

.resume-tail-heading > p:last-child {
  min-width: 0;
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.resume-tail-detail {
  min-width: 0;
  margin-top: clamp(72px, 9vw, 126px);
}

.resume-tail-section-label,
.resume-tail-education > span,
.resume-tail-contact > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-tail-section-label {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 18, 15, 0.32);
}

.resume-tail-experience-item {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(220px, 0.9fr) minmax(280px, 1.55fr);
  gap: clamp(22px, 4vw, 64px);
  padding: 24px 0;
  border-bottom: 1px solid rgba(17, 18, 15, 0.18);
}

.resume-tail-period,
.resume-tail-role span,
.resume-tail-experience-item > p,
.resume-tail-education p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.resume-tail-role strong,
.resume-tail-role span {
  display: block;
}

.resume-tail-role strong {
  margin-bottom: 7px;
  font-size: 15px;
}

.resume-tail-experience-item > p,
.resume-tail-education p {
  margin: 0;
}

.resume-tail-meta {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 1.1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: end;
  min-width: 0;
  padding-top: clamp(42px, 6vw, 76px);
}

.resume-tail-education strong {
  display: block;
  margin: 15px 0 5px;
  font-size: 17px;
}

.resume-tail-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.resume-tail-contact > span {
  margin-bottom: 13px;
}

.resume-tail-contact a {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.9;
}

.resume-tail-contact a:hover {
  color: var(--accent);
}

.resume-tail-document {
  width: 100%;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .resume-tail-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .resume-tail-heading > p:last-child {
    max-width: 620px;
  }

  .resume-tail-experience-item {
    grid-template-columns: minmax(120px, 0.5fr) minmax(180px, 0.8fr) minmax(240px, 1.2fr);
    gap: 24px;
  }

  .resume-tail-meta {
    grid-template-columns: 1fr 1fr;
  }

  .resume-tail-document {
    grid-column: 1 / -1;
  }
}

@media (max-width: 740px) {
  .resume-tail {
    padding: 84px 18px 48px;
  }

  .resume-tail-heading h2 {
    overflow-wrap: anywhere;
    font-size: clamp(46px, 13.5vw, 60px);
    word-break: break-all;
  }

  .resume-tail-heading > p:last-child,
  .resume-tail-experience-item,
  .resume-tail-role,
  .resume-tail-experience-item > p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .resume-tail-contact a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .resume-tail-detail {
    margin-top: 70px;
  }

  .resume-tail-experience-item,
  .resume-tail-meta {
    grid-template-columns: 1fr;
  }

  .resume-tail-experience-item {
    gap: 10px;
    padding: 24px 0 28px;
  }

  .resume-tail-experience-item > p {
    margin-top: 8px;
  }

  .resume-tail-meta {
    gap: 34px;
    padding-top: 46px;
  }

  .resume-tail-document {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-fill-button,
  .arrow-fill-button::before,
  .arrow-fill-button-arrow {
    transition: none;
  }
}
