:root {
  --paper: #f6f0e6;
  --paper-soft: #fbf8f2;
  --ink: #161513;
  --muted: #766f64;
  --line: rgba(22, 21, 19, 0.16);
  --wine: #5a1f35;
  --moss: #52624d;
  --gold: #b68a4a;
  --night: #111012;
  --white: #fffdf8;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(17, 16, 18, 0.64), rgba(17, 16, 18, 0));
  transition: background 420ms var(--ease), backdrop-filter 420ms var(--ease), padding 420ms var(--ease);
}

.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(17, 16, 18, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 2px;
  font-weight: 700;
}

.brand small {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 253, 248, 0.72);
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: end;
  padding: 132px clamp(20px, 5vw, 72px) 48px;
  color: var(--white);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1200ms var(--ease);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(17, 16, 18, 0.86), rgba(17, 16, 18, 0.56) 38%, rgba(17, 16, 18, 0.16)),
    linear-gradient(0deg, rgba(17, 16, 18, 0.74), rgba(17, 16, 18, 0.04) 45%);
}

.hero-slices {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  opacity: 0.38;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-slices span {
  min-width: 0;
  background-image: url("assets/gallery-light.png");
  background-size: 520% 100%;
  filter: saturate(0.9) contrast(1.08);
  transform: translateY(calc(var(--scroll, 0) * -0.018px));
  animation: sliceDrift 8s ease-in-out infinite;
}

.hero-slices span:nth-child(1) {
  background-position: 0% 50%;
  animation-delay: -1s;
}

.hero-slices span:nth-child(2) {
  background-position: 25% 50%;
  animation-delay: -3s;
}

.hero-slices span:nth-child(3) {
  background-position: 50% 50%;
  animation-delay: -5s;
}

.hero-slices span:nth-child(4) {
  background-position: 75% 50%;
  animation-delay: -2s;
}

.hero-slices span:nth-child(5) {
  background-position: 100% 50%;
  animation-delay: -4s;
}

@keyframes sliceDrift {
  0%, 100% {
    clip-path: inset(4% 14% 8% 0);
    opacity: 0.22;
  }
  50% {
    clip-path: inset(0 4% 4% 8%);
    opacity: 0.46;
  }
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
  padding-bottom: 56px;
  transform: translateY(calc(var(--scroll, 0) * 0.05px));
}

.ambient-orbit {
  position: absolute;
  z-index: 1;
  right: 8vw;
  bottom: 11vh;
  width: 34vw;
  max-width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 50%;
  opacity: 0.42;
  animation: orbitPulse 9s ease-in-out infinite;
  pointer-events: none;
}

.ambient-orbit::before,
.ambient-orbit::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(182, 138, 74, 0.34);
  border-radius: 50%;
}

.ambient-orbit::after {
  inset: 35%;
  background: rgba(255, 253, 248, 0.08);
  filter: blur(8px);
}

@keyframes orbitPulse {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-16px, -10px, 0) scale(1.05);
  }
}

.eyebrow,
.intro-band > p,
.section-heading p,
.site-footer p {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1,
h2,
blockquote {
  font-family: "STSong", "Songti SC", "SimSun", Georgia, serif;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.94;
  font-weight: 700;
}

.lead {
  max-width: 670px;
  margin-bottom: 32px;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 253, 248, 0.32);
  font-size: 13px;
  font-weight: 700;
  transition: transform 260ms var(--ease), background 260ms var(--ease), border-color 260ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

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

.button.ghost {
  color: var(--white);
  backdrop-filter: blur(12px);
}

.hero-panel {
  margin-left: auto;
  padding: 22px;
  max-width: 390px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  background: rgba(17, 16, 18, 0.44);
  backdrop-filter: blur(22px);
}

.hero-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-panel p {
  color: rgba(255, 253, 248, 0.74);
  line-height: 1.6;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 248, 0.2);
}

.metric-row b {
  display: block;
  font-size: 24px;
}

.metric-row small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 253, 248, 0.62);
  line-height: 1.35;
}

.intro-band,
.section,
.quote-band,
.site-footer {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.intro-band {
  background: var(--paper-soft);
}

.intro-band h2 {
  max-width: 1050px;
  margin-bottom: 46px;
  font-size: clamp(31px, 5vw, 64px);
  line-height: 1.18;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.practice-grid article {
  min-height: 270px;
  padding: 28px;
  background: var(--paper-soft);
  transition: background 360ms var(--ease), transform 360ms var(--ease);
}

.practice-grid article:hover {
  background: #fffaf0;
  transform: translateY(-4px);
}

.practice-grid span,
.project-meta,
.timeline time {
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.practice-grid h3,
.project h3,
.timeline h3 {
  margin: 24px 0 12px;
  font-size: 22px;
}

.practice-grid p,
.project p,
.timeline p,
.site-footer address {
  color: var(--muted);
  line-height: 1.72;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 55px);
  line-height: 1.2;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.project {
  min-height: 275px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.54);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), background 360ms var(--ease);
}

.project:hover {
  transform: translateY(-6px);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 24px 60px rgba(22, 21, 19, 0.12);
}

.project.feature {
  grid-row: span 2;
  min-height: 568px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(0deg, rgba(90, 31, 53, 0.92), rgba(90, 31, 53, 0.7)),
    url("assets/gallery-light.png") center / cover;
  color: var(--white);
}

.project.feature:hover {
  background:
    linear-gradient(0deg, rgba(90, 31, 53, 0.86), rgba(90, 31, 53, 0.62)),
    url("assets/gallery-light.png") center / cover;
}

.project.feature .project-meta,
.project.feature p {
  color: rgba(255, 253, 248, 0.78);
}

.project.feature h3 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
}

.project ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.project li {
  padding: 8px 10px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  color: rgba(255, 253, 248, 0.86);
  font-size: 12px;
}

.quote-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: end;
  color: var(--white);
  background: var(--night);
}

.fragment-section {
  position: relative;
  padding: clamp(58px, 8vw, 104px) 0 clamp(62px, 9vw, 118px);
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.fragment-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 18, 0.96), rgba(17, 16, 18, 0.42), rgba(17, 16, 18, 0.9)),
    url("assets/gallery-light.png") center / cover;
  opacity: 0.36;
  transform: scale(1.06);
}

.fragment-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.55fr minmax(0, 1.45fr);
  gap: 30px;
  align-items: end;
  padding: 0 clamp(20px, 5vw, 72px) 34px;
}

.fragment-heading p {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.fragment-heading h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.12;
}

.fragment-shell {
  position: relative;
  z-index: 1;
}

.fragment-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 24vw);
  gap: 14px;
  min-height: 520px;
  padding: 8px clamp(20px, 5vw, 72px) 22px;
  overflow-x: auto;
  cursor: grab;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fragment-rail::-webkit-scrollbar {
  display: none;
}

.fragment-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.fragment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 500px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.2);
  background-image: url("assets/gallery-light.png");
  background-size: 620% 100%;
  scroll-snap-align: center;
  transition: transform 400ms var(--ease), border-color 400ms var(--ease), filter 400ms var(--ease);
}

.fragment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(17, 16, 18, 0.86), rgba(17, 16, 18, 0.08) 62%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.08), rgba(255, 253, 248, 0));
  transition: opacity 360ms var(--ease);
}

.fragment-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

.fragment-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 253, 248, 0.5);
  filter: saturate(1.08);
}

.fragment-card:hover::before {
  opacity: 0.78;
}

.fragment-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.fragment-card span,
.fragment-card h3 {
  position: relative;
  z-index: 1;
}

.fragment-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.fragment-card h3 {
  max-width: 9ch;
  margin: 10px 0 0;
  font-family: "STSong", "Songti SC", "SimSun", Georgia, serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.98;
}

.fragment-one { background-position: 0% 50%; }
.fragment-two { background-position: 18% 50%; }
.fragment-three { background-position: 39% 50%; }
.fragment-four { background-position: 58% 50%; }
.fragment-five { background-position: 78% 50%; }
.fragment-six { background-position: 100% 50%; }

.rail-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 253, 248, 0.3);
  border-radius: 50%;
  color: var(--white);
  background: rgba(17, 16, 18, 0.46);
  backdrop-filter: blur(12px);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform 260ms var(--ease), background 260ms var(--ease);
}

.rail-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 253, 248, 0.14);
}

.rail-button.prev {
  left: clamp(10px, 2vw, 28px);
}

.rail-button.next {
  right: clamp(10px, 2vw, 28px);
}

.photo-section {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(64px, 9vw, 118px) 0 clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background: #ebe3d7;
}

.photo-copy {
  position: sticky;
  top: 110px;
  align-self: start;
  padding-right: 16px;
}

.photo-copy p:first-child {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.photo-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.13;
}

.photo-copy p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.photo-gallery {
  min-width: 0;
}

.series-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(20px, 5vw, 72px) 24px 0;
}

.series-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(22, 21, 19, 0.18);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.28);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
}

.series-tab.is-active,
.series-tab:hover {
  color: var(--white);
  border-color: var(--night);
  background: var(--night);
}

.series-stage {
  min-width: 0;
}

.series-text {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: end;
  padding: 0 clamp(20px, 5vw, 72px) 22px 0;
}

.series-text h3 {
  margin: 0;
  font-family: "STSong", "Songti SC", "SimSun", Georgia, serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
}

.series-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.photo-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 27vw);
  gap: 14px;
  min-height: 540px;
  padding: 8px clamp(20px, 5vw, 72px) 18px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.photo-rail::-webkit-scrollbar {
  display: none;
}

.photo-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.photo-card {
  position: relative;
  display: block;
  min-height: 500px;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
  scroll-snap-align: center;
  isolation: isolate;
  border: 1px solid rgba(22, 21, 19, 0.18);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.photo-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 64px rgba(22, 21, 19, 0.18);
}

.photo-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 800ms var(--ease), filter 800ms var(--ease);
}

.photo-card.landscape {
  grid-auto-columns: minmax(320px, 35vw);
}

.photo-card.landscape img {
  object-position: center;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(17, 16, 18, 0.78), rgba(17, 16, 18, 0.12) 58%);
}

.photo-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.06) contrast(1.04);
}

.photo-card div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.photo-card span {
  color: rgba(255, 253, 248, 0.66);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.photo-card h3 {
  margin: 8px 0 0;
  font-family: "STSong", "Songti SC", "SimSun", Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

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

blockquote {
  margin: 0;
  max-width: 880px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.18;
}

.quote-band p {
  margin: 0;
  color: rgba(255, 253, 248, 0.64);
  line-height: 1.75;
}

.timeline-section {
  background: var(--paper-soft);
}

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

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline h3 {
  margin-top: 0;
}

.timeline p {
  margin-bottom: 0;
  max-width: 800px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  color: var(--white);
  background: var(--wine);
}

.site-footer h2 {
  margin-bottom: 0;
  max-width: 900px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.18;
}

.site-footer address {
  display: grid;
  align-content: end;
  gap: 12px;
  font-style: normal;
  color: rgba(255, 253, 248, 0.76);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 118px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-panel {
    max-width: none;
    margin: 0;
  }

  .practice-grid,
  .section-heading,
  .project-grid,
  .quote-band,
  .fragment-heading,
  .photo-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .fragment-rail {
    grid-auto-columns: minmax(240px, 76vw);
    min-height: 470px;
  }

  .fragment-card {
    min-height: 450px;
  }

  .photo-section {
    padding-right: 0;
  }

  .photo-copy {
    position: static;
    max-width: 720px;
  }

  .photo-rail {
    min-height: 500px;
    grid-auto-columns: minmax(245px, 78vw);
  }

  .project.feature {
    min-height: 460px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro-band,
  .section,
  .quote-band,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .series-text {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .series-text h3 {
    font-size: 42px;
  }

  .photo-rail {
    grid-auto-columns: minmax(245px, 78vw);
  }

  .button {
    justify-content: center;
  }

  .metric-row b {
    font-size: 20px;
  }

  .metric-row small {
    margin-top: 2px;
  }

  .hero-panel {
    padding-bottom: 26px;
  }

  .practice-grid article,
  .project {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
