:root {
  --paper: #f6f2ec;
  --paper-deep: #eee7de;
  --ink: #343139;
  --muted: #77717c;
  --purple: #4f3769;
  --purple-deep: #2b213f;
  --orange: #e67a43;
  --line: rgba(79, 55, 105, 0.16);
  --shadow: 0 24px 60px rgba(48, 37, 54, 0.16);
  --serif: ui-serif, "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(79, 55, 105, 0.05), transparent 23rem),
    radial-gradient(circle at 92% 48%, rgba(230, 122, 67, 0.055), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(rgba(64, 49, 69, 0.18) 0.5px, transparent 0.5px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  color: white;
  background: var(--purple);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 34px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  color: var(--purple);
  font-size: 17px;
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: 0.17em;
  text-decoration: none;
}

.wordmark i {
  color: var(--orange);
  font-style: normal;
}

.header-note {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  overflow: clip;
  min-height: calc(100svh - 72px);
  align-content: center;
  padding-block: 9vh 15vh;
}

.hero::after {
  position: absolute;
  top: 15%;
  right: 3%;
  width: clamp(120px, 18vw, 230px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow:
    28px 28px 0 -27px var(--orange),
    -28px -28px 0 -27px var(--purple);
  opacity: 0.58;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.kicker, .eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.2em;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  color: var(--purple-deep);
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 106px);
  font-weight: 650;
  line-height: 1.07;
  letter-spacing: -0.05em;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.identity-tags span {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.34);
  font-size: 13px;
}

.hero-line {
  max-width: 34em;
  margin-bottom: 0;
  white-space: pre-line;
  font-family: var(--serif);
  font-size: clamp(19px, 2.5vw, 28px);
  line-height: 1.75;
}

.keep-together { white-space: nowrap; }

.quick-nav {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: clamp(44px, 8vh, 82px);
  color: var(--muted);
  font-size: 13px;
}

.quick-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.quick-nav a {
  position: relative;
  color: var(--purple);
  text-decoration: none;
}

.quick-nav a::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.quick-nav a:hover::after,
.quick-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.scroll-hint {
  position: absolute;
  right: 0;
  bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.scroll-hint b {
  color: var(--orange);
  font-size: 18px;
  font-weight: 500;
}

.section { padding-block: clamp(90px, 13vw, 168px); }

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: clamp(42px, 7vw, 78px);
}

.section-number {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--orange);
  font-size: 11px;
}

h2 {
  margin-bottom: 0;
  color: var(--purple-deep);
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(42px, 10vw, 124px);
  align-items: start;
}

.about-copy {
  position: relative;
  max-width: 31ch;
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.85;
}

.about-copy::before {
  position: absolute;
  top: -28px;
  left: -38px;
  color: rgba(230, 122, 67, 0.25);
  content: "“";
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
}

.skills {
  border-top: 1px solid var(--line);
}

.skills-list { counter-reset: skill; }

.skill-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: skill;
  font-size: clamp(15px, 1.6vw, 18px);
}

.skill-item::before {
  padding-top: 2px;
  color: var(--orange);
  content: counter(skill, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.skill-item p { margin: 0; }

.photography {
  overflow: hidden;
  overflow: clip;
}

.photo-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: -40px 0 44px 64px;
  color: var(--muted);
  font-size: 13px;
}

.photo-intro p { margin: 0; color: var(--ink); }

.photo-stack {
  position: relative;
  height: clamp(920px, 94vw, 1080px);
  max-height: 1080px;
  margin-top: 34px;
  isolation: isolate;
}

.photo-card {
  position: absolute;
  width: clamp(210px, 28vw, 340px);
  margin: 0;
  padding: 10px 10px 42px;
  border: 0;
  color: var(--ink);
  background: #fffdf9;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transform: rotate(var(--angle));
  transition: transform 260ms ease, box-shadow 260ms ease, z-index 0s;
}

.photo-card:nth-child(1) { --angle: -6deg; z-index: 5; top: 5%; left: 3%; }
.photo-card:nth-child(2) { --angle: 4deg; z-index: 2; top: 1%; left: 31%; width: clamp(290px, 40vw, 470px); }
.photo-card:nth-child(3) { --angle: 7deg; z-index: 6; top: 19%; right: 2%; }
.photo-card:nth-child(4) { --angle: -3deg; z-index: 3; top: 36%; left: 8%; }
.photo-card:nth-child(5) { --angle: 3deg; z-index: 7; top: 42%; left: 34%; width: clamp(290px, 40vw, 470px); }
.photo-card:nth-child(6) { --angle: 6deg; z-index: 8; top: 58%; right: 2%; }
.photo-card:nth-child(7) { --angle: -4deg; z-index: 4; top: 69%; left: 4%; width: clamp(290px, 40vw, 470px); }

.photo-card:hover,
.photo-card:focus-visible {
  z-index: 10;
  outline: none;
  box-shadow: 0 32px 70px rgba(48, 37, 54, 0.24);
  transform: rotate(0) translateY(-12px) scale(1.025);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-deep);
}

.photo-card.landscape img { aspect-ratio: 3 / 2; }

.photo-card span {
  position: absolute;
  right: 14px;
  bottom: 11px;
  left: 14px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact {
  padding-top: 64px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.34);
}

.wechat-mark {
  display: grid;
  min-height: 420px;
  place-items: center;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(79, 55, 105, 0.92), rgba(43, 33, 63, 0.98)),
    var(--purple);
}

.wechat-mark svg {
  width: min(42%, 126px);
  fill: currentColor;
}

.wechat-mark svg circle {
  fill: var(--purple-deep);
}

.contact-copy {
  padding: clamp(42px, 7vw, 84px);
}

.contact-copy > p:not(.eyebrow, .contact-note, .copy-status) {
  margin: 28px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.wechat-copy {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--purple-deep);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.wechat-copy span:first-child {
  font-family: var(--serif);
  font-size: clamp(27px, 4vw, 48px);
}

.wechat-copy span:last-child {
  color: var(--orange);
  font-size: 12px;
  white-space: nowrap;
}

.wechat-copy:hover,
.wechat-copy:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.contact-note {
  max-width: 32ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.copy-status {
  min-height: 1.7em;
  margin: 14px 0 0;
  color: var(--orange);
  font-size: 13px;
}

.site-footer {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: end stretch;
  color: rgba(255, 255, 255, 0.9);
  background-color: var(--purple-deep);
  background-position: center;
  background-size: cover;
}

.site-footer::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, rgba(34, 24, 48, 0.1), rgba(27, 19, 39, 0.78));
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: 68px 42px;
}

.footer-inner p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.05;
}

.footer-inner > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  white-space: nowrap;
}

.lightbox {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  height: min(860px, calc(100dvh - 32px));
  max-height: none;
  padding: 52px 80px 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  color: white;
  background: rgba(27, 21, 34, 0.96);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.lightbox::backdrop {
  background: rgba(18, 14, 22, 0.74);
  backdrop-filter: blur(12px);
}

.lightbox figure {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  margin: 0;
}

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

.lightbox figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  min-height: 32px;
  text-align: center;
}

.lightbox figcaption strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.lightbox figcaption span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.lightbox-close { top: 14px; right: 16px; font-size: 25px; }
.lightbox-prev { top: 50%; left: 18px; }
.lightbox-next { top: 50%; right: 18px; }

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 900px) {
  .shell { width: min(100% - 30px, 620px); }
  .site-header { padding-top: 24px; }
  .header-note { text-align: right; }
  .hero { min-height: calc(100svh - 58px); padding-block: 80px 120px; }
  .hero::after { top: 11%; right: 8px; opacity: 0.35; }
  h1 { max-width: none; font-size: clamp(42px, 12.4vw, 58px); }
  .hero-line { font-size: 19px; }
  .quick-nav { display: block; margin-top: 54px; }
  .quick-nav > span { display: block; margin-bottom: 12px; }
  .quick-nav > div { gap: 8px 16px; }
  .scroll-hint { right: 2px; }
  .section { padding-block: 90px; }
  .about { display: block; }
  .about-copy { margin: 0 0 0 22px; font-size: 22px; }
  .about-copy::before { left: -28px; }
  .skill-item { grid-template-columns: 42px 1fr; padding-block: 20px; }
  .photo-intro { display: block; margin: -30px 0 34px 64px; }
  .photo-intro p { margin-bottom: 4px; }
  .photo-stack { height: 1120px; margin-inline: -8px; }
  .photo-card { width: min(59vw, 280px); padding: 7px 7px 36px; }
  .photo-card:nth-child(1) { top: 1%; left: 1%; }
  .photo-card:nth-child(2) { top: 8%; left: 26%; width: min(70vw, 330px); }
  .photo-card:nth-child(3) { top: 24%; right: 0; }
  .photo-card:nth-child(4) { top: 35%; left: 2%; }
  .photo-card:nth-child(5) { top: 45%; left: 23%; width: min(70vw, 330px); }
  .photo-card:nth-child(6) { top: 62%; right: 0; }
  .photo-card:nth-child(7) { top: 76%; left: 1%; width: min(72vw, 340px); }
  .contact-card { grid-template-columns: 1fr; border-radius: 24px; }
  .wechat-mark { min-height: 190px; }
  .wechat-mark svg { width: 92px; }
  .contact-copy { padding: 40px 24px 34px; }
  .wechat-copy { align-items: center; }
  .site-footer { min-height: 300px; }
  .footer-inner { display: block; padding-block: 58px 32px; }
  .footer-inner > span { display: block; margin-top: 28px; }
  .lightbox { padding: 54px 18px 22px; border-radius: 18px; }
  .lightbox-nav { top: auto; bottom: 18px; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox figcaption { padding-inline: 44px; flex-direction: column; gap: 0; align-items: center; }
}

@media (max-width: 430px) {
  .header-note { font-size: 12px; letter-spacing: 0.04em; }
  .photo-stack { height: 1040px; }
  .photo-card { width: 58vw; }
  .photo-card:nth-child(2) { width: 72vw; left: 20%; }
  .photo-card:nth-child(3) { top: 23%; }
  .photo-card:nth-child(4) { top: 35%; }
  .photo-card:nth-child(5) { top: 46%; left: 20%; width: 72vw; }
  .photo-card:nth-child(6) { top: 63%; }
  .photo-card:nth-child(7) { top: 78%; width: 72vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
