:root {
  --paper: #f8f3ea;
  --ink: #1f211c;
  --muted: #706f68;
  --line: #ddd3c4;
  --sage: #66705d;
  --clay: #a76f4f;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(31, 33, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-bottom: 76px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.topbar.is-scrolled {
  background: rgba(248, 243, 234, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(31, 33, 28, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 0.92;
}

.topbar-note {
  display: grid;
  justify-items: end;
  gap: 1px;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.topbar-note small {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0.18), rgba(16, 18, 15, 0.78)),
    linear-gradient(90deg, rgba(16, 18, 15, 0.48), transparent 65%);
}

.cover > img {
  position: absolute;
  inset: 0;
}

.cover-copy {
  position: relative;
  z-index: 1;
  padding: 0 20px 92px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Noto Serif SC", "Songti SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 16vw, 5.6rem);
  line-height: 0.98;
}

.cover-title-en {
  max-width: 34rem;
  margin: 14px 0 0;
  color: rgba(255, 253, 248, 0.68);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.cover-intro {
  display: grid;
  gap: 10px;
  max-width: 36rem;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: 1rem;
}

.cover-intro small {
  max-width: 42rem;
  color: rgba(255, 253, 248, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.primary-link {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 46px;
  margin-top: 28px;
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(255, 253, 248, 0.12);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.primary-link span,
.primary-link small {
  line-height: 1.25;
}

.primary-link small {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.68;
}

.section {
  padding: 62px 18px;
}

.work {
  overflow: hidden;
  background: #161815;
  color: var(--white);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2.4rem, 12vw, 4.6rem);
  line-height: 1;
}

.work-grid {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.work-filters {
  display: flex;
  gap: 28px;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.work-filters button {
  position: relative;
  display: grid;
  gap: 1px;
  border: 0;
  padding: 0 0 12px;
  background: transparent;
  color: rgba(255, 253, 248, 0.52);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-filters button::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  content: "";
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.work-filters button.is-active {
  color: var(--white);
}

.work-filters button.is-active::after {
  transform: scaleX(1);
}

.work-filters span {
  font-size: 0.92rem;
}

.work-filters small {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.68;
}

.work-subfilters {
  display: flex;
  gap: 8px;
  margin: -8px 0 24px;
}

.work-subfilters[hidden] {
  display: none;
}

.work-subfilters button {
  display: grid;
  min-width: 104px;
  gap: 0;
  border: 1px solid rgba(255, 253, 248, 0.22);
  padding: 9px 14px;
  background: transparent;
  color: rgba(255, 253, 248, 0.56);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.work-subfilters button.is-active {
  border-color: rgba(255, 253, 248, 0.76);
  background: rgba(255, 253, 248, 0.08);
  color: var(--white);
}

.work-subfilters span {
  font-size: 0.8rem;
}

.work-subfilters small {
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.62;
}

.work-card[hidden] {
  display: none;
}

.portrait-collection {
  display: grid;
  gap: 64px;
}

.portrait-collection[hidden] {
  display: none;
}

.portrait-project {
  display: grid;
  gap: 16px;
}

.portrait-project-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.portrait-project-header h3 {
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.portrait-project-header span {
  color: rgba(255, 253, 248, 0.5);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portrait-wall {
  columns: 2;
  column-gap: 8px;
}

.portrait-wall figure {
  margin: 0 0 8px;
  break-inside: avoid;
  background: #222;
  cursor: zoom-in;
}

.portrait-wall img {
  height: auto;
  object-fit: contain;
}

.portrait-wall figure:focus-visible {
  outline: 2px solid rgba(255, 253, 248, 0.9);
  outline-offset: 4px;
}

.work-empty {
  display: grid;
  gap: 4px;
  min-height: 240px;
  margin: 0;
  place-content: center;
  color: rgba(255, 253, 248, 0.68);
  text-align: center;
}

.work-empty[hidden] {
  display: none;
}

.work-empty small {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.58;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  background: #222;
}

.work-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(10, 11, 9, 0.22);
  transition: background 180ms ease;
}

.work-card:hover::after,
.work-card:focus-visible::after {
  background: rgba(10, 11, 9, 0.38);
}

.work-card img {
  transition: transform 420ms ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.035);
}

.work-card div {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--white);
  text-align: center;
}

.work-card span {
  display: block;
  color: var(--white);
  font-size: clamp(1.1rem, 6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.album-body {
  padding-bottom: 0;
  background: #111310;
  color: var(--white);
}

.album-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: rgba(17, 19, 16, 0.9);
  backdrop-filter: blur(16px);
}

.album-header a,
.album-header span {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.album-page {
  padding: 48px 18px 72px;
}

.album-hero {
  padding-bottom: 34px;
}

.album-hero h1 {
  max-width: none;
  font-size: clamp(4rem, 18vw, 8rem);
}

.album-hero p:last-child {
  margin: 12px 0 0;
  color: rgba(255, 253, 248, 0.54);
}

.album-grid {
  columns: 2;
  column-gap: 8px;
}

.album-photo {
  min-width: 0;
  margin: 0 0 8px;
  break-inside: avoid;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
}

.album-photo img {
  height: auto;
  object-fit: contain;
  background: #111;
  transition: transform 420ms ease;
}

.album-photo:hover img {
  transform: scale(1.015);
}

.album-photo:focus-visible {
  outline: 2px solid rgba(255, 253, 248, 0.9);
  outline-offset: 4px;
}

body.is-lightbox-open {
  overflow: hidden;
}

.album-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 48px 54px;
  background: rgba(5, 6, 5, 0.94);
  backdrop-filter: blur(10px);
  touch-action: pan-y;
}

.album-lightbox[hidden] {
  display: none;
}

.album-lightbox-image {
  width: auto;
  max-width: min(82vw, 1500px);
  height: auto;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  background: transparent;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  user-select: none;
}

.album-lightbox button {
  position: fixed;
  z-index: 1;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.album-lightbox button:hover,
.album-lightbox button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.album-lightbox-close {
  top: 16px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
}

.album-lightbox-arrow {
  top: 50%;
  width: 58px;
  height: 92px;
  border-radius: 2px;
  font-size: 3.4rem;
  font-weight: 200;
  line-height: 1;
  transform: translateY(-50%);
}

.album-lightbox-previous {
  left: 12px;
}

.album-lightbox-next {
  right: 12px;
}

.album-lightbox-counter {
  position: fixed;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

@media (max-width: 719px) {
  .album-lightbox {
    padding: 52px 12px;
  }

  .album-lightbox-image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 104px);
  }

  .album-lightbox-arrow {
    top: auto;
    bottom: 12px;
    width: 56px;
    height: 48px;
    font-size: 2.6rem;
    transform: none;
  }

  .album-lightbox-previous {
    left: calc(50% - 68px);
  }

  .album-lightbox-next {
    right: calc(50% - 68px);
  }

  .album-lightbox-counter {
    right: 12px;
    bottom: 26px;
  }
}

.album-row {
  display: flex;
  margin-inline: auto;
  max-width: 100%;
  overflow: hidden;
}

.album-module {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.album-module--wide {
  width: min(100%, 1080px);
  height: clamp(360px, 42vw, 520px);
  margin-inline: auto;
}

.album-module--wide-portraits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(260px, 1.15fr) minmax(300px, 1fr);
  height: clamp(650px, 68vw, 820px);
}

.album-module--wide-portraits .album-photo--1 {
  grid-column: 1 / -1;
}

.album-module--five-center {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(560px, 55vw, 700px);
}

.album-module--five-center .album-photo--3 {
  grid-column: 2;
  grid-row: 1 / 3;
}

.album-module--portrait-stack-left,
.album-module--portrait-stack-right {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.55fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(500px, 50vw, 640px);
}

.album-module--portrait-stack-left .album-photo--1,
.album-module--portrait-stack-right .album-photo--1 {
  grid-row: 1 / 3;
}

.album-module--portrait-stack-right {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.05fr);
}

.album-module--portrait-stack-right .album-photo--1 {
  grid-column: 2;
}

.album-module--portrait-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: clamp(460px, 48vw, 610px);
}

.album-module--landscape-trio {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(500px, 52vw, 650px);
}

.album-module--landscape-trio .album-photo--1 {
  grid-column: 1 / -1;
}

.album-module--landscape-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: clamp(300px, 31vw, 390px);
}

.album-module--portrait-pair {
  width: min(82%, 940px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: clamp(430px, 45vw, 570px);
  margin-inline: auto;
}

.album-module--portrait-single {
  width: min(48%, 500px);
  height: clamp(500px, 56vw, 680px);
  margin-inline: auto;
}

.about,
.contact {
  border-top: 1px solid var(--line);
}

.about p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.bilingual-copy {
  display: grid;
  gap: 18px;
  max-width: 54rem;
}

.bilingual-copy p[lang="en"] {
  max-width: 49rem;
  color: #8b887f;
  font-size: 0.75rem;
  letter-spacing: 0.035em;
  line-height: 1.75;
}

.about-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  display: grid;
  gap: 5px;
  padding: 14px 0 14px 16px;
  border-left: 3px solid var(--sage);
  color: #464840;
}

.about-list small {
  color: #89877f;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.contact {
  min-height: 74svh;
  display: grid;
  align-content: center;
  background:
    linear-gradient(rgba(248, 243, 234, 0.88), rgba(248, 243, 234, 0.88)),
    url("https://images.unsplash.com/photo-1493246507139-91e8fad9978e?auto=format&fit=crop&w=1600&q=86")
      center / cover;
}

.contact-location {
  display: grid;
  gap: 2px;
  margin-top: 20px !important;
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem !important;
}

.contact-location small {
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 32px;
}

.contact-links a,
.contact-links span {
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 6vw, 2rem);
  line-height: 1.18;
}

.contact-links span {
  cursor: default;
  opacity: 0.48;
}

.mobile-nav {
  position: fixed;
  inset: auto 14px 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-height: 56px;
  border: 1px solid rgba(31, 33, 28, 0.1);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 42px rgba(31, 33, 28, 0.16);
  backdrop-filter: blur(18px);
}

.mobile-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.2;
}

.mobile-nav small {
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.62;
}

.mobile-nav a.is-active {
  background: var(--ink);
  color: var(--white);
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .topbar {
    padding: 22px 42px;
  }

  .cover-copy {
    padding: 0 42px 110px;
  }

  h1 {
    max-width: 13ch;
  }

  .section {
    padding: 90px 42px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .portrait-collection {
    gap: 96px;
  }

  .portrait-project {
    gap: 22px;
  }

  .portrait-wall {
    columns: 3;
    column-gap: 12px;
  }

  .portrait-wall figure {
    margin-bottom: 12px;
  }

  .album-page {
    width: min(100%, 1260px);
    margin-inline: auto;
    padding: 72px 42px 100px;
  }

  .album-grid {
    columns: 3;
    column-gap: 12px;
  }

  .work-card {
    min-height: 430px;
  }

  .mobile-nav {
    display: none;
  }
}
