:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #000;
  color: #f4f0ea;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 1180px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 0, 0, 0.2), transparent 26%),
    radial-gradient(circle at 90% 36%, rgba(199, 165, 111, 0.07), transparent 22%),
    linear-gradient(180deg, #000 0%, #050505 48%, #000 100%);
}

body.is-locked {
  overflow: hidden;
}

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

img,
video {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

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

.section {
  padding: 128px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: #c7a56f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.55);
  z-index: -2;
  transform: translateZ(0);
  will-change: transform;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.92) 100%);
}

.nav {
  position: relative;
  z-index: 2;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 240, 234, 0.13);
}

.brand {
  font-size: 20px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 44px;
  color: rgba(244, 240, 234, 0.72);
  font-size: 14px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  min-width: 96px;
  padding: 3px;
  border: 1px solid rgba(244, 240, 234, 0.24);
  border-radius: 999px;
  color: rgba(244, 240, 234, 0.62);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.language-toggle span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: color 240ms ease, background 240ms ease;
}

.language-toggle span.is-active {
  color: #000;
  background: rgba(244, 240, 234, 0.92);
}

.nav-contact,
.hero-actions a,
.closing-links a,
.wechat-link {
  border: 1px solid rgba(244, 240, 234, 0.32);
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.nav-contact:hover,
.hero-actions a:hover,
.closing-links a:hover,
.wechat-link:hover,
.contact-lines a:hover,
.lightbox-close:hover {
  background: rgba(244, 240, 234, 0.16);
  border-color: rgba(244, 240, 234, 0.6);
}

.hero-content {
  min-height: calc(100vh - 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 6vh;
}

.hero h1 {
  margin: 0;
  font-size: clamp(96px, 9vw, 176px);
  line-height: 0.92;
  font-weight: 800;
}

.hero-lead {
  width: min(760px, 54vw);
  margin: 38px 0 0;
  color: rgba(244, 240, 234, 0.78);
}

.hero-lead span {
  display: block;
}

.hero-lead-kicker {
  color: rgba(199, 165, 111, 0.96);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-lead-main {
  margin-top: 16px;
  color: rgba(244, 240, 234, 0.92);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
}

.hero-lead-sub {
  margin-top: 14px;
  max-width: 560px;
  color: rgba(244, 240, 234, 0.58);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 46px;
  font-size: 15px;
}

.hero-actions a:first-child {
  background: rgba(244, 240, 234, 0.92);
  color: #000;
  border-color: rgba(244, 240, 234, 0.92);
}

body[data-lang="en"] {
  font-family: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
}

body[data-lang="en"] .hero h1 {
  max-width: 980px;
  font-size: clamp(84px, 7.6vw, 144px);
  letter-spacing: 0;
}

body[data-lang="en"] .hero-lead {
  width: min(860px, 60vw);
}

body[data-lang="en"] .hero-lead-main {
  max-width: 820px;
  font-size: 38px;
}

body[data-lang="en"] .hero-lead-sub {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.62;
}

body[data-lang="en"] .section-head h2,
body[data-lang="en"] .closing h2 {
  max-width: 1100px;
  font-size: 64px;
  letter-spacing: 0;
}

body[data-lang="en"] .about-copy p {
  font-size: 19px;
  line-height: 1.72;
}

body[data-lang="en"] .project-copy h3 {
  max-width: 760px;
  font-size: 42px;
  line-height: 1.08;
}

body[data-lang="en"] .project-copy > p:last-of-type {
  max-width: 660px;
  font-size: 17px;
  line-height: 1.72;
}

body[data-lang="en"] .strength-card p {
  margin-top: 36px;
  line-height: 1.68;
}

.section-head {
  margin-bottom: 56px;
}

.section-head h2,
.closing h2 {
  margin: 0;
  font-size: 58px;
  line-height: 1.05;
}

.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 80px;
}

.split > p {
  max-width: 520px;
  margin: 0 0 8px;
  color: rgba(244, 240, 234, 0.62);
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.2fr 0.72fr;
  gap: 28px;
  align-items: stretch;
}

.portrait,
.about-copy,
.stats,
.strength-card,
.project-card {
  border: 0;
  background: rgba(0, 0, 0, 0.5);
}

.portrait {
  display: block;
  padding: 0;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.16) saturate(0.85);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 500ms ease;
}

.portrait:hover img {
  transform: scale(1.05);
  filter: grayscale(0) saturate(1);
}

.about-copy {
  border-radius: 8px;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-copy p {
  margin: 0 0 28px;
  color: rgba(244, 240, 234, 0.76);
  font-size: 21px;
  line-height: 1.85;
}

.contact-lines {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-lines span,
.contact-lines a {
  padding: 12px 16px;
  border: 1px solid rgba(244, 240, 234, 0.14);
  color: rgba(244, 240, 234, 0.8);
  border-radius: 999px;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease;
}

.stats {
  border-radius: 8px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.stats div {
  padding: 36px;
  border-bottom: 1px solid rgba(244, 240, 234, 0.1);
}

.stats div:last-child {
  border-bottom: 0;
}

.stats strong {
  display: block;
  font-size: 58px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: rgba(244, 240, 234, 0.58);
}

.projects {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.96));
}

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

.project-card {
  --parallax-y: 0px;
  --hover-scale: 1;
  min-height: 720px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.72fr);
  grid-template-areas:
    "media copy"
    "gallery gallery";
  transform: translate3d(0, var(--parallax-y), 0) scale(var(--hover-scale));
  transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
  will-change: transform;
  backface-visibility: hidden;
  contain: layout paint style;
}

.project-card:hover {
  --hover-scale: 1.008;
  border-color: rgba(244, 240, 234, 0.26);
  background: rgba(10, 10, 10, 0.78);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.2);
}

.project-card:nth-child(even) {
  grid-template-columns: minmax(420px, 0.72fr) minmax(0, 1.05fr);
  grid-template-areas:
    "copy media"
    "gallery gallery";
}

.project-card:nth-child(even) .project-hero-media {
  order: 2;
}

.project-hero-media {
  grid-area: media;
  position: relative;
  min-height: 640px;
  background: #000;
  overflow: hidden;
}

.cover-tile {
  height: 100%;
  width: 100%;
}

.media-tile {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: inherit;
  background: #050505;
  cursor: zoom-in;
  text-align: left;
}

.media-tile img,
.media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
  will-change: transform;
  backface-visibility: hidden;
}

.media-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.58));
  opacity: 0;
  transition: opacity 260ms ease;
}

.media-tile span,
.portrait span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: rgba(244, 240, 234, 0.86);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.media-tile:hover img,
.media-tile:hover video {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.02);
}

.media-tile:hover::after,
.media-tile:hover span,
.portrait:hover span {
  opacity: 1;
  transform: translateY(0);
}

.project-hero-media video {
  mix-blend-mode: screen;
  opacity: 0.7;
}

.project-copy {
  grid-area: copy;
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-index {
  position: absolute;
  top: 42px;
  right: 48px;
  color: rgba(244, 240, 234, 0.24);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.project-copy h3 {
  margin: 0;
  max-width: 640px;
  font-size: 38px;
  line-height: 1.18;
}

.project-meta {
  margin: 22px 0 0;
  color: rgba(199, 165, 111, 0.9);
}

.project-copy > p:last-of-type {
  margin: 28px 0 0;
  max-width: 560px;
  color: rgba(244, 240, 234, 0.66);
  font-size: 18px;
  line-height: 1.8;
}

.project-thumbs {
  display: none;
}

.project-gallery {
  grid-area: gallery;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.58);
}

.project-gallery .media-tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(244, 240, 234, 0.1);
}

.project-gallery .media-tile:nth-child(6n + 2),
.project-gallery .media-tile:nth-child(6n + 5) {
  aspect-ratio: 4 / 5;
}

.project-gallery .media-tile:nth-child(11n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.project-silede {
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "copy";
}

.project-silede .project-hero-media {
  min-height: 860px;
}

.project-silede .project-copy {
  min-height: 340px;
  padding: 58px 72px 68px;
}

.project-silede .project-copy > p:last-of-type {
  max-width: 920px;
}

.project-silede .project-gallery {
  display: none;
}

.project-lemon {
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "gallery";
}

.project-lemon .project-hero-media {
  display: none;
}

.project-lemon .project-copy {
  min-height: 380px;
  padding: 64px 72px;
}

.perspective-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  perspective: 760px;
  perspective-origin: 50% 48%;
  cursor: grab;
  touch-action: pan-y;
  background: transparent;
}

.perspective-stage::before {
  content: "SELECTED  WORK";
  position: absolute;
  top: 46px;
  left: 50%;
  z-index: 3;
  color: rgba(244, 240, 234, 0.42);
  font-size: 13px;
  font-weight: 800;
  word-spacing: 150px;
  transform: translateX(-50%);
}

.perspective-stage:active {
  cursor: grabbing;
}

.perspective-strip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 460px;
  height: 540px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) translateX(var(--offset, 0px));
  will-change: transform;
}

.perspective-item {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #050505;
  transform:
    translateX(var(--x))
    translateZ(var(--z))
    rotateY(var(--rot))
    scale(var(--scale));
  cursor: zoom-in;
  outline: 10px solid #000;
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.42);
  transition: box-shadow 240ms ease, opacity 200ms ease;
  will-change: transform;
  backface-visibility: hidden;
}

.perspective-item:hover {
  z-index: 5;
  box-shadow: 0 38px 92px rgba(0, 0, 0, 0.42);
}

.perspective-item img,
.perspective-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #050505;
}

.drag-hint {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 3;
  color: rgba(244, 240, 234, 0.5);
  font-size: 13px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.strength-card {
  min-height: 220px;
  border-radius: 8px;
  padding: 34px;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms ease, background 300ms ease;
}

.strength-card:hover {
  transform: translateY(-8px);
  border-color: rgba(199, 165, 111, 0.36);
  background: rgba(14, 14, 14, 0.86);
}

.strength-card span {
  display: block;
  font-size: 24px;
  font-weight: 700;
}

.strength-card p {
  margin: 46px 0 0;
  color: rgba(244, 240, 234, 0.63);
  font-size: 17px;
  line-height: 1.75;
}

.closing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), #000),
    var(--closing-bg, url('/assets/silede-logo.webp')) center / cover no-repeat;
  background-attachment: scroll;
}

.closing-inner {
  padding: 120px 0;
}

.closing h2 {
  max-width: 980px;
  font-size: 82px;
}

.closing-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 54px;
}

.wechat-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.wechat-link svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.wechat-bubble-main,
.wechat-bubble-secondary {
  fill: currentColor;
}

.wechat-bubble-secondary {
  opacity: 0.72;
}

.wechat-eye {
  fill: #000;
}

.wechat-link span {
  font-size: 14px;
  font-weight: 700;
}

.lightbox-panel.is-qr {
  grid-template-columns: minmax(0, 1fr);
  width: min(520px, 92vw);
}

.lightbox-panel.is-qr .lightbox-media {
  min-height: 0;
  padding: 34px;
  background: #fff;
}

.lightbox-panel.is-qr .lightbox-media img {
  width: min(390px, 78vw);
  height: auto;
  max-height: 78vh;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-panel {
  position: relative;
  width: min(1420px, 94vw);
  max-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 234, 0.14);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58);
}

.lightbox-panel.is-media-only {
  grid-template-columns: minmax(0, 1fr);
  width: min(960px, 94vw);
}

.lightbox-media {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox-media img,
.lightbox-media video {
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.lightbox-copy h3 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.lightbox-copy p {
  margin: 0;
  color: rgba(244, 240, 234, 0.68);
  line-height: 1.75;
}

.lightbox-copy span {
  display: block;
  margin-top: 32px;
  color: rgba(244, 240, 234, 0.42);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  border: 1px solid rgba(244, 240, 234, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  color: #f4f0ea;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease;
}

@media (max-width: 1300px) {
  .shell {
    width: min(1700px, calc(100% - 64px));
  }

  .about-grid,
  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: none;
  }

  .stats div {
    border-bottom: 0;
    border-right: 1px solid rgba(244, 240, 234, 0.1);
  }
}

.project-silede,
.project-silede:nth-child(even) {
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  margin-right: calc((100% - 100vw) / 2);
  justify-self: start;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "copy";
  border-color: transparent;
  background: transparent;
}

.project-silede:hover {
  border-color: transparent;
  background: transparent;
}

.project-silede .project-hero-media {
  width: 100vw;
  min-height: clamp(780px, 82vh, 980px);
  background: transparent;
}

.project-silede .perspective-stage {
  width: 100vw;
  min-height: clamp(780px, 82vh, 980px);
}

.project-silede .perspective-strip {
  width: min(540px, 40vw);
  height: min(640px, 60vh);
}

.project-silede .project-copy {
  width: 100%;
  min-height: 360px;
  padding: 64px 78px 76px;
  border: 0;
}

.project-silede .project-copy h3 {
  max-width: 980px;
  font-size: 48px;
}

.project-silede .project-copy > p:last-of-type {
  max-width: 1040px;
}

.project-lemon,
.project-lemon:nth-child(even) {
  width: min(1700px, calc(100vw - 72px));
  justify-self: center;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "gallery";
}

.project-lemon .project-copy {
  width: 100%;
  min-height: 420px;
  padding: 70px 78px;
}

.project-lemon .project-copy h3 {
  max-width: 980px;
  font-size: 48px;
}

.project-lemon .project-copy > p:last-of-type {
  max-width: 920px;
}

.project-lemon .project-gallery {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

.project-lemon .project-gallery .media-tile {
  aspect-ratio: 4 / 3;
}

.project-lemon .project-gallery .media-tile:nth-child(11n + 1) {
  grid-column: auto;
  grid-row: auto;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .project-card {
    transform: none;
  }
}
