@charset "UTF-8";

:root {
  --bg: #050608;
  --surface: #0c0e12;
  --surface-2: #12151b;
  --ink: #f2f0ec;
  --ink-strong: #f6f2ea;
  --muted: rgba(242, 240, 236, 0.62);
  --faint: rgba(242, 240, 236, 0.36);
  --line: rgba(242, 240, 236, 0.14);
  --line-strong: rgba(242, 240, 236, 0.28);
  --laser: #2e5bff;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  --serif: "Instrument Serif", "Noto Serif SC", "Songti SC", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--laser);
  outline-offset: 3px;
}

::selection {
  background: var(--laser);
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 84px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.78) 0%, rgba(5, 6, 8, 0) 100%);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-strong);
}

.brand-mark svg,
.brand-mark img {
  height: 22px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--ink-strong);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a.nav-serif {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
}

.site-nav a.nav-pill {
  height: 42px;
  min-height: 42px;
  padding: 0 20px;
  gap: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid rgba(255, 255, 255, 0.36);
  font-size: 14px;
  color: #ffffff;
}

.site-nav a.nav-pill:hover {
  border-color: var(--laser);
  background: rgba(46, 91, 255, 0.22);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(20px);
  padding: 24px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 26px;
  font-family: var(--serif);
  font-style: italic;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mobile-drawer-links a span {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* Hero — Direction A: Consciousness Flow */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px var(--pad) 24px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76) contrast(1.06);
  animation: a-drift 28s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.62) 0%, rgba(5, 6, 8, 0.16) 28%, rgba(5, 6, 8, 0.18) 60%, rgba(5, 6, 8, 0.82) 100%),
    radial-gradient(80% 70% at 24% 36%, rgba(5, 6, 8, 0.48) 0%, transparent 70%);
}

@keyframes a-drift {
  from {
    transform: scale(1.06) translateX(1.2%);
  }
  to {
    transform: scale(1.06) translateX(-1.2%);
  }
}

.hero-top {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin-top: clamp(16px, 4vh, 42px);
}

.rec-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(242, 240, 236, 0.78);
  margin-bottom: clamp(20px, 4vh, 38px);
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 12px 2px rgba(46, 91, 255, 0.8);
  animation: a-rec 2s ease-in-out infinite;
}

@keyframes a-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero-meta {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(242, 240, 236, 0.68);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-statement {
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.hero-statement .zh {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  color: #f4f1ea;
}

.hero-statement .en {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(244, 241, 234, 0.76);
}

.chapter-nav {
  width: 100%;
}

.chapter-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.chapter-links a {
  display: inline-flex;
  align-items: flex-end;
  min-height: 40px;
  color: rgba(242, 240, 236, 0.56);
  transition: color 0.2s ease;
}

.chapter-links a[aria-current="true"],
.chapter-links a:hover {
  color: var(--ink-strong);
}

.chapter-track {
  position: relative;
  height: 13px;
  margin-top: 8px;
}

.chapter-track-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  border-top: 1px solid rgba(242, 240, 236, 0.26);
}

.chapter-track-fill {
  position: absolute;
  left: 0;
  width: 18%;
  top: 6px;
  border-top: 1px solid var(--ink-strong);
  transition: width 0.35s ease;
}

.chapter-track-dot {
  position: absolute;
  left: calc(18% - 4px);
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-strong);
  transition: left 0.35s ease;
}

.hero-foot-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(242, 240, 236, 0.62);
}

/* Sections */
.section {
  padding: clamp(64px, 10vh, 120px) var(--pad);
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  color: var(--ink-strong);
}

.section-note {
  margin: 0;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* Works grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.work-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card:hover .work-card-media img {
  transform: scale(1.03);
}

.work-card-specimen {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-card-specimen img {
  height: clamp(54px, 7vw, 96px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.work-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--ink-strong);
}

.work-card-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-strong);
  margin-top: 4px;
}

.work-card-link:hover {
  color: var(--laser);
}

/* Ecosystem row */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.brand-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 2.8vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 220px;
  transition: background 0.25s ease;
}

.brand-cell:hover {
  background: var(--surface);
}

.brand-cell-logo {
  height: 24px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

.brand-cell-role {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-cell-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* Studio & Contact */
.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.studio-lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.5;
  color: var(--ink-strong);
}

.studio-sub {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

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

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.contact-row span:last-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.contact-row:hover span:last-child {
  color: var(--laser);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad) 44px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* /shiqi — Cool silver-grey gallery (no warm beige) */
body.theme-shiqi {
  background: #eaecef;
  color: #141619;
  --bg: #eaecef;
  --surface: #dfe3e8;
  --ink: #141619;
  --ink-strong: #0d0f12;
  --muted: #5c626b;
  --line: #c5c9d0;
}

.shiqi-header {
  max-width: 780px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shiqi-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.shiqi-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.shiqi-intro {
  padding: 48px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shiqi-intro-zh {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.45;
  font-weight: 500;
}

.shiqi-intro-en {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

.shiqi-role {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.shiqi-series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0.5px solid var(--line);
  border-left: 0.5px solid var(--line);
}

.shiqi-series-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 104px;
  padding: 16px;
  border-right: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}

.shiqi-series-item .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.shiqi-series-item .title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.shiqi-series-item .en {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.shiqi-stream {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
}

.shiqi-fig {
  margin: 0;
}

.shiqi-fig.right {
  margin-left: auto;
  width: 76%;
}

.shiqi-fig img {
  width: 100%;
  height: auto;
  background: var(--surface);
}

.shiqi-fig figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
}

.shiqi-fig .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.shiqi-fig .cap {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
}

.shiqi-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 0;
}

.shiqi-connector .stem {
  height: 18px;
  border-left: 0.5px solid var(--line);
}

.shiqi-connector .word {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
}

.shiqi-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  align-items: end;
}

@media (max-width: 960px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .work-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .chapter-links {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .shiqi-fig.right {
    width: 100%;
  }
  .shiqi-split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-backdrop img,
  .rec-dot {
    animation: none;
  }
}
