@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --text-color: #cfd4df;
  --muted-color: #8c92a3;
  --accent-color: #3a6db0;
  --border-color: rgba(58, 109, 176, 0.45);
  --font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --photography-content-width: clamp(1040px, 78vw, 1240px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(118, 204, 170, 0.45) rgba(8, 14, 18, 0.65);
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: rgba(8, 14, 18, 0.65);
}

html::-webkit-scrollbar-thumb {
  background: rgba(118, 204, 170, 0.45);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 218, 184, 0.62);
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: #05060a;
}

html.mobile-notice-active,
html.mobile-notice-active body {
  overflow: hidden;
}

.mobile-notice {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3rem);
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1200;
}

.mobile-notice__card {
  width: min(420px, 100%);
  background: rgba(15, 22, 32, 0.92);
  border: 1px solid rgba(160, 188, 220, 0.35);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(4, 6, 12, 0.55);
  padding: clamp(1.6rem, 6vw, 2.2rem);
  display: grid;
  gap: clamp(0.9rem, 3vw, 1.2rem);
  text-align: center;
  color: #e9f0ff;
  font-family: var(--font-family);
}

.mobile-notice__title {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.mobile-notice__message {
  margin: 0;
  font-size: clamp(0.92rem, 3.8vw, 1rem);
  line-height: 1.6;
  color: rgba(224, 230, 246, 0.78);
}

.mobile-notice__button {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #061020;
  background: rgba(172, 206, 255, 0.92);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mobile-notice__button:hover,
.mobile-notice__button:focus {
  background: rgba(210, 231, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 16, 28, 0.35);
}

.mobile-notice__button:active {
  transform: translateY(0);
  box-shadow: none;
}

.about-page {
  align-items: stretch;
  color: #eaf0fb;
}

.about-page .resume-page {
  width: 100%;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(6rem, 16vh, 9rem) clamp(2rem, 6vw, 4rem) clamp(4rem, 12vh, 6rem);
}

.about-page .resume-shell {
  position: relative;
  width: min(1280px, 96vw);
  padding: clamp(2.8rem, 5vw, 3.8rem);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 13, 20, 0.42), rgba(8, 13, 20, 0.28));
  border: 1px solid rgba(168, 194, 220, 0.18);
  box-shadow: 0 24px 60px rgba(4, 8, 14, 0.42);
  backdrop-filter: blur(16px) saturate(135%);
}

.about-page .resume {
  display: grid;
  grid-template-columns: clamp(300px, 32vw, 360px) minmax(480px, 1fr);
  grid-auto-flow: row;
  align-items: start;
  column-gap: clamp(2.8rem, 5vw, 4.2rem);
  row-gap: clamp(1.6rem, 3.6vh, 2.6rem);
  margin: 0;
}

.about-page .resume__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(210, 218, 234, 0.78);
}

.about-page .resume__status--error {
  color: #ffb8b0;
  border: 1px solid rgba(255, 184, 176, 0.48);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  background: rgba(89, 32, 30, 0.35);
}

.about-page .resume__heading {
  margin: 0;
  letter-spacing: 0.08em;
}

.about-page .resume__heading--name {
  grid-column: 1 / -1;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 600;
  text-align: center;
  color: #f7f9ff;
}

.about-page .resume__section {
  display: grid;
  gap: 1rem;
  align-content: flex-start;
  padding-top: 1rem;
  border-top: 1px solid rgba(168, 194, 220, 0.18);
}

.about-page .resume__section:first-of-type {
  border-top: none;
}

.about-page .resume__heading--section {
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(198, 212, 236, 0.82);
}

.about-page .resume__heading--item {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(232, 236, 248, 0.9);
}

.about-page .resume__section--profile,
.about-page .resume__section--contact {
  grid-column: 1;
}

.about-page .resume__section--education,
.about-page .resume__section--research-and-projects,
.about-page .resume__section--certificates {
  grid-column: 2;
}

.about-page .resume__paragraph {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.64;
  color: rgba(224, 230, 244, 0.86);
}

.about-page .resume__list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  display: grid;
  gap: 0.5rem;
}

.about-page .resume__list-item {
  font-size: 0.94rem;
  color: rgba(214, 222, 242, 0.82);
}

.about-page .resume__list-item strong {
  color: #f1f4fc;
}

.about-page .resume__section--certificates .resume__list {
  gap: 0.4rem;
}

.about-page .resume__section--certificates .resume__list-item {
  line-height: 1.55;
}

.about-page .resume__list-item code,
.about-page .resume__paragraph code {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', 'Consolas', monospace;
  font-size: 0.86rem;
  background: rgba(32, 42, 60, 0.55);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
}

.about-page .resume__link {
  color: rgba(172, 206, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(172, 206, 255, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-page .resume__link:hover,
.about-page .resume__link:focus {
  color: rgba(210, 228, 255, 1);
  border-color: rgba(210, 228, 255, 0.7);
}

.about-page .resume__section--contact .resume__list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.about-page .resume__section--contact .resume__list-item {
  color: rgba(214, 222, 242, 0.9);
}

.about-page .resume__section--contact .resume__list-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.about-page .resume__section--profile {
  border-top: none;
  padding-top: 0;
}

.about-page .resume__section--profile .resume__list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.45rem;
}

.about-page .resume__section--profile .resume__list-item {
  color: rgba(214, 222, 242, 0.88);
}

.about-page .resume--error {
  grid-column: 1 / -1;
}


@media (max-width: 1024px) {
  .about-page .resume {
    grid-template-columns: 1fr;
  }

  .about-page .resume__section--education,
  .about-page .resume__section--research-and-projects,
  .about-page .resume__section--certificates,
  .about-page .resume__section--contact {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .about-page .resume-shell {
    padding: clamp(2.2rem, 8vw, 3rem);
  }

  .about-page .resume__heading--name {
    font-size: clamp(2.2rem, 8vw, 2.6rem);
  }

  .about-page .resume {
    column-gap: clamp(1.6rem, 5vw, 2rem);
    row-gap: clamp(1.4rem, 4vw, 2rem);
  }
}

.photography-page {
  position: relative;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 50% 40%, rgba(5, 8, 12, 0) 58%, rgba(5, 7, 10, 0.62) 100%),
    linear-gradient(rgba(5, 7, 10, 0.3), rgba(5, 7, 10, 0.3)),
    url('background/2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-color);
}

body.photography-page .background-layer {
  display: none !important;
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.9), rgba(5, 7, 10, 0));
}

.photography {
  display: flex;
  flex-direction: column;
}

.photography-hero {
  position: relative;
  min-height: 73vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3.6rem, 12vh, 5.8rem) clamp(2rem, 6vw, 4rem) clamp(0.8rem, 3vh, 1.4rem);
}

.photography-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.photography-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3.4rem, 6vw, 5.4rem);
  width: min(100%, var(--photography-content-width));
}

.photography-hero__portrait {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 32px 68px rgba(5, 7, 10, 0.6);
  max-width: clamp(320px, 30vw, 420px);
  transform: translateX(-8%);
  flex: 0 0 clamp(320px, 30vw, 420px);
}

.photography-hero__portrait img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.45) contrast(1.06);
}

.photography-hero__story {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  color: rgba(210, 222, 234, 0.88);
  justify-items: flex-start;
  flex: 1;
}

.photography-hero__title {
  margin: 0;
  font-family: 'DM Serif Text', serif;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: 0.04em;
  text-transform: none;
}

.photography-hero__line {
  margin: 0;
  font-family: 'IBM Plex Sans Condensed', 'Inter', sans-serif;
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  letter-spacing: 0.08em;
  line-height: 1.28;
  color: rgba(200, 212, 226, 0.82);
}

.photography-hero--animate .photography-hero__portrait {
  opacity: 0;
  transform: translateY(52px) scale(0.9);
  filter: saturate(0.24) contrast(0.88);
  transition:
    opacity 1.8s cubic-bezier(0.19, 1, 0.22, 1),
    transform 1.8s cubic-bezier(0.19, 1, 0.22, 1),
    filter 1.8s ease-out;
  transition-delay: 0.32s;
}

.photography-hero--animate .photography-hero__story {
  transition: transform 1s ease-out;
}

.photography-hero--animate .photography-hero__story > * {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.3s cubic-bezier(0.19, 1, 0.22, 1), transform 1.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.photography-hero--animate .photography-hero__story > *:nth-child(1) {
  transition-delay: 0.48s;
}

.photography-hero--animate .photography-hero__story > *:nth-child(2) {
  transition-delay: 0.66s;
}

.photography-hero--animate .photography-hero__story > *:nth-child(3) {
  transition-delay: 0.84s;
}

.photography-hero--animate .photography-hero__story > *:nth-child(4) {
  transition-delay: 1.02s;
}

.photography-hero--animate .photography-hero__story > *:nth-child(5) {
  transition-delay: 1.2s;
}

.photography-hero--animate .photography-hero__story > *:nth-child(6) {
  transition-delay: 1.38s;
}

.photography-hero--revealed .photography-hero__portrait {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(0.45) contrast(1.06);
}

.photography-hero--revealed .photography-hero__story > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .photography-hero--animate .photography-hero__portrait,
  .photography-hero--animate .photography-hero__story,
  .photography-hero--animate .photography-hero__story > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .photography-explore-trigger__button {
    animation: none !important;
    transform: none !important;
  }

  .photography-showcase__slide {
    transition: none !important;
  }

  .photography-showcase__detail-icon {
    animation: none !important;
  }

  .photography-gallery__item,
  .photography-gallery__item img {
    transition: none !important;
    transform: none !important;
  }
}





.photography-hero__note {
  position: absolute;
  bottom: clamp(2rem, 9vh, 3.4rem);
  margin: 0;
  max-width: min(540px, 72%);
  padding-inline: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(198, 216, 228, 0.54);
  text-align: center;
  z-index: 1;
}

@media (max-width: 940px) {
  .photography-hero__content {
    grid-template-columns: minmax(260px, 1fr);
    justify-items: center;
    text-align: center;
  }

  .photography-hero__story {
    max-width: 560px;
  }

  .photography-hero__portrait {
    max-width: 320px;
  }
}
.typewriter {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  letter-spacing: 0.12em;
  color: #ffffff;
  pointer-events: none;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.8s ease;
  line-height: 1.5;
}

.typewriter--hidden {
  opacity: 0;
}

.typewriter__text {
  display: block;
  margin: 0 auto;
  transition: opacity 0.6s ease;
}

.typewriter__text--hidden {
  opacity: 0;
}

.typewriter__text--intro {
  width: clamp(30ch, 40ch, 48ch);
  text-align: center;
  white-space: normal;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.typewriter__text--intro .typewriter__line + .typewriter__line {
  margin-top: clamp(1rem, 1.8vw, 1.4rem);
}

.typewriter__text--story {
  width: clamp(46ch, 66ch, 76ch);
  text-align: center;
  white-space: normal;
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  letter-spacing: 0.06em;
  line-height: 1.7;
  min-height: clamp(16em, 26vw, 20em);
}

.typewriter__text--story .typewriter__line + .typewriter__line {
  margin-top: clamp(0.55rem, 1.05vw, 0.85rem);
}

.typewriter__line {
  display: block;
  min-height: 2em;
}

.background-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.6s ease;
  opacity: 0;
  z-index: -2;
}

.background-layer.active {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus-visible {
  opacity: 0.85;
  transform: translateY(-1px);
}

.site-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 1.5rem 1.5rem;
  position: relative;
}

.site-header::after {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  position: relative;
}

.nav-link {
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--muted-color);
}

.site-nav:hover .nav-link.active:not(:hover) {
  color: var(--muted-color);
}

.nav-indicator {
  position: absolute;
  bottom: -0.35rem;
  height: 2px;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(58, 109, 176, 0) 0%,
    rgba(58, 109, 176, 0.65) 50%,
    rgba(58, 109, 176, 0) 100%
  );
  transition: transform 0.45s ease, width 0.45s ease, opacity 0.45s ease;
  opacity: 0;
  pointer-events: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-color);
}

.nav-link.active {
  color: var(--accent-color);
}




.music-widget {
  position: fixed;
  top: clamp(1.5rem, 4vw, 2.5rem);
  right: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 30;
  display: grid;
  justify-items: end;
  color: var(--text-color);
  font-family: 'Cormorant Garamond', 'Inter', 'PingFang SC', serif;
  --widget-accent: rgba(118, 204, 170, 0.68);
  --widget-accent-strong: rgba(138, 218, 184, 0.82);
  --widget-accent-soft: rgba(118, 204, 170, 0.18);
  --widget-border: rgba(118, 204, 170, 0.28);
  --widget-surface: rgba(14, 26, 24, 0.54);
  --widget-surface-hover: rgba(18, 32, 30, 0.62);
  --widget-shadow: rgba(6, 16, 14, 0.32);
}

.music-widget__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.35rem;
  border: none;
  background: transparent;
  color: rgba(132, 186, 168, 0.82);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.music-widget__toggle:hover,
.music-widget__toggle:focus-visible {
  transform: translateY(-2px);
  color: rgba(138, 218, 184, 0.96);
}

.music-widget__toggle:focus-visible {
  outline: 1px dotted rgba(138, 218, 184, 0.65);
  outline-offset: 2px;
}

.music-widget__panel {
  margin-top: 0.75rem;
  width: clamp(280px, 26vw, 320px);
  padding: 1.4rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(118, 204, 170, 0.18);
  background: var(--widget-surface);
  box-shadow: 0 20px 44px rgba(4, 12, 11, 0.38);
  display: grid;
  gap: 1rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.music-widget--open .music-widget__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.music-widget__header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.music-widget__meta {
  display: grid;
  gap: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.music-widget__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.music-widget__artist {
  font-size: 0.68rem;
  color: var(--muted-color);
}

.music-widget__controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.music-widget__btn {
  border: none;
  background: transparent;
  color: rgba(134, 190, 172, 0.82);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.music-widget__btn:hover,
.music-widget__btn:focus-visible {
  color: rgba(138, 218, 184, 0.96);
  transform: translateY(-1px);
}

.music-widget__btn:focus-visible {
  outline: 1px dotted rgba(138, 218, 184, 0.65);
  outline-offset: 2px;
}

.music-widget__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.music-widget__progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(118, 204, 170, 0.12);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.music-widget__progress-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--widget-accent-soft), var(--widget-accent-strong));
}

.music-widget__time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted-color);
}

.music-widget__playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: none;
  overflow-y: visible;
  display: grid;
  gap: 0.28rem;
}

.music-widget__track {
  padding: 0.32rem 0.52rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  background: rgba(16, 30, 28, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.music-widget__track:hover,
.music-widget__track:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(118, 204, 170, 0.55);
}

.music-widget__track--active {
  border-color: rgba(118, 204, 170, 0.85);
  background: rgba(118, 204, 170, 0.18);
}

.music-widget__track-title {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.music-widget__track-artist {
  font-size: 0.54rem;
  color: var(--muted-color);
}



.home-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 1rem);
  margin-top: auto;
  margin-bottom: clamp(3.5rem, 14vh, 3rem);
  padding: 0 clamp(1.4rem, 6vw, 3.6rem);
}

.home-footer__icons {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin: 0;
  padding: 0;
}

.home-footer__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: rgba(200, 220, 226, 0.68);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  padding: 0;
}

.home-footer__icon:hover,
.home-footer__icon:focus-visible {
  color: rgba(188, 236, 214, 0.9);
  transform: translateY(-1px);
}

.home-footer__icon:focus-visible {
  outline: 1px dotted rgba(188, 236, 214, 0.6);
  outline-offset: 3px;
}

.home-footer__svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  fill: none;
}

.home-footer__label {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(200, 220, 228, 0.42);
  transition: color 0.25s ease;
}

.home-footer__label--success {
  color: rgba(188, 236, 214, 0.78);
}

.home-footer__label--error {
  color: rgba(255, 178, 178, 0.7);
}

.home-footer__icon--copied {
  color: rgba(188, 236, 214, 0.9);
}

.home-footer__icon--error {
  color: rgba(255, 168, 168, 0.85);
}

.home-footer__icon--github .home-footer__svg {
  stroke: none;
  fill: currentColor;
}

.home-footer__icon--github .home-footer__svg path {
  stroke: none;
}

.home-footer__icon--netease .home-footer__svg path:first-of-type {
  stroke-linejoin: round;
}

.home-footer__icon--email .home-footer__svg rect {
  stroke-width: 1.4;
}

.home-footer__icon--email .home-footer__svg path {
  stroke-width: 1.35;
}

@media (max-width: 640px) {
  .home-footer {
    margin: auto auto clamp(3rem, 18vh, 5rem);
    gap: 0.9rem;
  }

  .home-footer__icons {
    gap: 1rem;
  }

  .home-footer__icon {
    width: 24px;
    height: 24px;
  }
}


.photography-explore-trigger {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 4vh, 1.6rem) 0 clamp(1.4rem, 5vh, 2rem);
}

.photography-explore-trigger__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: rgba(208, 220, 228, 0.75);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.4s ease;
  animation: photography-explore-breathe 4.2s ease-in-out infinite;
  transform-origin: center;
}

.photography-explore-trigger__label {
  margin: 0;
  font-family: 'Lovers Quarrel', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  text-transform: none;
  color: rgba(200, 214, 226, 0.6);
  transition: color 0.25s ease;
}

.photography-explore-trigger__icon {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photography-explore-trigger__button:hover,
.photography-explore-trigger__button:focus-visible {
  color: rgba(188, 236, 214, 0.86);
  transform: translateY(-4px) scale(1.04);
}

.photography-explore-trigger__button:focus-visible {
  outline: 1px dotted rgba(188, 236, 214, 0.6);
  outline-offset: 4px;
}

@keyframes photography-explore-breathe {
  0%,
  100% {
    transform: translateY(0) scale(0.98);
  }
  50% {
    transform: translateY(-6px) scale(1.06);
  }
}

.photography-explore {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  padding: clamp(4rem, 12vh, 6rem) clamp(1.6rem, 6vw, 3.2rem) clamp(3.4rem, 10vh, 5.2rem);
}

.photography-showcase {
  width: min(96vw, 1540px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 4vh, 2.2rem);
}

.photography-showcase__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: clamp(408px, 70vh, 858px);
  flex: 1 1 auto;
  border-radius: clamp(20px, 3.2vw, 26px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 246, 248, 0.92), rgba(236, 240, 244, 0.78));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(30, 36, 42, 0.08);
}

.photography-showcase__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04) translateY(12px);
  filter: saturate(0.9) contrast(0.98);
  transition:
    opacity 2.4s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 2.6s cubic-bezier(0.16, 0.84, 0.44, 1),
    filter 2.6s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition-delay: 0s;
}

.photography-showcase__slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.photography-showcase__slide--active {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: saturate(1) contrast(1.04);
  z-index: 1;
  transition-delay: 0.12s;
}

.photography-showcase__detail-button {
  margin-top: auto;
  margin-bottom: clamp(1.2rem, 3vh, 2.6rem);
  padding: 0.34rem 0.94rem 0.2rem;
  border: none;
  background: none;
  color: rgba(36, 40, 46, 0.7);
  font-family: 'Lovers Quarrel', cursive;
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  letter-spacing: 0.26em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.48rem, 2vh, 0.82rem);
  cursor: pointer;
  transition: color 0.35s ease, transform 0.35s ease;
}

.photography-showcase__detail-button:hover,
.photography-showcase__detail-button:focus-visible {
  color: rgba(18, 22, 26, 0.9);
  transform: translateY(-3px);
}

.photography-showcase__detail-button:focus-visible {
  outline: none;
}

.photography-showcase__detail-icon {
  font-size: clamp(0.88rem, 1.8vw, 1.18rem);
  line-height: 1;
  animation: photography-showcase-icon 3.4s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes photography-showcase-icon {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(7px);
    opacity: 0.9;
  }
}

.photography-gallery {
  position: relative;
  background: #fff;
  padding: clamp(3.2rem, 10vh, 5.4rem) clamp(1.2rem, 5vw, 2.8rem) clamp(3rem, 9vh, 4.6rem);
}

.photography-gallery__inner {
  width: min(94vw, 1500px);
  margin-inline: auto;
  min-height: 100vh;
}

.photography-gallery__grid {
  column-width: clamp(240px, 40vw, 420px);
  column-gap: clamp(1.2rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
}

.photography-gallery__series + .photography-gallery__series {
  margin-top: clamp(5rem, 15vh, 7.2rem);
}

.photography-gallery__item {
  break-inside: avoid;
  margin: 0 0 clamp(1.4rem, 5vh, 2.6rem);
  position: relative;
  transform-origin: center;
  will-change: transform;
  z-index: 0;
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1);
}

.photography-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  transform-origin: center;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  filter: saturate(0.72) contrast(0.9);
  transition:
    opacity 0.65s ease-out,
    transform 0.62s cubic-bezier(0.21, 0.91, 0.35, 1),
    filter 0.9s ease-out;
}

.photography-gallery__item img.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1) contrast(1);
}

.photography-gallery__item:hover,
.photography-gallery__item:focus-within {
  transform: scale(1.4);
  z-index: 3;
}

@media (max-width: 1200px) {
  .photography-gallery__grid {
    column-width: clamp(220px, 46vw, 380px);
  }
}

@media (max-width: 860px) {
  .photography-gallery__grid {
    column-width: clamp(200px, 62vw, 320px);
  }
}

@media (max-width: 600px) {
  .photography-gallery {
    padding-inline: clamp(1rem, 6vw, 2.2rem);
  }

  .photography-gallery__grid {
    column-width: clamp(160px, 76vw, 240px);
    column-gap: clamp(0.8rem, 5vw, 1.4rem);
  }
}

@media (max-width: 1024px) {
  .photography-showcase__viewport {
    height: clamp(320px, 68vh, 720px);
  }
}

@media (max-width: 768px) {
  .photography-showcase__viewport {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .photography-explore {
    padding-inline: clamp(1.2rem, 5vw, 2rem);
  }

  .photography-showcase {
    width: min(98vw, 760px);
    gap: clamp(0.9rem, 6vh, 1.6rem);
  }

  .photography-showcase__viewport {
    height: clamp(260px, 66vh, 520px);
    border-radius: clamp(18px, 6vw, 24px);
  }
}
