:root {
  --ink: #15110e;
  --ink-2: #2c2119;
  --muted: #766255;
  --muted-2: #9a8374;
  --paper: #fff8f1;
  --card: #fffdf9;
  --line: #efd9c6;
  --orange: #f3a15d;
  --orange-2: #ffbf7f;
  --orange-soft: #ffe3c7;
  --orange-pale: #fff0df;
  --cream: #fffaf5;
  --shadow: rgba(123, 76, 39, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 198, 136, .62), transparent 29%),
    radial-gradient(circle at 92% 8%, rgba(255, 227, 199, .88), transparent 36%),
    linear-gradient(180deg, #fff7ee 0%, #fffbf7 42%, #fff5eb 100%);
  overflow-x: hidden;
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.ambient-one {
  width: 26rem;
  height: 26rem;
  left: -9rem;
  top: 10rem;
  background: rgba(255, 186, 120, .22);
}

.ambient-two {
  width: 22rem;
  height: 22rem;
  right: -7rem;
  top: 28rem;
  background: rgba(255, 220, 186, .52);
}

.nav {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(239, 217, 198, .72);
  border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(120, 74, 38, .08);
}

.brand {
  font-weight: 950;
  letter-spacing: -.03em;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-links a:hover {
  background: var(--orange-pale);
  color: #9a511b;
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--ink);
  color: white !important;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
  padding: 40px 0 74px;
}

.eyebrow,
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #9b5420;
  font-size: 13px;
  font-weight: 850;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 20px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(64px, 9vw, 122px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.065em;
}

.intro {
  max-width: 590px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 14px 36px rgba(120, 74, 38, .09);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(120, 74, 38, .14);
}

.button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, .62);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
  max-width: 640px;
}

.fact-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .64);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.fact-card strong {
  display: block;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: -.04em;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 235, 215, .78)),
    radial-gradient(circle at 50% 30%, #ffd19d, transparent 48%);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 34px 100px rgba(120, 74, 38, .16);
}

.photo-main,
.photo-tile,
.work-photo,
.feature-photo,
.gallery-item {
  background-size: cover;
  background-position: center;
}

.photo-main {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 298px;
  height: 390px;
  border-radius: 175px 175px 46px 46px;
  background:
    linear-gradient(160deg, rgba(255, 201, 143, .72), rgba(255, 241, 228, .92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 8px, transparent 8px 18px);
  border: 12px solid white;
  box-shadow: 0 28px 70px rgba(120, 74, 38, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a45a22;
  font-size: 36px;
  font-weight: 950;
  text-align: center;
}

.photo-tile {
  position: absolute;
  border-radius: 28px;
  border: 8px solid white;
  background:
    linear-gradient(145deg, rgba(255, 230, 206, .88), rgba(255, 250, 245, .94)),
    radial-gradient(circle at 40% 40%, rgba(243, 161, 93, .35), transparent 44%);
  box-shadow: 0 18px 56px rgba(120, 74, 38, .16);
  color: #b36a2b;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.45;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tile-one {
  width: 150px;
  height: 138px;
  left: 38px;
  top: 50px;
  transform: rotate(-7deg);
}

.tile-two {
  width: 176px;
  height: 124px;
  right: 34px;
  top: 74px;
  transform: rotate(5deg);
}

.tile-three {
  width: 156px;
  height: 156px;
  left: 50px;
  bottom: 82px;
  transform: rotate(6deg);
}

.tile-four {
  width: 162px;
  height: 130px;
  right: 44px;
  bottom: 70px;
  transform: rotate(-5deg);
}

.caption-strip {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}

.caption-strip span {
  flex: 1;
  padding: 12px;
  border-radius: 18px;
  background: white;
  color: var(--muted);
  font-size: 12px;
}

.caption-strip strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 2px;
}

.section {
  padding: 78px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head h2,
.contact h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.055em;
}

.section-head p,
.contact p {
  margin: 0;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.72;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  box-shadow: 0 18px 60px rgba(120, 74, 38, .08);
  overflow: hidden;
}

.panel.dark {
  background: var(--ink);
  color: white;
  border-color: #3f2b1d;
}

.panel h3 {
  margin: 18px 0 12px;
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

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

.panel.dark p {
  color: #f0d6c2;
}

.panel.dark .label {
  background: #382418;
  color: #ffc78d;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.mini-list div {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  color: #f1d8c6;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  box-shadow: 0 18px 60px rgba(120, 74, 38, .08);
}

.experience-card,
.project-card {
  display: grid;
  grid-template-columns: 186px 1fr;
  gap: 18px;
  min-height: 250px;
  padding: 18px;
}

.work-photo {
  min-height: 100%;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 230, 206, .9), rgba(255, 250, 245, .96)),
    radial-gradient(circle at 36% 34%, rgba(243, 161, 93, .42), transparent 46%);
  border: 1px solid #f3dcc8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b36a2b;
  font-weight: 900;
  text-align: center;
  padding: 18px;
  line-height: 1.45;
}

.card h3 {
  margin: 12px 0 10px;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.period {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--orange-pale);
  color: #9b5420;
  font-size: 12px;
  font-weight: 760;
}

.writing-card {
  min-height: 230px;
  padding: 24px;
}

.writing-card a {
  display: inline-flex;
  margin-top: 18px;
  color: #9b5420;
  font-weight: 850;
}

.feature-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
  align-items: stretch;
}

.feature-photo {
  min-height: 460px;
  border-radius: 36px;
  border: 10px solid white;
  background:
    linear-gradient(145deg, rgba(255, 215, 170, .9), rgba(255, 250, 245, .96)),
    radial-gradient(circle at 45% 42%, rgba(243, 161, 93, .38), transparent 48%);
  box-shadow: 0 20px 70px rgba(120, 74, 38, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b36a2b;
  font-weight: 950;
  text-align: center;
  line-height: 1.5;
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.time-card {
  padding: 22px;
  min-height: 186px;
  border-radius: 30px;
  background: #18120e;
  color: white;
  border: 1px solid #3f2b1d;
}

.time-card strong {
  display: block;
  color: #ffc78d;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 12px;
}

.time-card p {
  margin: 0;
  color: #efd8c3;
  line-height: 1.55;
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1fr;
  grid-auto-rows: 190px;
  gap: 16px;
}

.gallery-item {
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 225, 196, .9), rgba(255, 250, 245, .96)),
    radial-gradient(circle at 50% 40%, rgba(243, 161, 93, .34), transparent 42%);
  border: 8px solid white;
  box-shadow: 0 18px 60px rgba(120, 74, 38, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b36a2b;
  font-weight: 900;
  text-align: center;
  padding: 16px;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
}

.gallery-item:nth-child(2) {
  grid-row: span 2;
}

.contact {
  margin-bottom: 34px;
  padding: 36px;
  border-radius: 40px;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.contact p {
  color: #efd8c3;
  margin-top: 10px;
}

.contact .label {
  background: #382418;
  color: #ffc78d;
}

.contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wechat {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #251b15;
  color: #efd8c3;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (max-width: 900px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .menu-button {
    display: inline-flex;
  }

  .nav {
    align-items: flex-start;
    border-radius: 26px;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 62px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 253, 249, .96);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .hero,
  .about-grid,
  .card-grid.two,
  .card-grid.three,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(62px, 20vw, 94px);
  }

  .quick-facts,
  .timeline,
  .gallery {
    grid-template-columns: 1fr;
  }

  .experience-card,
  .project-card {
    grid-template-columns: 1fr;
  }

  .work-photo {
    min-height: 180px;
  }

  .section-head,
  .contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .caption-strip {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
