:root {
  --paper: #faf9f6;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.28);
  --burnt: #b5440b;
  --yellow: #ffde42;
  --green: #5ab50b;
  --blue-card: #dff2ff;
  --green-card: #e4f5d6;
  --cream-card: #fff4bd;
  --shadow: 8px 8px 0 rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.35;
}

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

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(18px);
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 20px;
  padding: 12px 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.nav-links a,
.contact-link {
  color: var(--muted);
  font-weight: 800;
}

.contact-link {
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

main {
  width: 100%;
  padding-inline: clamp(20px, 5vw, 72px);
}

.hero,
.bridge,
.work-section,
.pillars,
.archive-section,
.about-section,
.skills-section,
.contact-section,
.case-drawer {
  width: 100%;
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-content: center;
  padding: clamp(58px, 9vw, 92px) 0 46px;
}

.arena-content {
  position: relative;
}

.arena-title {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0;
  font-size: clamp(28px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.arena-title span {
  display: inline;
}

.plain-title {
  white-space: nowrap;
}

.title-row {
  display: block;
}

.highlight {
  position: relative;
  display: inline-block;
  margin: 0 0.05em;
  padding: 0 0.18em 0.02em;
  color: #fff;
  white-space: nowrap;
  cursor: default;
}

.highlight::before {
  position: absolute;
  inset: 0.05em 0 0.03em;
  z-index: -1;
  background: var(--burnt);
  transform: scaleX(1);
  transform-origin: right;
  content: "";
}

.highlight.hovered::before {
  animation: highlightWipe 0.55s ease-out forwards;
}

.arena-images {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.arena-img {
  position: absolute;
  width: clamp(200px, 24vw, 380px);
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
  box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.14);
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 520ms cubic-bezier(0.2, 1, 0.2, 1);
}

.arena-img-1 {
  left: 2%;
  top: 10%;
  transform: translate(-70vw, -40vh) rotate(-22deg);
}

.arena-img-2 {
  right: 2%;
  top: 10%;
  transform: translate(70vw, -40vh) rotate(16deg);
}

.arena-img-3 {
  left: 4%;
  bottom: 12%;
  transform: translate(-70vw, 40vh) rotate(14deg);
}

.arena-img-4 {
  right: 4%;
  bottom: 12%;
  transform: translate(70vw, 40vh) rotate(-18deg);
}

.arena-images.is-in .arena-img {
  opacity: 1;
}

.arena-images.is-in .arena-img-1 {
  transform: translate(0, 0) rotate(-12deg);
}

.arena-images.is-in .arena-img-2 {
  transform: translate(0, 0) rotate(10deg);
}

.arena-images.is-in .arena-img-3 {
  transform: translate(0, 0) rotate(8deg);
}

.arena-images.is-in .arena-img-4 {
  transform: translate(0, 0) rotate(-10deg);
}

.hero-subline {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: none;
  margin-top: 34px;
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: clamp(12px, 1.2vw, 16px);
}

.hero-subline p {
  margin: 0;
}

.hero-subline img {
  width: 76px;
  height: auto;
}

.scribble-arrow {
  width: 129px;
  height: 90px;
  flex-shrink: 0;
  object-fit: contain;
}

.bridge {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 0 64px;
  text-align: center;
}

.bridge p,
.bridge h2 {
  margin: 0;
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 500;
}

.bridge-handwritten {
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(16px, 1.8vw, 24px);
}

.bridge-portrait {
  position: relative;
  width: min(470px, 86vw);
  aspect-ratio: 16 / 10;
}

.bridge-portrait .bridge-bg,
.bridge-portrait .avatar-normal,
.bridge-portrait .avatar-wink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease, transform 200ms ease;
}

.bridge-bg {
  opacity: 0.95;
}

.avatar-wink {
  opacity: 0;
}

.bridge-portrait:hover .avatar-normal {
  opacity: 0;
  transform: scale(0.98) rotate(-2deg);
}

.bridge-portrait:hover .avatar-wink {
  opacity: 1;
  transform: scale(1.04) rotate(2deg);
}

.section-kicker {
  display: block;
  margin: 0 0 32px;
  color: var(--burnt);
  font-size: clamp(28px, 4.8vw, 48px);
  font-weight: 950;
  line-height: 0.95;
}

.work-section,
.pillars,
.archive-section,
.about-section,
.skills-section {
  padding: 56px 0;
}

.project-stack {
  display: grid;
  gap: 18px;
}

.work-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(154px, 280px);
  gap: 18px;
  align-items: center;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:hover,
.archive-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.work-number {
  color: var(--burnt);
  font-size: 15px;
  font-weight: 950;
}

.work-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.05;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.work-card span {
  display: inline-block;
  margin-top: 12px;
  color: var(--burnt);
  font-size: 15px;
  font-weight: 800;
}

.project-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.project-preview.wide {
  aspect-ratio: 16 / 10;
}

.project-preview img,
.project-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.project-preview:hover img,
.project-preview:hover video {
  transform: scale(1.04);
}

.project-preview.app-collage img,
.project-preview.app-collage video {
  object-fit: contain;
  background: var(--paper);
}

.case-drawer {
  display: none;
  position: relative;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--ink);
  border-radius: 28px;
  background: #FAF9F6;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
}

.case-drawer.is-open {
  display: block;
}

body.case-open {
  overflow: hidden;
}

body.case-open .case-drawer {
  position: fixed;
  inset: 86px auto 22px 50%;
  z-index: 90;
  width: min(1320px, calc(100% - 32px));
  overflow-y: auto;
  transform: translateX(-50%);
}

body.case-open .case-drawer::before {
  position: fixed;
  inset: -86px -100vw -22px;
  z-index: -1;
  background: #FAF9F6;
  content: "";
}

.drawer-close {
  position: sticky;
  top: 0;
  z-index: 10;
  float: right;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  cursor: pointer;
  font-weight: 950;
  box-shadow: var(--shadow);
}

.case-drawer h2 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.95;
}

.case-summary {
  max-width: 940px;
  color: var(--muted);
  font-size: 20px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 34px;
}

.case-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.case-grid h3 {
  margin: 0 0 8px;
}

.case-grid p {
  margin: 0;
  color: var(--muted);
}

.case-gallery {
  display: grid;
  gap: 30px;
}

.case-shot {
  width: min(100%, 1180px);
  justify-self: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

 .case-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.case-shot figcaption {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-weight: 800;
}

.case-shot figcaption span {
  display: inline-flex;
  min-width: 38px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
}

.pillars h2,
.archive-section h2,
.about-copy h2 {
  margin: 0 0 38px;
  font-size: clamp(36px, 5.6vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.skills-heading h2 {
  margin: 0 0 38px;
  font-size: clamp(30px, 4.8vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.underline-mark {
  position: relative;
  display: inline-block;
}

.underline-mark::after {
  position: absolute;
  right: 0;
  bottom: -0.16em;
  left: 0;
  height: 0.28em;
  background: url("assets/site/下划线条.png") center / 100% 100% no-repeat;
  content: "";
}

.tilt-grid {
  perspective: 900px;
}

.pillar-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tilt-card {
  position: relative;
  min-height: 172px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: box-shadow 220ms ease, transform 220ms ease;
  aspect-ratio: 1 / 1;
}

.pillar-card:nth-child(1),
.about-card:nth-child(1) {
  background: var(--cream-card);
}

.pillar-card:nth-child(2),
.about-card:nth-child(2) {
  background: var(--blue-card);
}

.pillar-card:nth-child(3),
.about-card:nth-child(3) {
  background: var(--green-card);
}

.card-shine {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.42), transparent 62%);
  transition: opacity 160ms ease;
}

.card-shadow-el {
  position: absolute;
  right: 12%;
  bottom: -18px;
  left: 12%;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(16px);
  opacity: 0.25;
  pointer-events: none;
}

.tilt-card span,
.tilt-card h3,
.tilt-card p {
  position: relative;
  z-index: 1;
}

.tilt-card span {
  color: rgba(17,17,17,0.48);
  font-size: 16px;
  font-weight: 900;
}

.tilt-card h3 {
  margin: 18px 0 10px;
  font-size: 16px;
}

.tilt-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pillar-card span {
  font-size: 28px;
}

.pillar-card h3 {
  font-size: 30px;
}

.pillar-card p {
  font-size: 26px;
}

.about-card p {
  font-size: 17px;
}

.archive-section {
  display: grid;
  grid-template-columns: minmax(200px, 0.55fr) 1.45fr;
  grid-template-rows: auto 1fr;
  gap: 0 28px;
  align-items: start;
}

.archive-section > .section-kicker {
  grid-column: 1 / -1;
}

.archive-left {
  grid-column: 1;
  grid-row: 2;
}

.archive-note {
  color: var(--muted);
  font-size: 25px;
}

.archive-list {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.archive-item {
  display: grid;
  gap: 10px;
  min-height: 184px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.archive-item {
  overflow: hidden;
}

.archive-item img,
.archive-item video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  transition: transform 350ms ease;
}

.archive-item:hover img,
.archive-item:hover video {
  transform: scale(1.04);
}

.archive-item strong {
  padding-inline: 6px;
  font-size: 20px;
}

.archive-item span {
  padding: 0 6px 8px;
  color: var(--muted);
  font-size: 16px;
}

.about-section {
  display: grid;
  grid-template-columns: 3fr 4fr;
  grid-template-rows: auto 1fr;
  gap: 0 28px;
  align-items: start;
}

.about-section > .section-kicker {
  grid-column: 1 / -1;
}

.about-photo-card {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);
  transition: transform 200ms ease;
}

.about-photo-card:hover {
  transform: rotate(-2deg) translateY(-4px);
}

.about-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.22;
  object-fit: cover;
}

.about-copy {
  grid-column: 2;
  grid-row: 2;
}

.about-photo-card span {
  display: block;
  padding: 12px 14px;
  font-weight: 900;
}

.about-grid {
  margin-top: 28px;
}

.about-card {
  aspect-ratio: auto;
  min-height: auto;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: 25px;
}

.about-facts span::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--burnt);
  content: "";
}

.about-facts b {
  margin-right: 18px;
  color: var(--muted);
  font-weight: 700;
}

.about-bio {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 25px;
}

.skills-section {
  text-align: center;
}

.skills-section > .section-kicker {
  margin-bottom: 48px;
}

.skills-heading h2 {
  max-width: 820px;
  margin: 60px auto 0;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 500;
  line-height: 1.5;
}

.green-highlight {
  background: var(--green);
  color: #fff;
  padding-inline: 0.16em;
}

.skill-board {
  position: relative;
  min-height: 520px;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.skill-board span {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  cursor: grab;
  will-change: transform;
  visibility: hidden;
}

.skill-board.is-ready span {
  visibility: visible;
}

.skill-board span:active {
  cursor: grabbing;
}

.skill-figma,
.skill-ae,
.skill-pr,
.skill-animate {
  background: var(--yellow);
}

.skill-ps,
.skill-html,
.skill-cursor,
.skill-codex,
.skill-hbuilder {
  background: var(--blue-card);
}

.skill-ai,
.skill-aigc,
.skill-claude,
.skill-office {
  background: var(--green-card);
}

.contact-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: fit-content;
  margin: 0 auto;
  padding-left: 0;
}

.contact-illustration img {
  width: 767px;
  height: 496px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.speech-bubble {
  position: absolute;
  right: 40px;
  top: 10px;
  padding: 16px 28px;
  background: var(--yellow);
  border: none;
  border-radius: 22px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--yellow);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-top: 0;
  margin-bottom: 70px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--yellow);
  align-items: end;
}

.contact-bubble {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-bubble h2 {
  max-width: 650px;
  margin: 0 0 10px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.9;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: stretch;
}

.contact-actions a {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - 40px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes highlightWipe {
  0% { transform: scaleX(1); transform-origin: right; }
  44% { transform: scaleX(0); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 620px) {
  .nav-links {
    display: none;
  }

  .work-card,
  .archive-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .archive-section,
  .about-section {
    grid-template-rows: auto auto auto;
  }

  .archive-section > .section-kicker,
  .about-section > .section-kicker {
    grid-column: 1;
  }

  .archive-left,
  .archive-list,
  .about-photo-card,
  .about-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-bubble {
    display: flex;
    flex-direction: column;
  }

  .pillar-grid,
  .about-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-card {
    position: static;
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 20px;
  }

  .contact-link {
    display: none;
  }

  .hero,
  .bridge,
  .work-section,
  .pillars,
  .archive-section,
  .about-section,
  .skills-section,
  .contact-section {
    width: 100%;
  }

  .hero {
    min-height: 0;
    padding-top: 54px;
  }

  .arena-title {
    font-size: clamp(29px, 10.8vw, 50px);
  }

  .arena-images {
    display: none;
  }

  .hero-subline {
    font-size: 12px;
  }

  .hero-subline img {
    width: 58px;
  }

  .section-kicker {
    font-size: 34px;
  }

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

  .archive-item {
    min-height: 0;
  }

  .contact-illustration {
    justify-content: center;
    padding-left: 0;
  }

  .speech-bubble {
    left: auto;
    right: clamp(20px, 10vw, 60px);
    top: 0;
  }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }
}
