:root {
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --bg: #050505;
  --fg: #f6f2ec;
  --muted: rgba(246, 242, 236, 0.64);
  --line: rgba(246, 242, 236, 0.18);
  --accent: #f598f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  scroll-padding-top: 110px;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  pointer-events: none;
}

.nav-shell {
  width: min(1340px, calc(100% - 30px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
}

.brand,
.desktop-nav,
.nav-meta {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  text-transform: uppercase;
}

.brand {
  min-width: 130px;
}

.brand span,
.desktop-nav span,
.nav-meta a,
.clock,
.lang-toggle {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.12px;
}

.nav-meta .email-link {
  text-transform: none;
}

.desktop-nav small {
  display: block;
  font-size: 8px;
  line-height: 12px;
  letter-spacing: -0.08px;
  opacity: 0.76;
}

.nav-underline {
  position: relative;
  display: inline-flex;
  gap: 5px;
}

.nav-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease-spring);
}

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

.lang-toggle,
.menu-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.lang-toggle {
  width: 28px;
  text-align: left;
}

.menu-toggle {
  display: none;
  width: 28px;
  height: 18px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--fg);
  transform-origin: 50% 50%;
  transition: transform 420ms var(--ease-spring), top 420ms var(--ease-spring);
}

.menu-toggle span:first-child {
  top: 5px;
}

.menu-toggle span:last-child {
  top: 13px;
}

.menu-toggle.open span:first-child {
  top: 9px;
  transform: rotate(45deg) scaleX(1);
}

.menu-toggle.open span:last-child {
  top: 9px;
  transform: rotate(-45deg) scaleX(1);
}

.mobile-panel {
  display: none;
  width: min(1340px, calc(100% - 36px));
  margin: -8px auto 0;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-spring);
  pointer-events: auto;
}

.mobile-panel > div {
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding-top: 0;
}

.mobile-panel.open {
  grid-template-rows: 1fr;
}

.mobile-panel a {
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.84px;
  text-transform: uppercase;
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

.hero-media,
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1200ms ease-in-out, transform 8000ms ease;
  filter: saturate(0.88) contrast(1.08);
}

.hero-bg.active {
  opacity: 1;
  transform: scale(1.12);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1) 44%, rgba(0, 0, 0, 0.7)),
    rgba(0, 0, 0, 0.14);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  width: min(1340px, calc(100% - 30px));
  margin: 0 auto;
  padding: 190px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 150px;
}

.hero-top,
.hero-bottom {
  display: flex;
  width: 100%;
}

.hero-top {
  align-items: flex-start;
}

.hero-switcher {
  flex: 4;
  display: grid;
  gap: 12px;
}

.switch {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  opacity: 0.55;
  text-transform: uppercase;
  transition: opacity 280ms ease, transform 420ms var(--ease-spring);
}

.switch:hover {
  opacity: 0.78;
  transform: translateX(4px);
}

.switch.active {
  opacity: 1;
}

.switch small {
  display: inline-block;
  width: 34px;
  font-size: 8px;
  line-height: 12px;
}

.switch span,
.availability {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.12px;
}

.availability {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  animation: dotPulse 1.6s ease-in-out infinite;
}

.hero-bottom {
  align-items: flex-end;
  gap: 50px;
}

.hero-name {
  flex: 2;
  margin: 0;
  font-size: clamp(120px, 14.7vw, 200px);
  line-height: 0.81;
  letter-spacing: -6px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-name span {
  color: var(--accent);
}

.hero-copy {
  flex: 1;
  padding-left: 50px;
}

.hero-copy p {
  max-width: 390px;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.16px;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  overflow: hidden;
  text-transform: lowercase;
  transition: border-color 360ms var(--ease-spring), color 360ms var(--ease-spring);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 420ms var(--ease-spring);
}

.cta span {
  position: relative;
  z-index: 1;
}

.cta:hover {
  color: #050505;
  border-color: var(--accent);
}

.cta:hover::before {
  transform: translateY(0);
}

.section-pad {
  width: min(1340px, calc(100% - 30px));
  margin: 0 auto;
  padding: 130px 0;
}

.section-index,
.section-head span,
.project-meta,
.tag-row,
.project-note,
.contact-inner > span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 16px;
}

.profile-shell {
  min-height: 86svh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  background: rgba(246, 242, 236, 0.025);
}

.profile-photo {
  min-height: 720px;
  margin: 0;
  border-right: 1px solid var(--line);
  overflow: hidden;
  background: #181818;
}

.profile-photo img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(1.02) contrast(1.02) brightness(0.98);
}

.profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 72px;
}

.profile-copy h2 {
  display: grid;
  gap: 6px;
  margin: 28px 0 26px;
  font-size: clamp(70px, 8.8vw, 142px);
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-weight: 500;
  text-transform: uppercase;
}

.profile-copy h2 span:first-child {
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

.profile-copy h2 span:last-child::after {
  content: ".";
  color: var(--accent);
}

.profile-position {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--fg);
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.profile-intro {
  max-width: 680px;
  margin: 0;
  color: rgba(246, 242, 236, 0.76);
  font-size: 18px;
  line-height: 1.75;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 30px;
}

.profile-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(246, 242, 236, 0.82);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-top: 36px;
}

.intro h2,
.section-head h2,
.contact h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.intro p {
  margin: 8px 0 0;
  max-width: 620px;
  font-size: 22px;
  line-height: 1.45;
  color: rgba(246, 242, 236, 0.82);
}

.section-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 68px;
}

#services .section-head h2,
.project-detail > .section-head h2 {
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

#services .section-head h2 {
  font-size: clamp(32px, 3.5vw, 50px);
}

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#arrival-entry {
  order: 1;
}

#arrival-detail {
  order: 2;
}

#jinan-entry {
  order: 3;
}

#jinan-detail {
  order: 4;
}

#byd-entry {
  order: 5;
}

#byd-detail {
  order: 6;
}

#qianliju-entry {
  order: 7;
}

#qianliju-detail {
  order: 8;
}

#jingbao-entry {
  order: 9;
}

#jingbao-detail {
  order: 10;
}

.project {
  border-top: 1px solid var(--line);
  padding: 34px 0 56px;
}

.arrival-cover {
  min-height: 100svh;
  padding: 0;
  border-top: 0;
}

.arrival-cover-link {
  position: relative;
  display: block;
  min-height: 100svh;
  overflow: hidden;
  background: #111;
}

.arrival-cover-link > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 1200ms var(--ease-spring), filter 1200ms var(--ease-spring);
}

.arrival-cover-link:hover > img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.08);
}

.project-cover {
  min-height: 76svh;
  padding: 0;
}

.project-cover-link {
  position: relative;
  display: block;
  min-height: 76svh;
  overflow: hidden;
  background: #111;
}

.project-cover-link > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 1200ms var(--ease-spring), filter 1200ms var(--ease-spring);
}

.project-cover-link:hover > img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.08);
}

#jinan-entry {
  min-height: auto;
}

#jinan-entry .project-cover-link {
  min-height: auto;
}

#jinan-entry .project-cover-link > img {
  position: relative;
  height: auto;
  object-fit: contain;
}

#jinan-entry .project-cover-link:hover > img {
  transform: none;
}

#jinan-entry .project-cover-copy {
  position: absolute;
  inset: 0;
  min-height: auto;
}

.project-cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.project-cover-copy {
  position: relative;
  z-index: 1;
  min-height: 76svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px 48px;
}

.project-cover-copy h3 {
  max-width: none;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.arrival-cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
}

.arrival-cover-copy {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.arrival-cover-copy h3 {
  max-width: none;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.cover-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.project h3 {
  margin: 0 0 20px;
  max-width: none;
  font-size: 78px;
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.project p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(246, 242, 236, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.image-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

.image-grid.tall {
  grid-template-columns: 0.75fr 1.2fr 1fr 1fr;
}

.image-card {
  border: 0;
  padding: 0;
  background: #111;
  cursor: zoom-in;
  min-height: 260px;
  overflow: hidden;
}

.image-card.wide {
  grid-column: span 2;
}

.image-card img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 900ms var(--ease-spring), filter 900ms var(--ease-spring);
  filter: saturate(0.88);
}

.image-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.detail-card {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 0;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
}

.detail-card img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 900ms var(--ease-spring), filter 900ms var(--ease-spring);
}

.detail-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

.detail-card span {
  display: block;
  padding: 18px 18px 8px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-card p {
  padding: 0 18px 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(246, 242, 236, 0.66);
}

.project-note {
  max-width: 620px;
  border-left: 1px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 28px;
  color: rgba(246, 242, 236, 0.72);
}

.arrival-detail {
  padding-top: 76px;
}

.project-detail {
  padding-top: 76px;
}

.arrival-detail,
.project-detail,
.article-library,
.full-article {
  display: none;
}

.arrival-detail.detail-active,
.project-detail.detail-active,
.article-library.detail-active,
.full-article.detail-active {
  display: block;
}

.back-link {
  position: sticky;
  top: 78px;
  z-index: 7;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(12px);
  padding: 9px 14px;
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}

.back-link::before {
  content: "←";
  margin-right: 8px;
  color: var(--accent);
}

.detail-intro {
  max-width: 980px;
  margin: -18px 0 34px;
  color: rgba(246, 242, 236, 0.82);
  font-size: 20px;
  line-height: 1.7;
}

.arrival-detail-nav {
  position: sticky;
  top: 78px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -32px 0 52px;
}

.arrival-detail-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(12px);
  padding: 9px 14px;
  color: var(--fg);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -28px 0 44px;
}

.detail-tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}

.arrival-doc,
.arrival-gallery-block {
  border-top: 1px solid var(--line);
  padding: 34px 0 82px;
}

.doc-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 30px;
}

.doc-head span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 16px;
}

.doc-head h3 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.doc-layout.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.doc-layout.reverse figure {
  order: 2;
}

.doc-layout figure {
  margin: 0;
  position: sticky;
  top: 130px;
}

.doc-layout figure img {
  max-height: 78vh;
  object-fit: cover;
}

.doc-text {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.doc-text p {
  margin: 0;
  color: rgba(246, 242, 236, 0.82);
  font-size: 18px;
  line-height: 1.85;
  font-weight: 400;
}

.doc-text p:first-child {
  font-size: 28px;
  line-height: 1.35;
  color: var(--fg);
  letter-spacing: -0.04em;
}

.inline-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.inline-gallery.compact {
  margin-top: 18px;
  grid-template-columns: repeat(6, 1fr);
}

.inline-gallery button {
  border: 0;
  padding: 0;
  min-height: 170px;
  background: #111;
  cursor: zoom-in;
  overflow: hidden;
}

.inline-gallery img {
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 700ms var(--ease-spring), filter 700ms var(--ease-spring);
}

.inline-gallery button:hover img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

.carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 760px) 52px;
  gap: 12px;
  align-items: stretch;
  margin-top: 28px;
}

.carousel-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 0;
  background: #111;
  cursor: zoom-in;
  overflow: hidden;
  min-height: 560px;
}

.carousel-frame img {
  height: 100%;
  object-fit: contain;
  background: #0b0b0b;
}

.carousel-frame span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

.carousel-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 24px;
}

.jinan-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 26px;
}

.jinan-stats span {
  border: 1px solid var(--line);
  padding: 16px;
  color: rgba(246, 242, 236, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.jinan-stats strong {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 42px;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.catalogue-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--fg);
}

.catalogue-link small {
  color: var(--accent);
  font-size: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 280px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card span {
  color: var(--accent);
}

.service-card h3 {
  margin: 80px 0 16px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.service-card p,
.writing-card p,
.writing-list {
  color: rgba(246, 242, 236, 0.72);
  line-height: 1.55;
}

.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 18px;
}

.writing-card,
.writing-list {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.writing-card {
  display: block;
}

.writing-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 24px;
  filter: saturate(0.86);
  transition: filter 700ms var(--ease-spring), transform 700ms var(--ease-spring);
}

.writing-card:hover img {
  filter: saturate(1.04);
  transform: scale(1.015);
}

.writing-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 500;
}

.writing-list ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.writing-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.writing-list a {
  display: block;
  transition: color 360ms var(--ease-spring), transform 360ms var(--ease-spring);
}

.writing-list a:hover {
  color: var(--fg);
  transform: translateX(4px);
}

.article-library {
  padding-top: 40px;
}

.article-stack {
  display: grid;
  gap: 72px;
}

.full-article {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.article-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 60px;
  margin-bottom: 30px;
}

.article-head span {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
}

.article-head h3 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(34px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.article-layout {
  display: block;
}

.article-hero {
  margin: 0 0 32px;
}

.article-hero img {
  max-height: 72vh;
  object-fit: contain;
  background: #111;
  filter: saturate(0.9);
}

.article-body {
  max-width: 860px;
  margin-left: 320px;
}

.article-body p {
  margin: 0 0 18px;
  color: rgba(246, 242, 236, 0.82);
  font-size: 18px;
  line-height: 1.85;
  font-weight: 400;
}

.article-body p:first-child:not(.article-byline) {
  color: var(--fg);
  font-size: 24px;
  line-height: 1.45;
}

.article-body h4 {
  margin: 42px 0 18px;
  color: var(--fg);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.article-byline,
.article-caption {
  color: rgba(246, 242, 236, 0.52) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.article-inline-image {
  margin: 34px 0 8px;
  background: #111;
}

.article-inline-image img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  filter: saturate(0.9);
}

.contact {
  padding-bottom: 90px;
}

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

.contact h2 {
  max-width: 1030px;
  margin: 28px 0 42px;
}

.contact-mail {
  font-size: clamp(28px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
}

.reveal.visible {
  animation: revealUp 900ms var(--ease-spring) forwards;
}

.reveal-right {
  transform: translateX(100px);
}

.reveal-right.visible {
  animation-name: revealRight;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  padding: 30px;
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  display: grid;
  gap: 16px;
  max-width: min(1120px, 92vw);
  max-height: calc(100vh - 60px);
  grid-template-rows: minmax(0, 1fr) auto;
}

.lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 62vh;
  object-fit: contain;
  justify-self: center;
}

.lightbox figcaption {
  max-width: 980px;
  max-height: 28vh;
  overflow-y: auto;
  padding: 0 8px 6px 0;
  color: rgba(246, 242, 236, 0.82);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

.lightbox figcaption::-webkit-scrollbar {
  width: 6px;
}

.lightbox figcaption::-webkit-scrollbar-thumb {
  background: rgba(246, 242, 236, 0.34);
}

.lightbox button {
  position: absolute;
  top: 22px;
  right: 26px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 40px;
  cursor: pointer;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.45);
  }
}

@media (max-width: 1199.98px) and (min-width: 810px) {
  .nav-shell {
    width: calc(100% - 36px);
    padding: 30px 0;
  }

  .desktop-nav,
  .nav-meta {
    gap: 16px;
  }

  .hero-content {
    width: calc(100% - 36px);
    gap: 110px;
    padding-bottom: 52px;
  }

  .hero-name {
    font-size: 129.6px;
    line-height: 113.4px;
    letter-spacing: -7.7px;
  }

  .hero-copy {
    padding-left: 24px;
  }

  .project h3 {
    font-size: 52px;
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  #services .section-head h2,
  .project-detail > .section-head h2 {
    font-size: 38px;
  }

  #services .section-head h2 {
    font-size: 34px;
  }

  .section-head,
  .intro-grid,
  .profile-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-photo {
    min-height: 620px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-copy {
    padding: 48px;
  }

  .service-grid,
  .writing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jinan-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-head,
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-hero {
    position: static;
  }

  .article-body {
    margin-left: 0;
  }
}

@media (max-width: 809.98px) {
  .hero-bg,
  .hero-bg.active {
    inset: 0 auto auto 0;
    height: auto;
    object-fit: contain;
    object-position: center top;
    transform: none;
  }

  .nav-shell {
    width: calc(100% - 36px);
    padding: 24px 0;
    align-items: center;
  }

  .desktop-nav,
  .clock {
    display: none;
  }

  .brand {
    min-width: auto;
  }

  .nav-meta {
    align-items: center;
    gap: 14px;
  }

  .nav-meta a {
    display: none;
  }

  .menu-toggle,
  .mobile-panel {
    display: grid;
  }

  .hero-content {
    width: calc(100% - 36px);
    align-items: flex-start;
    gap: 72px;
    padding: 140px 0 44px;
  }

  .hero-top,
  .hero-bottom {
    flex-direction: column;
  }

  .hero-top {
    gap: 28px;
  }

  .availability {
    width: 100%;
  }

  .hero-bottom {
    gap: 32px;
    align-items: flex-start;
  }

  .hero-name {
    font-size: clamp(68px, 21vw, 80px);
    line-height: 96px;
    letter-spacing: -4.8px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-copy p {
    max-width: 420px;
  }

  .section-pad {
    width: calc(100% - 36px);
    padding: 84px 0;
  }

  .intro-grid,
  .profile-shell,
  .section-head,
  .service-grid,
  .writing-grid,
  .image-grid,
  .image-grid.two,
  .image-grid.tall,
  .detail-grid,
  .doc-head,
  .doc-layout,
  .doc-layout.reverse,
  .jinan-stats,
  .article-head,
  .article-layout,
  .inline-gallery,
  .inline-gallery.compact {
    grid-template-columns: 1fr;
  }

  .profile-shell {
    min-height: auto;
  }

  .profile-photo {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-copy {
    padding: 32px 18px;
  }

  .profile-copy h2 {
    margin: 24px 0 18px;
    font-size: clamp(58px, 17vw, 76px);
    line-height: 0.9;
    letter-spacing: -0.055em;
  }

  .profile-position {
    font-size: 22px;
    line-height: 1.2;
  }

  .profile-intro {
    font-size: 16px;
    line-height: 1.68;
  }

  .arrival-cover-copy {
    padding: 28px 18px;
  }

  /* Keep mobile project artwork intact; let each image define its own height. */
  .arrival-cover,
  .project-cover,
  .arrival-cover-link,
  .project-cover-link {
    min-height: auto;
  }

  .arrival-cover-link > img,
  .project-cover-link > img {
    position: relative;
    inset: auto;
    height: auto;
    object-fit: contain;
  }

  .arrival-cover-copy,
  .project-cover-copy {
    position: absolute;
    inset: 0;
    min-height: 0;
    justify-content: flex-end;
    padding: 12px 14px;
  }

  .arrival-cover-copy .project-meta,
  .project-cover-copy .project-meta {
    flex-direction: row;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.2;
  }

  .arrival-cover-copy p,
  .project-cover-copy p {
    display: none;
  }

  .arrival-cover-copy h3,
  .project-cover-copy h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.05;
  }

  .arrival-cover-copy .cover-cta,
  .project-cover-copy .cover-cta {
    margin-top: 0;
    padding: 6px 10px;
    font-size: 10px;
    line-height: 14px;
  }

  .project h3 {
    font-size: 23px;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .project-cover-copy h3,
  .arrival-cover-copy h3 {
    white-space: nowrap;
  }

  #services .section-head h2,
  .project-detail > .section-head h2 {
    font-size: 20px;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  #services .section-head h2 {
    font-size: 17px;
  }

  .arrival-detail-nav {
    position: static;
  }

  .arrival-detail {
    padding-top: 56px;
  }

  .project-detail {
    padding-top: 56px;
  }

  .carousel {
    grid-template-columns: 44px 1fr 44px;
  }

  .carousel-frame {
    min-height: 420px;
  }

  .doc-layout.reverse figure {
    order: 0;
  }

  .doc-layout figure {
    position: static;
  }

  .article-hero {
    position: static;
  }

  .article-body {
    margin-left: 0;
  }

  .article-stack {
    gap: 56px;
  }

  .article-body p {
    font-size: 16px;
  }

  .section-head {
    gap: 22px;
    margin-bottom: 44px;
  }

  .intro p,
  .project p {
    font-size: 16px;
  }

  .project-meta {
    flex-direction: column;
    gap: 6px;
  }

  .image-card.wide {
    grid-column: auto;
  }

  .image-card,
  .inline-gallery button {
    min-height: 0;
  }

  .image-card img,
  .detail-card img,
  .inline-gallery img,
  .writing-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .doc-layout figure img,
  .article-hero img,
  .article-inline-image img {
    max-height: none;
    height: auto;
    object-fit: contain;
  }

  .carousel-frame {
    min-height: 0;
  }

  .carousel-frame img {
    height: auto;
  }

  .service-grid {
    border-left: 0;
  }

  .service-card {
    border-left: 1px solid var(--line);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
