:root {
  --paper: #f4f8f9;
  --moon: #ffffff;
  --teal: #1a434e;
  --ink: #102e36;
  --mist: #78939a;
  --line: rgba(26, 67, 78, 0.18);
  --soft-line: rgba(26, 67, 78, 0.1);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.82), transparent 28rem),
    var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(26, 67, 78, 0.45);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--paper);
  transform: translateY(-180%);
}

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

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  display: flex;
  width: min(1600px, calc(100% - 4rem));
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  transform: translateX(-50%);
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand span {
  margin: 0 0.3rem;
  color: var(--mist);
  font-family: var(--sans);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  color: rgba(16, 46, 54, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

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

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

.hero {
  --hero-content-offset: calc(9rem + clamp(2rem, 6vw, 7rem));
  position: relative;
  display: grid;
  height: 100vh;
  min-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  width: min(1600px, calc(100% - 4rem));
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.88fr) minmax(390px, 1.12fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5.5rem);
  padding: clamp(5.5rem, 12vh, 8.5rem) 0 clamp(2.5rem, 7vh, 5rem);
  padding-left: var(--hero-content-offset);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero::before {
  position: absolute;
  top: 20%;
  left: -8rem;
  width: 24rem;
  height: 1px;
  background: var(--line);
  content: "";
  transform: rotate(-28deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.5rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  margin: 0 0.75rem 0.25rem 0;
  background: currentColor;
  content: "";
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  margin-bottom: 1.4rem;
  color: var(--teal);
  font-size: clamp(4.6rem, 10vw, 8.8rem);
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.hero-role {
  max-width: 36rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.55;
}

.hero-intro {
  max-width: 29rem;
  margin-bottom: 2.4rem;
  color: rgba(16, 46, 54, 0.68);
  font-size: 0.98rem;
  line-height: 2;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 3.2rem;
  padding: 0.75rem 1.25rem 0.75rem 1.35rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.button-primary {
  background: var(--teal);
  color: var(--paper);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
}

.button span {
  font-size: 1.15rem;
  line-height: 1;
}

.hero-art {
  /* 月亮整体大小：1 为原尺寸，1.25 为放大 125% */
  --moon-scale: 1.25;
  overflow: hidden;
  position: relative;
  z-index: 1;
  width: min(44vw, 68vh, 620px);
  width: min(44vw, 68svh, 620px);
  justify-self: end;
  aspect-ratio: 1;
}

.hero-art .mountain-backdrop,
.hero-art .moon-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-art .mountain-backdrop {
  z-index: 0;
  animation: mountain-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-art .moon-backdrop {
  z-index: 1;
  animation: moon-breathe 10s ease-in-out infinite;
  filter: drop-shadow(0 1.6rem 2.2rem rgba(16, 46, 54, 0.1));
  transform: scale(var(--moon-scale));
  transform-origin: top right;
  will-change: transform;
}

.art-caption {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 13%;
  margin: 0;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  line-height: 1.8;
  writing-mode: vertical-rl;
}

@keyframes moon-breathe {
  0%,
  100% {
    transform: scale(var(--moon-scale));
  }

  50% {
    transform: scale(calc(var(--moon-scale) * 1.015));
  }
}

@keyframes mountain-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-0.35rem, 0, 0);
  }
}

.art-caption span {
  color: var(--mist);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.scroll-cue {
  position: absolute;
  bottom: 2.6rem;
  left: var(--hero-content-offset);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(16, 46, 54, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 3.2rem;
  background: var(--teal);
}

.section {
  display: grid;
  height: 100vh;
  min-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  width: min(1600px, calc(100% - 4rem));
  margin: 0 auto;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(3rem, 8vh, 8.5rem) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--mist);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.section-label span:first-child {
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.section-content {
  max-width: none;
}

.section-content h2 {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  color: var(--teal);
  font-size: clamp(3rem, 6vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 1.12;
}

h2 em {
  color: var(--ink);
  font-style: normal;
}

.about-body {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
  gap: 4rem;
}

.about-body p {
  margin-bottom: 0;
  color: rgba(16, 46, 54, 0.78);
  font-size: 1.03rem;
  line-height: 2.05;
}

.about-body .about-note {
  align-self: start;
  color: var(--mist);
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.8;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-aside {
  margin-bottom: 0.7rem;
  color: var(--mist);
  font-size: 0.86rem;
  line-height: 1.8;
  text-align: right;
}

.project-grid {
  display: grid;
  margin-top: clamp(2.25rem, 5vh, 5.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  position: relative;
  min-height: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.project-card:hover {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1rem 2.4rem rgba(16, 46, 54, 0.08);
  transform: translateY(-5px);
}

.project-card-featured {
  background: var(--teal);
  color: var(--paper);
}

.project-card-featured:hover {
  background: var(--ink);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 5vh, 4.8rem);
}

.project-index {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.status span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-active span {
  background: #b3d6c0;
}

.status-planned span {
  background: var(--mist);
}

.project-card h3 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.project-card p {
  max-width: 23rem;
  margin-bottom: 1.6rem;
  color: rgba(16, 46, 54, 0.68);
  font-size: 0.88rem;
  line-height: 1.85;
}

.project-card-featured p {
  color: rgba(244, 248, 249, 0.72);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--mist);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card-featured .project-tags {
  color: rgba(244, 248, 249, 0.58);
}

.project-tags span + span::before {
  margin-right: 0.45rem;
  content: "／";
}

.project-arrow {
  position: absolute;
  right: 1.5rem;
  bottom: 1.35rem;
  font-size: 1.5rem;
  line-height: 1;
}

.contact {
  position: relative;
  padding-bottom: clamp(4rem, 9vh, 7rem);
}

.contact-content h2 {
  margin-bottom: 1.5rem;
}

.contact-intro {
  max-width: 24rem;
  margin-bottom: 2.2rem;
  color: rgba(16, 46, 54, 0.7);
  font-size: 0.96rem;
  line-height: 1.9;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--teal);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  text-decoration: none;
}

.email-link span {
  font-family: var(--sans);
  font-size: 1.25rem;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--ink);
}

.copy-button {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  transition: border-color 220ms ease, color 220ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.copy-status {
  color: var(--mist);
  font-size: 0.7rem;
}

.site-footer {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.js .site-header[data-reveal] {
  transform: translate(-50%, 18px);
  transition-delay: 80ms;
}

.js .site-header[data-reveal].is-visible {
  transform: translate(-50%, 0);
}

.js .hero-copy > :nth-child(1)[data-reveal] {
  transition-delay: 160ms;
}

.js .hero-copy > :nth-child(2)[data-reveal] {
  transition-delay: 260ms;
}

.js .hero-copy > :nth-child(3)[data-reveal] {
  transition-delay: 360ms;
}

.js .hero-copy > :nth-child(4)[data-reveal] {
  transition-delay: 460ms;
}

.js .hero-copy > :nth-child(5)[data-reveal] {
  transition-delay: 560ms;
}

.js .hero-art[data-reveal] {
  transition-delay: 300ms;
}

.js .scroll-cue[data-reveal] {
  transition-delay: 760ms;
}

.js .section-label[data-reveal] {
  transition-delay: 100ms;
}

.js .section-content[data-reveal] {
  transition-delay: 220ms;
}

.js .project-grid .project-card[data-reveal] {
  transition-delay: 360ms;
}

.js .project-grid .project-card:nth-child(2)[data-reveal] {
  transition-delay: 500ms;
}

.js .button-primary[data-reveal]:hover,
.js .button-primary[data-reveal]:focus-visible {
  transform: translateY(-3px);
}

.js .project-card[data-reveal]:hover,
.js .project-card[data-reveal]:focus-within {
  transform: translateY(-5px);
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 2.5rem, 620px);
  }

  .site-header {
    padding-top: 1.35rem;
  }

  .hero {
    height: 100vh;
    min-height: 100vh;
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 7.2rem;
    padding-bottom: 3rem;
    padding-left: 0;
  }

  .hero-art {
    width: min(100%, 44svh, 510px);
    height: auto;
    margin: -2rem auto 0;
    opacity: 0.96;
    order: -1;
  }

  .hero-copy {
    margin-top: -2.5rem;
  }

  .hero::before {
    top: 13%;
    left: -10rem;
  }

  .scroll-cue {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.4rem;
    writing-mode: horizontal-tb;
  }

  .scroll-line {
    width: 2.4rem;
    height: 1px;
  }

  .section {
    height: 100vh;
    min-height: 100vh;
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1.3rem;
    padding: clamp(3rem, 7vh, 5.8rem) 0;
  }

  .section-label {
    gap: 0.65rem;
  }

  .section-content h2 {
    margin-bottom: 2.4rem;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-heading-row {
    display: block;
  }

  .section-aside {
    margin-top: 1.7rem;
    text-align: left;
  }

  .project-grid {
    margin-top: clamp(2rem, 4vh, 3.2rem);
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
    padding: 1rem;
  }

  .project-topline {
    margin-bottom: clamp(1.35rem, 3vh, 2.25rem);
  }

  .contact {
    min-height: 100vh;
    min-height: 100svh;
  }

  .site-footer {
    display: block;
    width: 100%;
    line-height: 2;
  }

  .site-footer span {
    display: block;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 2rem, 620px);
  }

  .site-nav {
    gap: 0.85rem;
    font-size: 0.72rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-art {
    width: 100%;
    margin-left: 0;
  }

  .art-caption {
    right: 5%;
    bottom: 17%;
  }

  h1 {
    font-size: clamp(4rem, 19vw, 5.5rem);
  }

  .hero-role {
    font-size: 1.2rem;
  }

  .hero-intro {
    font-size: 0.91rem;
  }

  .section {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .section-label {
    font-size: 0.6rem;
  }

  .section-content h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .section {
    padding: clamp(2rem, 5vh, 4rem) 0;
  }

  .section-content h2 {
    margin-bottom: 1.25rem;
  }

  .section-aside {
    margin-top: 1rem;
  }

  .project-grid {
    margin-top: clamp(1.25rem, 3vh, 2rem);
  }

  .project-topline {
    margin-bottom: clamp(1rem, 2vh, 1.35rem);
  }

  .project-card {
    padding: 1rem;
  }

  .project-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.75rem;
  }

  .project-card p {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .email-link {
    font-size: 1.03rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
