:root {
  --ink: #101010;
  --paper: #f4f3f0;
  --white: #fff;
  --muted: #77736d;
  --line: rgba(16, 16, 16, .16);
  --accent: #b79258;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.modal-open,
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
  color: var(--white);
  mix-blend-mode: difference;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.wordmark svg { width: 22px; height: 22px; fill: currentColor; }

.wordmark span {
  margin-left: 2px;
  font-size: 8px;
  vertical-align: top;
}

.desktop-nav { display: flex; gap: 32px; }
.desktop-nav a { font-size: 13px; }
.desktop-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 5px;
  background: currentColor;
  transition: width .3s ease;
}
.desktop-nav a:hover::after { width: 100%; }

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform .25s ease;
}
.menu-open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-button span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: #101010;
  color: #fff;
  transition: opacity .3s ease, visibility .3s;
}
.mobile-menu[aria-hidden="false"] { visibility: visible; opacity: 1; }
.mobile-menu nav { display: grid; gap: 24px; width: min(84vw, 480px); }
.mobile-menu a { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.2); font-size: 22px; }

.view { min-height: 100vh; animation: reveal .65s cubic-bezier(.2,.7,.2,1); }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero {
  position: relative;
  min-height: min(900px, 88vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.hero-media,
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img,
.hero-media video { object-fit: cover; object-position: center; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.82) 100%);
}
.home-hero { min-height: 100vh; min-height: 100dvh; background: #000; }
.home-hero .hero-copy { padding-bottom: clamp(62px, 9vh, 118px); text-align: center; }
.home-hero .hero-copy > * { margin-inline: auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  padding: 9px 14px;
  border-radius: 5px;
  background: linear-gradient(100deg, rgba(126,126,126,.82), rgba(36,36,36,.75) 58%, rgba(5,5,5,.72));
  color: #f2f2f2;
  font-size: 12px;
  backdrop-filter: blur(12px);
}
.headline-line { display: block; overflow: hidden; padding: .04em .08em .1em; }
.home-hero .hero-copy h1 { max-width: 1100px; font-size: clamp(48px, 6.2vw, 92px); line-height: 1.02; }
.home-hero .hero-bottom { justify-content: center; flex-direction: column; align-items: center; margin-top: 16px; }
.home-hero .hero-bottom p { max-width: 560px; }
.liquid-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 44px;
  margin-top: 10px;
  padding: 0 20px;
  border: 1px solid rgba(210,210,210,.58);
  border-radius: 6px;
  background: linear-gradient(105deg, rgba(8,8,8,.75), rgba(62,62,62,.7) 52%, rgba(105,105,105,.66));
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(16px);
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.liquid-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-130%);
  background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,.38) 50%, transparent 78%);
  transition: transform .65s ease;
}
.liquid-button:hover { border-color: rgba(255,255,255,.9); background: linear-gradient(105deg,#111,#3a3a3a 50%,#696969); box-shadow: 0 0 24px rgba(190,210,255,.24); }
.liquid-button:hover::before { transform: translateX(130%); }
.hero-scroll { position: absolute; right: clamp(22px,4vw,64px); bottom: 30px; z-index: 1; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.6); font-size: 9px; }
.hero-scroll i { display: block; width: 42px; height: 1px; background: rgba(255,255,255,.55); transform-origin: left; animation: scroll-line 2.2s ease-in-out infinite; }
@keyframes scroll-line { 0%,100% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }

.appear { opacity: 1; animation: in-soft 1.05s both cubic-bezier(.16,1,.3,1); }
.appear--mask { animation-name: in-mask; animation-delay: .35s; }
.appear--pop { animation-name: in-pop; animation-delay: .18s; }
.appear--soft { animation-delay: .78s; }
.delay-2 { animation-delay: .53s; }
.delay-3 { animation-delay: .76s; }
.delay-4 { animation-delay: .94s; }
@keyframes in-soft { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes in-mask { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes in-pop { 0% { opacity: 0; transform: scale(.9); } 70% { opacity: 1; transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
.scroll-reveal { opacity: 0; transform: translateY(46px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.scroll-reveal.is-visible { opacity: 1; transform: none; }
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 clamp(22px, 6vw, 92px) clamp(42px, 7vw, 92px);
}
.eyebrow {
  margin: 0 0 16px;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: clamp(48px, 8vw, 124px);
  font-weight: 400;
  line-height: .95;
}
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
}
.hero-bottom p { max-width: 520px; margin: 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.8; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  white-space: nowrap;
}
.text-link span { transition: transform .25s ease; }
.text-link:hover span { transform: translateX(5px); }

.manifesto {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6vw;
  padding: clamp(80px, 12vw, 180px) clamp(22px, 6vw, 92px);
  background: var(--paper);
}
.manifesto .section-index { padding-top: 12px; color: var(--muted); font-size: 11px; }
.manifesto h2 {
  max-width: 1000px;
  margin: 0;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.25;
}

.channels { padding: 0 clamp(22px, 6vw, 92px) clamp(80px, 10vw, 150px); background: #050505; color: #fff; }
.channels-head { display: flex; justify-content: space-between; gap: 30px; padding: clamp(80px, 10vw, 150px) 0 42px; border-bottom: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.58); font-size: 11px; }
.channels-head p { margin: 0; }
.channel {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.channel::before { content: ""; position: absolute; inset: 0; transform: scaleY(0); transform-origin: bottom; background: #fff; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.channel:hover::before { transform: scaleY(1); }
.channel:hover { color: #0a0a0a; }
.channel-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(42px, 5vw, 72px) 0;
}
.channel-number { font-size: 12px; color: rgba(255,255,255,.6); }
.channel h2 { margin: 10px 0 0; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(38px, 6vw, 88px); font-weight: 400; }
.channel p { margin: 0; color: rgba(255,255,255,.57); font-size: 12px; transition: color .3s ease; }
.channel:hover p, .channel:hover .channel-number { color: rgba(0,0,0,.58); }
.channel-arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 22px; }

.page-head {
  min-height: 55vh;
  display: grid;
  align-content: end;
  padding: calc(var(--header-h) + 70px) clamp(22px, 6vw, 92px) clamp(50px, 7vw, 90px);
  background: #111;
  color: #fff;
}
.page-head .back-link { margin-bottom: 60px; color: rgba(255,255,255,.64); font-size: 12px; }
.page-head h1 { margin: 0; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(52px, 9vw, 128px); font-weight: 400; line-height: .95; }
.page-meta { display: flex; justify-content: space-between; gap: 30px; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.66); font-size: 12px; }

.project-list { padding: 0 clamp(22px, 5vw, 72px) clamp(80px, 10vw, 150px); }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: clamp(54px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}
.project-row:nth-child(even) .project-cover { order: 2; }
.project-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #ddd;
  cursor: pointer;
}
.project-cover.portrait { aspect-ratio: 3 / 4; width: min(100%, 620px); justify-self: center; }
.project-cover img, .project-cover video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.project-cover:hover img, .project-cover:hover video { transform: scale(1.02); }
.project-cover .play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #111;
  font-size: 18px;
}
.project-info .project-index { color: var(--muted); font-size: 11px; }
.project-info h2 { margin: 16px 0 14px; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(28px, 3.4vw, 52px); font-weight: 400; line-height: 1.18; }
.project-info p { max-width: 420px; margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.project-info button { border: 0; border-bottom: 1px solid currentColor; padding: 10px 0; background: transparent; cursor: pointer; font-size: 12px; }

.about-page { min-height: 100vh; padding: calc(var(--header-h) + 10vh) clamp(22px, 7vw, 110px) 70px; background: #eceae5; }
.about-page h1 { max-width: 1100px; margin: 7vh 0 12vh; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(44px, 7vw, 104px); font-weight: 400; line-height: 1.12; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; padding-top: 34px; border-top: 1px solid var(--line); }
.about-grid h2 { margin: 0 0 20px; font-size: 13px; font-weight: 600; }
.about-grid p { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; color: var(--muted); font-size: 13px; }

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  overflow-y: auto;
  opacity: 0;
  background: #0b0b0b;
  color: #fff;
  transition: opacity .35s ease, visibility .35s;
}
.project-modal[aria-hidden="false"] { visibility: visible; opacity: 1; }
.modal-close {
  position: fixed;
  top: 18px;
  right: clamp(18px, 3vw, 46px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(15,15,15,.55);
  color: #fff;
  font-size: 29px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.modal-intro { min-height: 44vh; display: grid; align-content: end; padding: 110px clamp(22px, 7vw, 110px) 60px; }
.modal-intro p { margin: 0 0 14px; color: rgba(255,255,255,.5); font-size: 11px; }
.modal-intro h2 { max-width: 1000px; margin: 0; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(40px, 7vw, 96px); font-weight: 400; }
.modal-gallery { padding: 0 clamp(14px, 4vw, 60px) 8vw; }
.modal-gallery figure { margin: 0 0 clamp(16px, 3vw, 44px); background: #171717; }
.modal-gallery img, .modal-gallery video { width: 100%; height: auto; max-height: none; object-fit: contain; }
.modal-gallery video { min-height: 50vh; max-height: 88vh; background: #000; }
.modal-gallery figcaption { padding: 14px 2px; color: rgba(255,255,255,.55); font-size: 11px; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 42px clamp(22px, 6vw, 92px); background: #0d0d0d; color: rgba(255,255,255,.55); font-size: 11px; }

.preview-open { overflow: hidden; }

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  visibility: hidden;
  opacity: 0;
  background: rgba(10, 10, 10, .92);
  transition: opacity .2s ease, visibility .2s ease;
}

.image-preview[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.image-preview img {
  width: auto;
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.image-preview-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(20, 20, 20, .72);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 84vh; }
  .hero-media img, .hero-media video { object-position: center; }
  .hero h1 { font-size: 48px; line-height: 1.02; }
  .hero-bottom { display: block; }
  .hero-bottom .text-link { margin-top: 22px; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto h2 { font-size: 34px; }
  .home-hero .hero-copy { padding-bottom: 96px; }
  .home-hero h1 { font-size: 42px; }
  .hero-scroll { display: none; }
  .channels { padding-inline: 22px; }
  .channels-head { display: block; }
  .channels-head p { margin-top: 10px; }
  .channel { min-height: 0; }
  .channel-copy { grid-template-columns: 38px 1fr; }
  .channel-arrow { display: none; }
  .channel h2 { font-size: 40px; }
  .page-head { min-height: 48vh; }
  .page-head .back-link { margin-bottom: 36px; }
  .page-meta { display: block; line-height: 1.7; }
  .page-meta span { display: block; margin-top: 6px; }
  .project-row { grid-template-columns: 1fr; }
  .project-row:nth-child(even) .project-cover { order: initial; }
  .project-cover, .project-cover.portrait { width: 100%; }
  .project-info h2 { font-size: 31px; }
  .about-grid { grid-template-columns: 1fr; }
  .modal-gallery { padding-inline: 0; }
  .modal-gallery figcaption { padding-inline: 16px; }
  .modal-intro { min-height: 38vh; }
}

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