/* legacy.css */
:root {
  color-scheme: dark;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #f3f3f3;
  background-color: #050505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid rgba(218, 36, 39, 0.9);
  outline-offset: 4px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #0c0c0c 0%, #101010 50%, #070707 100%);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px 56px;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(96%, 1200px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  color: #fff;
}

.brand-mark img {
  display: block;
  max-height: 34px;
  width: auto;
}

.brand-name {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-link {
  color: #ddd;
  text-decoration: none;
  font-size: 0.98rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #e8e8e8;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, background 0.25s ease;
}

.cta-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.cta-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  margin: 0 0 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  padding: 60px 40px;
  background-image: url("assets/zjm/zjm-bg.webp");
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: transparent;
}

.hero::before {
  display: none;
}

.hero-overlay {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.hero-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 7rem);
  letter-spacing: 0.2em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hero h1::after {
  content: attr(data-text);
}

.hero-tagline {
  margin: 26px auto 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.76);
  letter-spacing: 0.06em;
}

.brand-showcase {
  margin: 48px 0 64px;
}

.designer-intro {
  margin: 64px 0 48px;
}

.designer-intro-header {
  text-align: center;
  margin-bottom: 48px;
}

.designer-intro-header h2 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 3vw, 3rem);
  color: #fff;
}

.designer-intro-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.designer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  min-height: 380px;
}

.designer-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.designer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.designer-card-bottom-left {
  align-items: flex-start;
}

.designer-card-center {
  grid-column: 2;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.designer-card-top-right {
  align-items: flex-end;
  justify-content: flex-start;
}

.designer-logo {
  max-width: 90px;
  max-height: 90px;
  width: auto;
  height: auto;
  margin-bottom: 20px;
}

.designer-info {
  margin-top: auto;
}

.designer-name {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
}

.designer-year {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

.designer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.designer-photo-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.designer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  gap: 12px;
  pointer-events: none;
}

.designer-card-center:hover .designer-overlay {
  opacity: 1;
}

.designer-overlay-label {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.designer-overlay-logo {
  max-width: 50px;
  max-height: 50px;
  width: auto;
  height: auto;
}

.designer-education {
  text-align: right;
}

.designer-school {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
}

.designer-major {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

.capability-section {
  margin: 64px 0 48px;
}

.capability-header {
  text-align: center;
  margin-bottom: 48px;
}

.capability-header h2 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 3vw, 3rem);
  color: #fff;
}

.capability-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.capability-card {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.capability-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.capability-card-sm {
  min-height: 280px;
}

.capability-card-lg {
  grid-column: 1 / -1;
  min-height: 200px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.capability-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.capability-card-lg .capability-icon {
  width: 64px;
  height: 64px;
}

.capability-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}

.capability-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.capability-card-lg h3 {
  font-size: 1.8rem;
}

.brand-showcase {
  margin: 48px 0 64px;
}

.brand-showcase-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.brand-showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 22px;
}

.brand-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #DA2427;
  transform: scale(0);
  opacity: 0;
  border-radius: inherit;
  transition: transform 0.18s ease, opacity 0.18s ease;
  transform-origin: center;
  z-index: 0;
}

.brand-card:hover::before {
  transform: scale(1);
  opacity: 1;
}

.brand-card:hover {
  border-color: #DA2427;
}

.brand-card img {
  position: relative;
  z-index: 1;
  max-width: 80%;
  max-height: 60px;
  width: auto;
  height: auto;
  transition: transform 0.18s ease;
}

.brand-card:hover img {
  transform: scale(1.2);
}

.section {
  padding: 48px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

/* 横向图片预览滚动区 */
.preview-scroller {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  -webkit-overflow-scrolling: touch;
  position: relative;
  scroll-behavior: auto;
}
.preview-scroller::-webkit-scrollbar { display: none; }
.scroller-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.preview-item {
  flex: 0 0 calc((100% - 48px) / 4);
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-item:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.6); }

@media (max-width: 900px) {
  .preview-item { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 520px) {
  .preview-item { flex: 0 0 100%; }
}

/* 包装器（用于将箭头从滚动层级中分离） */
.preview-wrapper {
  position: relative;
  margin: 40px 0; /* 预览滚动区上下间距 */
}

/* 悬浮箭头（不随横向内容滚动） */
.preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: background 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
  opacity: 0.95;
}
.preview-arrow:hover { background: rgba(0,0,0,0.65); transform: translateY(-50%) scale(1.03); }
.preview-arrow:active { transform: translateY(-50%) scale(0.98); }
.preview-arrow-left { left: calc((100% - min(1200px, 96%)) / 2 + 8px); }
.preview-arrow-right { right: calc((100% - min(1200px, 96%)) / 2 + 8px); }

@media (max-width: 720px) {
  .preview-arrow { display: none; }
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 32px;
  padding: 56px 32px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 36px; /* 增大标题与下方模块间距 */
}

.section-number {
  color: #777;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.28em;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 3vw, 3rem);
}

.section-description {
  max-width: 760px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.72);
}

/* 精选项目预览与概述模块 */
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 26px; /* 增大条目间距 */
  margin-bottom: 48px; /* 精选列表底部间距 */
}
.featured-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 18px 56px; /* 留出空间用于右下角按钮 */
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.featured-thumb {
  flex: 0 0 320px;
  width: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #0b0b0b;
}
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-info { flex: 1 1 auto; }
.featured-title {
  margin: 0 0 8px;
  font-size: 1.8rem; /* 放大标题字号 */
  color: #fff;
  line-height: 1.05;
}
.featured-meta {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.64);
  font-size: 0.95rem;
}
.featured-desc { margin: 0; color: rgba(255,255,255,0.78); }

/* 右下角“了解详情”按钮 */
.details-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #DA2427;
  color: #DA2427;
  text-decoration: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.details-btn:hover {
  background: #DA2427;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .details-btn {
    position: static;
    display: inline-block;
    margin-top: 12px;
    align-self: flex-end;
  }
}

@media (max-width: 880px) {
  .featured-thumb { flex: 0 0 220px; width: 220px; }
  .featured-title { font-size: 1.5rem; }
}
@media (max-width: 640px) {
  .featured-item { flex-direction: column; }
  .featured-thumb { width: 100%; flex: 0 0 auto; aspect-ratio: 16 / 9; }
}

.card-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 0 40px; /* 卡片网格下方间距 */
}

.card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  min-height: 190px;
  transition: transform 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 0, 0, 0.95);
  border-color: rgba(255, 0, 0, 0.9);
  box-shadow: 0 20px 50px rgba(255, 0, 0, 0.18);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  transition: color 0.28s ease;
}

.card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.28s ease;
}

.card:hover h3,
.card:hover p {
  color: #fff;
}

.about-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.about-grid h3 {
  margin-top: 0;
}

.about-grid p,
.about-grid ul {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.about-grid ul {
  list-style: none;
  padding: 0;
}

.about-grid li {
  margin-bottom: 10px;
}

@media (max-width: 840px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    margin: 20px 0 48px;
    padding: 48px 24px;
  }

  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .page-shell {
    padding: 18px 18px 40px;
  }

  .hero {
    min-height: 80vh;
    padding: 36px 18px;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Contact CTA */
.contact-cta {
  margin: 64px 0 80px;
  padding: 48px 0;
  text-align: center;
}

.contact-cta {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  --contact-title-size: clamp(3.6rem, 10vw, 6.8rem);
}

.contact-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  /* total height should match title: divide title size by 3 for three characters */
  font-size: calc(var(--contact-title-size) / 3);
  line-height: 1;
  gap: 4px;
  letter-spacing: 0.06em;
  transform: none;
}

.contact-vertical span {
  display: block;
  text-align: center;
}

.contact-title {
  margin: 0;
  font-weight: 700;
  color: #fff;
  font-size: var(--contact-title-size);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.contact-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  /* default arrow size relative to title */
  --contact-arrow-size: calc(var(--contact-title-size) * 0.12 * 4);
  font-size: var(--contact-arrow-size);
  /* push arrow (and its circle) slightly down to align with title bottom */
  transform: translateY(calc(var(--contact-title-size) * 0.08));
}

.contact-symbol {
  position: relative;
  z-index: 2;
  font-size: 1em;
  line-height: 1;
}

.contact-symbol {
  transition: transform 0.18s ease;
  display: inline-block;
  transform-origin: center;
}

.contact-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  /* diameter slightly larger than arrow length (120%) */
  width: calc(var(--contact-arrow-size, 24px) * 1.2);
  height: calc(var(--contact-arrow-size, 24px) * 1.2);
  border-radius: 50%;
  background: #DA2427;
  opacity: 0;
  z-index: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
  transform-origin: center;
}

.contact-cta:hover .contact-circle {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.contact-cta:hover .contact-symbol {
  transform: translate(calc(var(--contact-arrow-size) * 0.25), calc(var(--contact-arrow-size) * -0.25)) scale(1.08);
}

@media (max-width: 680px) {
  .contact-cta:hover .contact-symbol {
    transform: translate(calc(var(--contact-arrow-size) * 0.18), calc(var(--contact-arrow-size) * -0.18)) scale(1.05);
  }
}

@media (max-width: 680px) {
  .contact-inner { gap: 18px; }
  .contact-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .contact-vertical { font-size: calc(var(--contact-title-size) / 3); }
  .contact-arrow { --contact-arrow-size: calc(var(--contact-title-size) * 0.12 * 4); font-size: var(--contact-arrow-size); padding: 10px 12px; transform: translateY(calc(var(--contact-title-size) * 0.08)); }
  .contact-circle { width: calc(var(--contact-arrow-size) * 1.2); height: calc(var(--contact-arrow-size) * 1.2); }
}

/* 项目详情页样式 */
.project-tabs {
  position: static;
  display: flex;
  gap: 12px;
  margin: 8px 0 18px; /* 顶部间距微调 */
  padding: 8px 6px;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.22);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.project-tabs a {
  /* 与顶栏主导航 `.nav-link` 对齐的样式 */
  color: #ddd;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.25s ease;
}
.project-tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #e8e8e8;
  transition: width 0.25s ease;
}
.project-tabs a:hover,
.project-tabs a.active { color: #fff; }
.project-tabs a:hover::after,
.project-tabs a.active::after { width: 100%; }

/* About page: profile layout */
.profile-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}
.profile-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.profile-avatar-wrapper {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  width: 100%;
}
.profile-avatar {
  width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.35);
  flex-shrink: 0;
}
.profile-info-top {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 8px;
  flex: 1;
}
.profile-name { 
  margin: 0; 
  font-size: 1.6rem; 
  color: #fff; 
}
.profile-name small { 
  font-weight: 600; 
  color: rgba(255,255,255,0.7); 
  margin-left: 8px; 
  font-size: 0.8rem; 
}
.profile-role { 
  margin: 2px 0 0; 
  color: rgba(255,255,255,0.76); 
}
.profile-meta { 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  width: 100%;
  text-align: left;
}
.contact-list { list-style: disc; margin: 0 0 8px 18px; padding: 0; color: rgba(255,255,255,0.86); }
.contact-list li { margin-bottom: 6px; }
.skills h4 { margin: 8px 0 6px; font-size: 0.95rem; }
.skill-badges { display:flex; gap:8px; flex-wrap:wrap; }
.badge { background: rgba(255,255,255,0.06); padding:6px 10px; border-radius:6px; font-weight:700; color:#fff; font-size:0.85rem; }

@media (max-width: 900px) {
  .profile-card { grid-template-columns: 1fr; }
  .profile-left { align-items: center; }
  .profile-avatar { width: 120px; }
}

/* 增加右侧卡片模块的垂直间距 */
.profile-right .card {
  margin-bottom: 32px;
  padding: 22px;
}
.profile-right .card:last-child { margin-bottom: 0; }
.project-tabs a.active,
.project-tabs a:hover { color: #fff; background: transparent; }

.project-page { margin: 0 0 60px; }
.project-main img { width: 100%; height: auto; border-radius: 0; display: block; }
.project-intro { margin: 18px 0; color: rgba(255,255,255,0.85); }
.detail-tabs {
  margin: 12px 0 22px;
}
.tab-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: #ddd;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.tab-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #DA2427;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active { 
  color: #fff; 
  background: rgba(218, 36, 39, 0.15);
}
.tab-btn.active::after {
  width: 60%;
}
.tab-panels { color: rgba(255,255,255,0.9); }
.tab-panel { display: block; padding: 12px 8px; background: rgba(255,255,255,0.02); border-radius: 8px; }
.tab-panel[hidden] { display: none; }
.project-gallery { display: block; gap: 0; }
.project-gallery img { width: 100%; height: auto; object-fit: cover; border-radius: 0; display: block; margin: 0; padding: 0; }

/* 画廊下方的缩略预览条 */
.gallery-preview {
  /* default: fixed vertical preview on the right */
  --preview-w: 140px;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--preview-w);
  height: min(72vh, 760px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 12px 8px;
  background: rgba(10,10,10,0.6);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.48);
  z-index: 80;
}
.gallery-preview::-webkit-scrollbar { width: 8px; }
.gallery-preview .thumb {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}
.gallery-preview .thumb.active {
  border-color: #DA2427;
  transform: scale(1.02);
}

/* Ensure gallery content is not covered by the fixed preview */
@media (min-width: 900px) {
  .project-page { margin-right: calc(var(--preview-w) + 48px); }
}

/* On small screens revert to horizontal strip under gallery */
@media (max-width: 899px) {
  .gallery-preview {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 4px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .gallery-preview .thumb { width: 96px; height: auto; aspect-ratio: 3/4; border-radius: 4px; }
  .project-page { margin-right: 0; }
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background-color: #DA2427; /* 红色圆形背景 */
  color: transparent; /* 隐藏文字，使用图标背景 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polygon fill='%23FFFFFF' points='12,4 5,11 9,11 9,20 15,20 15,11 19,11'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56%;
}

.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.4); }

@media (max-width: 680px) {
  .back-to-top { width: 56px; height: 56px; right: 14px; bottom: 18px; }
}

@media (max-width: 720px) {
  .project-tabs { margin-top: 80px; }
}

/* 页签面板占位图片样式 */
.placeholder-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.placeholder-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.tab-panel p {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Logo画廊样式 */
.logo-gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.logo-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: block;
}

.logo-gallery img:hover {
  opacity: 0.95;
}

/* 项目主图缩略图（位于缩略图滚动条上方） */
.main-image-thumb {
  width: 117px;
  height: 50px;
  position: fixed;
  right: calc(23px + (140px - 117px) / 2);
  bottom: calc(50% + min(36vh, 380px) + 10px);
  cursor: pointer;
  z-index: 80;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.6);
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.main-image-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-color: #DA2427;
}

.main-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 移动端适配 */
@media (max-width: 899px) {
  .main-image-thumb {
    position: static;
    width: 96px;
    height: auto;
    margin: 0 auto 12px;
    display: block;
  }
  
  .gallery-preview {
    justify-content: center;
  }
}

/* 详情页底部横向滚动区（与作品页面相同） */
.related-works {
  margin: 80px 0 40px;
}

.related-works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 8px;
}

.related-works-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: #fff;
  font-weight: 600;
}

.view-all-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .related-works {
    margin: 60px 0 30px;
  }
  
  .related-works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

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

  .hero-copy,
  .card:hover,
  .capability-card:hover,
  .preview-item:hover,
  .brand-card:hover img,
  .contact-cta:hover .contact-symbol,
  .back-to-top:hover {
    transform: none !important;
  }
}

/* Mobile browser adaptation */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .page-shell {
    width: 100%;
    padding: 12px 16px 36px;
  }

  .topbar {
    position: sticky;
    top: 8px;
    left: auto;
    transform: none;
    width: 100%;
    z-index: 100;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-link,
  .brand-mark {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }

  .brand-mark img {
    max-height: 30px;
  }

  .cta-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 44px;
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    gap: 6px;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    background: rgba(218, 36, 39, 0.2);
  }

  .hero {
    min-height: clamp(360px, 68dvh, 560px);
    aspect-ratio: auto;
    margin: 18px 0 44px;
    padding: 44px 18px;
    border-radius: 18px;
    background-position: center top;
  }

  .hero-label {
    font-size: 0.76rem;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 14vw, 4.15rem);
    letter-spacing: 0.055em;
    overflow-wrap: anywhere;
  }

  .hero-tagline,
  .designer-intro-subtitle,
  .capability-subtitle,
  .section-description,
  .project-intro {
    font-size: 0.98rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
  }

  .designer-intro,
  .capability-section,
  .brand-showcase {
    margin: 44px 0;
  }

  .designer-intro-header,
  .capability-header {
    margin-bottom: 24px;
  }

  .designer-intro-header h2,
  .capability-header h2,
  .section h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.15;
  }

  .designer-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
  }

  .designer-card-center {
    grid-column: auto;
    min-height: 360px;
  }

  .designer-card {
    min-height: 180px;
    padding: 22px;
    border-radius: 18px;
  }

  .designer-photo {
    border-radius: 18px;
  }

  .designer-card-top-right,
  .designer-education {
    align-items: flex-start;
    text-align: left;
  }

  .capability-grid,
  .card-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .capability-card,
  .capability-card-sm,
  .capability-card-lg,
  .card {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .brand-card {
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .brand-card img {
    max-width: 88%;
    max-height: 48px;
  }

  .section {
    padding: 36px 0;
  }

  .section-alt {
    padding: 28px 18px;
    border-radius: 18px;
  }

  .section-header {
    gap: 10px;
    margin-bottom: 24px;
  }

  .preview-wrapper {
    margin: 26px 0;
  }

  .preview-scroller {
    padding: 8px;
    border-radius: 14px;
  }

  .scroller-track {
    gap: 12px;
  }

  .preview-item {
    flex-basis: 78%;
    border-radius: 12px;
  }

  .featured-list {
    gap: 18px;
  }

  .featured-item {
    padding: 14px;
    border-radius: 14px;
  }

  .featured-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .details-btn {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .contact-cta {
    margin: 42px 0 52px;
    padding: 28px 0;
  }

  .contact-inner {
    width: 100%;
    gap: 12px;
    --contact-title-size: clamp(2.1rem, 13vw, 3.7rem);
  }

  .contact-title {
    min-width: 0;
    gap: 6px;
    white-space: nowrap;
  }

  .contact-vertical {
    flex: 0 0 auto;
  }

  .project-tabs {
    margin: 16px 0 18px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
    border-radius: 14px;
    scrollbar-width: none;
  }

  .project-tabs::-webkit-scrollbar {
    display: none;
  }

  .project-tabs a {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 9px 12px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
  }

  .project-tabs a::after {
    display: none;
  }

  .project-tabs a.active {
    background: rgba(218, 36, 39, 0.2);
  }

  .project-main img,
  .project-gallery img,
  .logo-gallery img {
    border-radius: 0;
  }

  .project-intro {
    margin: 16px 0 22px;
  }

  .tab-buttons {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .tab-buttons::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 9px 14px;
  }

  .tab-panel {
    padding: 10px 0;
    background: transparent;
  }

  .gallery-preview {
    justify-content: flex-start;
    gap: 8px;
    margin: 12px 0 0;
    padding: 8px 2px;
    scrollbar-width: none;
  }

  .gallery-preview::-webkit-scrollbar {
    display: none;
  }

  .gallery-preview .thumb {
    width: 76px;
    min-width: 76px;
  }

  .main-image-thumb {
    width: 104px;
    margin: 12px 0;
  }

  .profile-avatar-wrapper {
    align-items: center;
  }

  .profile-left {
    align-items: stretch;
  }

  .profile-avatar {
    width: 104px;
  }

  .profile-name {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .profile-right .card {
    margin-bottom: 18px;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 12px;
  }

  .topbar {
    border-radius: 16px;
  }

  .nav-link,
  .project-tabs a,
  .tab-btn {
    font-size: 0.88rem;
    padding-inline: 9px;
  }

  .hero {
    min-height: 330px;
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13.5vw, 3.25rem);
    letter-spacing: 0.035em;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .preview-item {
    flex-basis: 86%;
  }

  .contact-inner {
    --contact-title-size: clamp(1.9rem, 12vw, 3rem);
  }

  .profile-avatar-wrapper {
    gap: 12px;
  }
}

/* optimizations.css */
/* Performance and mobile refinements layered over the legacy stylesheet. */

html {
  background: #050505;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #0c0c0c 0%, #101010 50%, #070707 100%);
}

.hero {
  width: 100dvw;
  height: 100dvh;
  min-height: 640px;
  margin-top: -120px;
  margin-left: calc(50% - 50dvw);
  border-radius: 0;
  will-change: width, height, margin-left, margin-top, border-radius;
}

.hero-copy {
  transform-origin: center center;
}

@media (max-width: 760px) {
  .hero {
    width: 100%;
    height: auto;
    min-height: clamp(360px, 68dvh, 560px);
    margin-top: 18px;
    margin-left: 0;
    background-image: url("assets/zjm/zjm-bg-mobile.webp");
  }
}

.project-tabs {
  position: sticky;
  top: var(--project-tabs-top, 92px);
  z-index: 70;
}

@media (max-width: 760px) {
  .project-tabs {
    top: var(--project-tabs-top, 124px);
  }
}

.project-gallery img,
.logo-gallery img {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

img[data-lazy-state] {
  opacity: 0;
  transition: opacity 0.28s ease;
}

img[data-lazy-state="loaded"] {
  opacity: 1;
}

img[data-lazy-state="error"] {
  min-height: 220px;
  opacity: 1;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(218, 36, 39, 0.2), rgba(255, 255, 255, 0.04)),
    #111;
}

.topbar.is-compact {
  padding-block: 8px;
  background: rgba(18, 18, 18, 0.82);
}

.project-showcase-heading {
  margin: -18px 0 22px;
}

.project-showcase-heading p {
  margin: 0 0 8px;
  color: #da2427;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.project-showcase-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.project-switcher {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  min-height: 500px;
  margin: 0 0 72px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 16%, rgba(218, 36, 39, 0.28), transparent 34%),
    linear-gradient(135deg, #111 0%, #050505 58%, #0f0f0f 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.project-switcher::before {
  content: "";
  position: absolute;
  inset: auto 8% -45% auto;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(218, 36, 39, 0.14);
  filter: blur(80px);
  z-index: -1;
}

.project-switcher-stage {
  position: relative;
  width: 100%;
  min-height: clamp(390px, 41.4vw, 548px);
  perspective: 1200px;
}

.project-switcher-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(268px, 28.5vw, 378px);
  height: clamp(358px, 38vw, 505px);
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #181818;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
  transform-style: preserve-3d;
  transition:
    transform 0.62s cubic-bezier(0.2, 0.8, 0.22, 1),
    opacity 0.38s ease,
    filter 0.38s ease,
    box-shadow 0.38s ease;
  will-change: transform, opacity;
}

.project-switcher-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-switcher-card.is-active {
  z-index: 5;
  opacity: 1;
  filter: saturate(1.08) contrast(1.02);
  transform: translate3d(-50%, -50%, 100px) rotateY(0deg) scale(1);
}

.project-switcher-card.is-next {
  z-index: 4;
  opacity: 0.8;
  filter: saturate(0.88) brightness(0.8);
  transform: translate3d(calc(-50% + 86px), calc(-50% - 24px), 0) rotateY(-15deg) rotateZ(2deg) scale(0.9);
}

.project-switcher-card.is-prev {
  z-index: 3;
  opacity: 0.68;
  filter: saturate(0.78) brightness(0.7);
  transform: translate3d(calc(-50% - 86px), calc(-50% + 24px), -70px) rotateY(15deg) rotateZ(-2deg) scale(0.88);
}

.project-switcher-card.is-hidden {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  filter: blur(2px) brightness(0.45);
  transform: translate3d(-50%, -50%, -180px) rotateY(28deg) scale(0.72);
}

.project-switcher-copy {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 384px;
  color: #fff;
}

.project-switcher-kicker {
  margin: 0 0 14px;
  color: #da2427;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.project-switcher-copy h2 {
  margin: 0;
  min-height: 9.1rem;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.project-switcher-year {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  font-weight: 700;
}

.project-switcher-desc {
  max-width: 520px;
  min-height: 7.2rem;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.9;
}

.project-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: #da2427;
  box-shadow: 0 14px 34px rgba(218, 36, 39, 0.32);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.project-switcher-link:hover {
  transform: translateY(-2px);
  background: #f03a3d;
  box-shadow: 0 18px 42px rgba(218, 36, 39, 0.42);
}

.project-switcher-actions {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 34px;
}

.project-switcher-button {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: #da2427;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(218, 36, 39, 0.32);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.project-switcher-button:hover {
  transform: translateY(-2px);
  background: #f03a3d;
  border-color: rgba(255, 255, 255, 0.28);
}

.project-switcher-button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.project-switcher-copy.is-animating [data-animate-line] {
  animation: projectSwitcherLine 0.5s cubic-bezier(0.2, 0.78, 0.22, 1) both;
}

.project-switcher-copy.is-animating [data-animate-line]:nth-child(2) {
  animation-delay: 0.06s;
}

.project-switcher-copy.is-animating [data-animate-line]:nth-child(3) {
  animation-delay: 0.12s;
}

.project-switcher-copy.is-animating [data-animate-line]:nth-child(4) {
  animation-delay: 0.18s;
}

.project-switcher-copy.is-animating [data-animate-line]:nth-child(5) {
  animation-delay: 0.24s;
}

.collaboration-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  margin: 56px 0 0;
  padding: clamp(28px, 4.5vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 16%, rgba(218, 36, 39, 0.18), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(22, 22, 22, 0.96), rgba(8, 8, 8, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.collaboration-copy {
  min-width: 0;
}

.collaboration-kicker {
  margin: 0 0 10px;
  color: #da2427;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.collaboration-copy h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.collaboration-text {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.8;
}

.collaboration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  margin-top: 28px;
}

.collaboration-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: #da2427;
  box-shadow: 0 16px 42px rgba(218, 36, 39, 0.34);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.collaboration-primary:hover {
  transform: translateY(-2px);
  background: #f03a3d;
  box-shadow: 0 20px 52px rgba(218, 36, 39, 0.44);
}

.collaboration-primary svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.collaboration-email-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.collaboration-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 700;
}

.collaboration-email-text {
  overflow-wrap: anywhere;
}

.collaboration-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.collaboration-copy-button:hover,
.collaboration-copy-button.is-copied {
  color: #fff;
  border-color: rgba(218, 36, 39, 0.44);
  background: rgba(218, 36, 39, 0.24);
}

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

.collaboration-copy-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.collaboration-email-icon,
.collaboration-socials a {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.collaboration-email-icon svg,
.collaboration-socials svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.collaboration-socials {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.collaboration-socials a {
  text-decoration: none;
  transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.collaboration-socials a:hover {
  transform: translateY(-3px);
  color: #da2427;
  border-color: rgba(218, 36, 39, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

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

@media (max-width: 760px) {
  .topbar.is-compact {
    padding-block: 8px;
  }

  .project-switcher {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    margin-bottom: 54px;
    padding: 24px 16px 26px;
    border-radius: 22px;
  }

  .project-switcher-stage {
    min-height: clamp(330px, 96vw, 440px);
    order: 1;
  }

  .project-switcher-card {
    width: min(68vw, 304px);
    height: min(90.8vw, 406px);
    border-radius: 20px;
  }

  .project-switcher-card.is-next {
    transform: translate3d(calc(-50% + 54px), calc(-50% - 18px), 0) rotateY(-11deg) rotateZ(2deg) scale(0.9);
  }

  .project-switcher-card.is-prev {
    transform: translate3d(calc(-50% - 54px), calc(-50% + 18px), -70px) rotateY(11deg) rotateZ(-2deg) scale(0.88);
  }

  .project-switcher-copy {
    order: 2;
    min-height: 430px;
    text-align: left;
  }

  .project-switcher-copy h2 {
    min-height: 6.8rem;
    font-size: clamp(2rem, 12vw, 3.4rem);
    overflow-wrap: anywhere;
  }

  .project-switcher-desc {
    min-height: 9.2rem;
    margin-top: 22px;
    line-height: 1.75;
  }

  .project-switcher-actions {
    margin-top: auto;
    padding-top: 24px;
  }

  .project-switcher-button {
    width: 52px;
    height: 52px;
  }

  .collaboration-cta {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 40px;
    padding: 26px 18px;
    border-radius: 22px;
  }

  .collaboration-copy h2 {
    font-size: clamp(2rem, 11vw, 3.15rem);
    overflow-wrap: anywhere;
  }

  .collaboration-actions {
    align-items: stretch;
  }

  .collaboration-primary {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
  }

  .collaboration-email-row {
    width: 100%;
    flex-wrap: wrap;
  }

  .collaboration-email {
    flex: 1 1 100%;
    min-width: 0;
  }

  .collaboration-copy-button {
    margin-left: 62px;
  }

  .collaboration-socials {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .collaboration-email-icon,
  .collaboration-socials a {
    width: 50px;
    height: 50px;
  }
}

.back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: none) {
  .card:hover,
  .capability-card:hover,
  .preview-item:hover,
  .brand-card:hover img,
  .project-switcher-link:hover,
  .project-switcher-button:hover,
  .collaboration-primary:hover,
  .collaboration-copy-button:hover,
  .collaboration-socials a:hover,
  .back-to-top:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .project-switcher-card,
  .project-switcher-link,
  .project-switcher-button,
  .collaboration-primary,
  .collaboration-copy-button,
  .collaboration-socials a,
  .project-switcher-copy.is-animating [data-animate-line] {
    animation: none;
    transition: none;
  }
}

/* Concept visual language: dark editorial portfolio system. */
:root {
  --concept-bg: #030207;
  --concept-surface: rgba(8, 7, 14, 0.9);
  --concept-surface-strong: rgba(15, 13, 24, 0.94);
  --concept-line: rgba(255, 255, 255, 0.12);
  --concept-line-soft: rgba(255, 255, 255, 0.07);
  --concept-text: #fbf9ff;
  --concept-muted: rgba(251, 249, 255, 0.66);
  --concept-faint: rgba(251, 249, 255, 0.42);
  --concept-violet: #7b4dff;
  --concept-blue: #4f7bff;
  --concept-pink: #ff3da7;
  --concept-red: #da2427;
  --concept-gradient: linear-gradient(92deg, var(--concept-blue) 0%, var(--concept-violet) 48%, var(--concept-pink) 100%);
  --concept-panel-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 36%, rgba(123, 77, 255, 0.075));
  --concept-shadow: 0 28px 90px rgba(0, 0, 0, 0.52), 0 0 70px rgba(123, 77, 255, 0.1);
}

html {
  background: var(--concept-bg);
}

body {
  color: var(--concept-text);
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(79, 123, 255, 0.13) 31%, transparent 45%),
    linear-gradient(245deg, transparent 0 25%, rgba(255, 61, 167, 0.14) 42%, transparent 58%),
    linear-gradient(180deg, #040306 0%, #090612 42%, #030207 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    repeating-radial-gradient(ellipse at 25% 0%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 58%);
}

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

::selection {
  color: #fff;
  background: rgba(123, 77, 255, 0.58);
}

:focus-visible {
  outline-color: rgba(123, 77, 255, 0.95);
}

.topbar {
  background: rgba(5, 4, 10, 0.72);
  border-color: var(--concept-line);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar.is-compact {
  background: rgba(5, 4, 10, 0.88);
  border-color: rgba(123, 77, 255, 0.28);
}

.brand,
.hero-label,
.project-showcase-heading p,
.project-switcher-kicker,
.collaboration-kicker,
.featured-meta,
.time-year,
.muted,
.section-description,
.project-intro,
.designer-intro-subtitle,
.capability-header p,
.brand-showcase-subtitle,
.profile-role {
  color: var(--concept-muted);
}

.brand-name,
.hero-label,
.project-showcase-heading p,
.project-switcher-kicker,
.collaboration-kicker,
.featured-meta,
.time-year,
.muted {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-link {
  color: rgba(251, 249, 255, 0.72);
  font-weight: 700;
}

.nav-link::after {
  height: 1px;
  background: var(--concept-gradient);
  box-shadow: 0 0 18px rgba(123, 77, 255, 0.55);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.cta-link,
.project-switcher-link,
.collaboration-primary,
.details-btn,
.view-all-link,
.back-to-top,
.tab-btn.active,
.project-tabs a.active {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background:
    linear-gradient(#0b0914, #0b0914) padding-box,
    var(--concept-gradient) border-box;
  box-shadow: 0 16px 44px rgba(123, 77, 255, 0.24);
}

.cta-link:hover,
.project-switcher-link:hover,
.collaboration-primary:hover,
.details-btn:hover,
.view-all-link:hover,
.back-to-top:hover {
  background:
    linear-gradient(92deg, rgba(79, 123, 255, 0.18), rgba(123, 77, 255, 0.26), rgba(255, 61, 167, 0.2)) padding-box,
    var(--concept-gradient) border-box;
  box-shadow: 0 20px 58px rgba(255, 61, 167, 0.22);
}

.project-switcher-button,
.preview-arrow,
.collaboration-copy-button,
.collaboration-email-icon,
.collaboration-socials a,
.main-image-thumb {
  color: #fff;
  background: rgba(11, 9, 20, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42), 0 0 28px rgba(123, 77, 255, 0.12);
}

.project-switcher-button:hover,
.preview-arrow:hover,
.collaboration-copy-button:hover,
.collaboration-copy-button.is-copied,
.collaboration-socials a:hover,
.main-image-thumb:hover {
  color: #fff;
  border-color: rgba(255, 61, 167, 0.5);
  background: rgba(123, 77, 255, 0.24);
}

.hero {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 34px 120px rgba(0, 0, 0, 0.55);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 2, 7, 0.34), transparent 34%, rgba(3, 2, 7, 0.28)),
    linear-gradient(180deg, rgba(3, 2, 7, 0.16), transparent 36%, rgba(3, 2, 7, 0.52));
}

.hero-copy {
  z-index: 2;
}

.hero-label,
.project-showcase-heading p,
.project-switcher-kicker,
.collaboration-kicker {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: var(--concept-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-switcher-kicker,
.collaboration-kicker {
  margin-left: 0;
}

.hero h1,
.project-showcase-heading h2,
.project-switcher-copy h2,
.designer-intro-header h2,
.capability-header h2,
.brand-showcase-title,
.section-header h1,
.related-works-header h2,
.featured-title,
.profile-name,
.profile-right .card h2,
.collaboration-copy h2 {
  font-family: "Arial Black", "Segoe UI", Tahoma, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.project-showcase-heading h2,
.collaboration-copy h2 {
  text-shadow: 0 0 34px rgba(123, 77, 255, 0.2), 0 24px 70px rgba(0, 0, 0, 0.62);
}

.designer-card,
.capability-card,
.brand-card,
.card,
.featured-item,
.preview-item,
.project-switcher,
.collaboration-cta,
.profile-card,
.project-tabs,
.project-main img,
.project-gallery img,
.logo-gallery img,
.gallery-preview .thumb,
.main-image-thumb {
  border-color: var(--concept-line);
  background: var(--concept-panel-gradient), var(--concept-surface);
  box-shadow: var(--concept-shadow);
}

.project-switcher,
.collaboration-cta,
.profile-card,
.featured-item,
.card,
.designer-card,
.capability-card,
.brand-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.project-switcher::after,
.collaboration-cta::after,
.profile-card::after,
.featured-item::after,
.card::after,
.designer-card::after,
.capability-card::after,
.brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at 78% 18%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 10px),
    linear-gradient(130deg, transparent 0 54%, rgba(123, 77, 255, 0.18) 78%, transparent 100%);
}

.project-switcher {
  border-radius: 18px;
  background:
    linear-gradient(118deg, rgba(79, 123, 255, 0.12), transparent 32%),
    linear-gradient(248deg, rgba(255, 61, 167, 0.16), transparent 44%),
    var(--concept-panel-gradient),
    #040307;
}

.project-switcher::before {
  display: none;
}

.project-switcher-card {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.18);
  background: #07050c;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.6), 0 0 36px rgba(123, 77, 255, 0.16);
}

.project-switcher-copy h2 {
  background: linear-gradient(180deg, #fff 0%, #f3efff 52%, #a998ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-switcher-year,
.featured-meta {
  color: #fff;
}

.project-switcher-desc,
.featured-desc,
.profile-meta,
.contact-list,
.profile-right .card p,
.profile-right .card li,
.project-intro,
.section-description,
.collaboration-text {
  color: var(--concept-muted);
}

.designer-card:hover,
.capability-card:hover,
.brand-card:hover,
.featured-item:hover,
.preview-item:hover {
  border-color: rgba(255, 61, 167, 0.36);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58), 0 0 48px rgba(123, 77, 255, 0.18);
}

.brand-card {
  border-radius: 12px;
}

.brand-card-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.brand-card::before {
  background: linear-gradient(135deg, rgba(79, 123, 255, 0.18), rgba(255, 61, 167, 0.18));
}

.card-grid .card,
.profile-right .card {
  border-radius: 14px;
}

.badge {
  color: #fff;
  border: 1px solid rgba(123, 77, 255, 0.34);
  background: rgba(123, 77, 255, 0.16);
}

.project-tabs {
  background: rgba(5, 4, 10, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.project-tabs a,
.tab-btn {
  color: rgba(251, 249, 255, 0.7);
  font-weight: 800;
}

.project-tabs a::after,
.tab-btn::after {
  background: var(--concept-gradient);
}

.project-main img,
.project-gallery img,
.logo-gallery img {
  border-radius: 12px;
}

.gallery-preview {
  background: rgba(5, 4, 10, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.gallery-preview .thumb.active {
  border-color: rgba(255, 61, 167, 0.72);
  box-shadow: 0 0 0 2px rgba(123, 77, 255, 0.24), 0 16px 36px rgba(0, 0, 0, 0.42);
}

.preview-scroller {
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.preview-item {
  border: 1px solid var(--concept-line);
  border-radius: 16px;
}

.preview-item img,
.featured-thumb img {
  filter: saturate(1.04) contrast(1.02);
}

.featured-item {
  border-radius: 16px;
}

.featured-thumb {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.details-btn,
.view-all-link {
  border-radius: 999px;
  text-decoration: none;
}

.collaboration-cta {
  border-radius: 18px;
  background:
    linear-gradient(118deg, rgba(79, 123, 255, 0.14), transparent 34%),
    linear-gradient(250deg, rgba(255, 61, 167, 0.18), transparent 44%),
    var(--concept-panel-gradient),
    #05040a;
}

.collaboration-email {
  color: var(--concept-muted);
}

.collaboration-socials a:hover {
  color: #fff;
}

.profile-avatar {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), 0 0 42px rgba(123, 77, 255, 0.16);
}

.profile-name small {
  color: var(--concept-faint);
}

@media (max-width: 760px) {
  body::before {
    opacity: 0.26;
  }

  .hero h1,
  .project-showcase-heading h2,
  .project-switcher-copy h2,
  .designer-intro-header h2,
  .capability-header h2,
  .brand-showcase-title,
  .section-header h1,
  .related-works-header h2,
  .profile-name,
  .collaboration-copy h2 {
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.45rem) !important;
    line-height: 1.04;
    letter-spacing: 0.04em;
  }

  .topbar {
    background: rgba(5, 4, 10, 0.86);
  }

  .nav-link {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .project-switcher,
  .collaboration-cta,
  .profile-card,
  .featured-item,
  .card,
  .designer-card,
  .capability-card,
  .brand-card {
    border-radius: 16px;
  }

  .preview-scroller {
    mask-image: none;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(1.95rem, 9.8vw, 2.35rem) !important;
  }
}

/* Homepage title system, excluding the bottom Reach Me contact title. */
body:has(.hero) {
  --home-title-size: clamp(2.6rem, 6.2vw, 4.9rem);
  --home-title-line: 0.96;
  --home-title-weight: 900;
}

body:has(.hero) .hero h1,
body:has(.hero) .project-showcase-heading h2,
body:has(.hero) .project-switcher-copy h2,
body:has(.hero) .designer-intro-header h2,
body:has(.hero) .capability-header h2,
body:has(.hero) .brand-showcase-title,
body:has(.hero) .collaboration-copy h2 {
  font-family: "Arial Black", "Segoe UI", Tahoma, sans-serif;
  font-size: var(--home-title-size) !important;
  font-weight: var(--home-title-weight);
  line-height: var(--home-title-line);
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 34px rgba(123, 77, 255, 0.22), 0 20px 62px rgba(0, 0, 0, 0.58);
}

body:has(.hero) .project-showcase-heading h2,
body:has(.hero) .project-switcher-copy h2,
body:has(.hero) .brand-showcase-title,
body:has(.hero) .collaboration-copy h2 {
  width: fit-content;
  max-width: 100%;
  background: linear-gradient(180deg, #fff 0%, #f5f1ff 54%, #9f91ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body:has(.hero) .designer-intro-header h2,
body:has(.hero) .capability-header h2 {
  margin-left: auto;
  margin-right: auto;
}

body:has(.hero) .brand-showcase-header {
  display: block;
  margin-bottom: 30px;
  letter-spacing: 0;
  text-align: center;
}

body:has(.hero) .brand-showcase-dot {
  display: none;
}

body:has(.hero) .brand-showcase-title {
  display: inline-block;
}

body:has(.hero) .project-switcher-copy h2 {
  min-height: calc(var(--home-title-size) * 2.05);
}

body:has(.hero) .collaboration-copy h2 {
  max-width: 820px;
}

@media (max-width: 760px) {
  body:has(.hero) {
    --home-title-size: clamp(2.15rem, 10.8vw, 3.05rem);
    --home-title-line: 1.02;
  }

  body:has(.hero) .hero h1,
  body:has(.hero) .project-showcase-heading h2,
  body:has(.hero) .project-switcher-copy h2,
  body:has(.hero) .designer-intro-header h2,
  body:has(.hero) .capability-header h2,
  body:has(.hero) .brand-showcase-title,
  body:has(.hero) .collaboration-copy h2 {
    overflow-wrap: anywhere;
  }

  body:has(.hero) .project-switcher-copy h2 {
    min-height: calc(var(--home-title-size) * 2.35);
  }
}

@media (max-width: 420px) {
  body:has(.hero) {
    --home-title-size: clamp(1.95rem, 9.8vw, 2.35rem);
  }
}

/* Homepage section title refinement. */
body:has(.hero) {
  --home-section-title-size: clamp(2rem, 4.1vw, 3.25rem);
}

body:has(.hero) .project-showcase-heading {
  margin-top: -6px;
}

body:has(.hero) .project-showcase-heading p {
  display: none;
}

body:has(.hero) .project-showcase-heading h2,
body:has(.hero) .designer-intro-header h2,
body:has(.hero) .capability-header h2 {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: clamp(12px, 2.2vw, 24px);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #fff;
  font-size: var(--home-section-title-size) !important;
  line-height: 1.04;
  text-align: left;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

body:has(.hero) .home-title-en {
  flex: 0 1 auto;
  color: rgba(255, 255, 255, 0.52);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(0.82rem, 1.45vw, 1.05rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

body:has(.hero) .designer-intro-header,
body:has(.hero) .capability-header {
  text-align: left;
}

body:has(.hero) .designer-intro-subtitle,
body:has(.hero) .capability-subtitle {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

@media (max-width: 760px) {
  body:has(.hero) {
    --home-section-title-size: clamp(1.85rem, 8.6vw, 2.45rem);
  }

  body:has(.hero) .project-showcase-heading h2,
  body:has(.hero) .designer-intro-header h2,
  body:has(.hero) .capability-header h2 {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  body:has(.hero) .home-title-en {
    font-size: 0.82rem;
  }
}

/* Replace legacy red hover fills with the current blue-violet concept motion. */
.card:hover,
.featured-item:hover,
.designer-card:hover,
.capability-card:hover,
.brand-card:hover,
.preview-item:hover {
  transform: translateY(-6px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(79, 123, 255, 0.12), rgba(123, 77, 255, 0.16), rgba(255, 61, 167, 0.1)),
    rgba(11, 9, 20, 0.92) !important;
  border-color: rgba(157, 137, 255, 0.42) !important;
  box-shadow:
    0 28px 82px rgba(0, 0, 0, 0.5),
    0 0 44px rgba(123, 77, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.brand-card::before {
  background:
    linear-gradient(135deg, rgba(79, 123, 255, 0.26), rgba(123, 77, 255, 0.28), rgba(255, 61, 167, 0.22)) !important;
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.24));
}

.details-btn:hover,
.project-switcher-link:hover,
.project-switcher-button:hover,
.collaboration-primary:hover,
.collaboration-copy-button:hover,
.collaboration-socials a:hover,
.preview-arrow:hover,
.view-all-link:hover,
.back-to-top:hover,
.main-image-thumb:hover,
.project-tabs a:hover,
.tab-btn:hover {
  color: #fff !important;
  border-color: rgba(255, 61, 167, 0.5) !important;
  background:
    linear-gradient(92deg, rgba(79, 123, 255, 0.16), rgba(123, 77, 255, 0.24), rgba(255, 61, 167, 0.18)),
    rgba(11, 9, 20, 0.9) !important;
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(123, 77, 255, 0.26) !important;
}

.project-switcher-link:hover,
.collaboration-primary:hover,
.details-btn:hover,
.view-all-link:hover {
  transform: translateY(-2px);
}

.contact-circle {
  background:
    linear-gradient(135deg, rgba(79, 123, 255, 0.95), rgba(123, 77, 255, 0.95), rgba(255, 61, 167, 0.95)) !important;
  box-shadow: 0 0 44px rgba(123, 77, 255, 0.35);
}

.gallery-preview .thumb.active,
.gallery-preview .thumb:hover,
.main-image-thumb:hover {
  border-color: rgba(255, 61, 167, 0.72) !important;
}

.card:hover h3,
.card:hover p,
.capability-card:hover h3,
.capability-card:hover p {
  color: #fff;
}

/* Give the About page self-evaluation card room to lift on hover. */
.profile-card,
.profile-right {
  overflow: visible;
}

.profile-right {
  padding-top: 10px;
}

.profile-right .card:first-child:hover {
  transform: translateY(-6px);
  background:
    linear-gradient(135deg, rgba(79, 123, 255, 0.1), rgba(123, 77, 255, 0.14), rgba(255, 61, 167, 0.08)),
    rgba(11, 9, 20, 0.92) !important;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.46),
    0 0 38px rgba(123, 77, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Project detail content images should read as a continuous, unframed artwork flow. */
.project-page,
.project-gallery,
.logo-gallery {
  gap: 0 !important;
}

.tab-panel {
  padding: 0 !important;
  background: transparent !important;
}

.project-main img,
.project-gallery img,
.logo-gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

.project-gallery img:hover,
.logo-gallery img:hover {
  opacity: 1;
  filter: none;
  box-shadow: none !important;
  transform: none !important;
}

/* Simplify decorative panels so content stays calmer and more premium. */
.designer-card,
.capability-card,
.brand-card,
.card,
.featured-item,
.profile-card,
.collaboration-cta,
.project-switcher,
.project-switcher-card,
.preview-item,
.project-tabs,
.tab-panel,
.gallery-preview,
.main-image-thumb,
.topbar,
.section-alt,
.placeholder-image {
  background: rgba(10, 9, 16, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34) !important;
}

.designer-card::after,
.capability-card::after,
.brand-card::after,
.card::after,
.featured-item::after,
.profile-card::after,
.collaboration-cta::after,
.project-switcher::after,
.project-switcher::before {
  display: none !important;
}

.brand-card::before {
  background: rgba(123, 77, 255, 0.12) !important;
}

.card:hover,
.featured-item:hover,
.designer-card:hover,
.capability-card:hover,
.brand-card:hover,
.preview-item:hover,
.project-switcher-card:hover,
.project-tabs a:hover,
.tab-btn:hover {
  background: rgba(13, 11, 22, 0.9) !important;
  border-color: rgba(157, 137, 255, 0.32) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42) !important;
}

.brand-card:hover img {
  transform: scale(1.04);
  filter: none;
}

.project-switcher,
.collaboration-cta,
.profile-card,
.featured-item,
.designer-card,
.capability-card,
.brand-card,
.card {
  background-image: none !important;
}

.project-switcher-card {
  border-radius: 14px;
}

.project-switcher-card.is-active,
.project-switcher-card.is-next,
.project-switcher-card.is-prev {
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46) !important;
}

.preview-scroller,
.preview-wrapper,
.tab-panels {
  background: transparent !important;
  box-shadow: none !important;
}

.project-tabs,
.gallery-preview,
.topbar {
  backdrop-filter: blur(14px);
}

.details-btn,
.project-switcher-link,
.project-switcher-button,
.collaboration-primary,
.collaboration-copy-button,
.collaboration-socials a,
.preview-arrow,
.view-all-link,
.back-to-top {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34) !important;
}

/* Final box treatment: single dark surface, no gradients. */
.topbar,
.section-alt,
.designer-card,
.capability-card,
.brand-card,
.card,
.featured-item,
.profile-card,
.collaboration-cta,
.project-switcher,
.project-switcher-card,
.preview-item,
.project-tabs,
.tab-panel,
.gallery-preview,
.main-image-thumb,
.placeholder-image,
.collaboration-email-icon,
.collaboration-socials a,
.collaboration-copy-button,
.preview-arrow {
  background: #0b0a12 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34) !important;
}

.topbar:hover,
.section-alt:hover,
.designer-card:hover,
.capability-card:hover,
.brand-card:hover,
.card:hover,
.featured-item:hover,
.profile-card:hover,
.collaboration-cta:hover,
.project-switcher:hover,
.project-switcher-card:hover,
.preview-item:hover,
.project-tabs:hover,
.tab-panel:hover,
.gallery-preview:hover,
.main-image-thumb:hover,
.placeholder-image:hover,
.collaboration-email-icon:hover,
.collaboration-socials a:hover,
.collaboration-copy-button:hover,
.preview-arrow:hover {
  background: #11101a !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4) !important;
}

.brand-card::before,
.designer-card::before,
.capability-card::before,
.card::before,
.featured-item::before,
.profile-card::before,
.collaboration-cta::before,
.project-switcher::before {
  display: none !important;
}

/* Editorial fashion UI direction inspired by the new reference. */
:root {
  color-scheme: light;
  --editorial-paper: #f5f0ea;
  --editorial-surface: #fffaf4;
  --editorial-ink: #27241f;
  --editorial-muted: rgba(39, 36, 31, 0.62);
  --editorial-line: rgba(39, 36, 31, 0.1);
  --editorial-dark: #080807;
  --editorial-dark-2: #11100d;
  --editorial-red: #ef3f18;
  --editorial-red-dark: #c92d0c;
  --editorial-radius: 8px;
  --editorial-display:
    Impact,
    Haettenschweiler,
    "Arial Narrow",
    "Microsoft YaHei UI",
    sans-serif;
}

html,
body {
  background-color: var(--editorial-paper) !important;
}

body {
  color: var(--editorial-ink) !important;
  background:
    linear-gradient(var(--editorial-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--editorial-line) 1px, transparent 1px),
    var(--editorial-paper) !important;
  background-size: 96px 96px !important;
}

body::before {
  display: none !important;
}

.page-shell {
  max-width: 1280px;
}

.topbar {
  color: var(--editorial-ink) !important;
  background: rgba(245, 240, 234, 0.9) !important;
  border-color: var(--editorial-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px);
}

.brand,
.nav-link,
.cta-link {
  color: var(--editorial-ink) !important;
}

.topbar .brand-mark img {
  filter: brightness(0);
}

.nav-link::after {
  background: var(--editorial-red) !important;
}

.nav-link:hover,
.brand:hover {
  color: var(--editorial-red) !important;
}

.cta-link,
.details-btn,
.view-all-link,
.project-switcher-link,
.collaboration-primary,
.tab-btn.active,
.project-tabs a.active {
  min-height: 44px;
  color: #fff !important;
  background: var(--editorial-red) !important;
  background-image: none !important;
  border-color: var(--editorial-red) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

.cta-link:hover,
.details-btn:hover,
.view-all-link:hover,
.project-switcher-link:hover,
.collaboration-primary:hover,
.tab-btn.active:hover,
.project-tabs a.active:hover {
  color: #fff !important;
  background: var(--editorial-red-dark) !important;
  border-color: var(--editorial-red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(239, 63, 24, 0.24) !important;
}

.hero {
  box-shadow: none !important;
}

.hero h1 {
  font-family: var(--editorial-display);
  font-size: 112px;
  letter-spacing: 0 !important;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-label,
.hero-tagline {
  letter-spacing: 0 !important;
}

.project-showcase-heading h2,
.project-switcher-copy h2,
.designer-intro-header h2,
.capability-header h2,
.brand-showcase-title,
.featured-title,
.related-works-header h2,
.profile-name,
.collaboration-copy h2,
.contact-title,
.page-header h1,
.project-hero h1 {
  font-family: var(--editorial-display) !important;
  letter-spacing: 0 !important;
  line-height: 0.86 !important;
  text-transform: uppercase;
  color: var(--editorial-ink) !important;
  text-shadow: none !important;
}

body:has(.hero) .project-showcase-heading h2,
body:has(.hero) .designer-intro-header h2,
body:has(.hero) .capability-header h2 {
  font-size: 56px !important;
}

body:has(.hero) .brand-showcase-title {
  font-size: 96px !important;
}

.home-title-en {
  color: var(--editorial-red) !important;
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif !important;
  font-size: 0.22em !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  vertical-align: middle;
}

.designer-intro-subtitle,
.capability-subtitle,
.project-switcher-desc,
.featured-desc,
.profile-meta,
.contact-list,
.profile-right .card p,
.profile-right .card li,
.collaboration-text,
.page-header p,
.project-hero p,
.card p,
.capability-card p,
.designer-card p {
  color: var(--editorial-muted) !important;
}

.designer-card,
.capability-card,
.brand-card,
.card,
.featured-item,
.profile-card,
.preview-item,
.project-tabs,
.gallery-preview,
.main-image-thumb,
.placeholder-image,
.project-switcher-card,
.collaboration-email-icon,
.collaboration-copy-button,
.collaboration-socials a,
.preview-arrow,
.tab-btn,
.project-tabs a {
  color: var(--editorial-ink) !important;
  background: var(--editorial-surface) !important;
  background-image: none !important;
  border: 1px solid var(--editorial-line) !important;
  border-radius: var(--editorial-radius) !important;
  box-shadow: none !important;
}

.designer-card h3,
.capability-card h3,
.card h3,
.card h4,
.featured-title,
.profile-role,
.contact-list strong,
.tab-btn,
.project-tabs a {
  color: var(--editorial-ink) !important;
}

.designer-card:hover,
.capability-card:hover,
.brand-card:hover,
.card:hover,
.featured-item:hover,
.preview-item:hover,
.project-tabs a:hover,
.tab-btn:hover,
.collaboration-copy-button:hover,
.collaboration-socials a:hover,
.preview-arrow:hover {
  color: var(--editorial-ink) !important;
  background: #fffdf8 !important;
  border-color: rgba(239, 63, 24, 0.34) !important;
  box-shadow: 0 12px 28px rgba(39, 36, 31, 0.08) !important;
}

.designer-card:hover h3,
.designer-card:hover p,
.capability-card:hover h3,
.capability-card:hover p,
.card:hover h3,
.card:hover p {
  color: inherit !important;
}

.brand-card {
  min-height: 210px;
  color: #fff !important;
  background: var(--editorial-dark-2) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.brand-card:hover {
  color: #fff !important;
  background: #171511 !important;
  border-color: rgba(239, 63, 24, 0.34) !important;
}

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

.brand-card-link,
.brand-card a {
  border-radius: var(--editorial-radius);
}

.designer-intro,
.capability-section,
.brand-showcase,
.related-works,
.section-alt {
  background: transparent !important;
}

.project-switcher,
.collaboration-cta,
.contact-cta {
  color: #fff !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    var(--editorial-dark) !important;
  background-size: 72px 72px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.project-switcher:hover,
.collaboration-cta:hover,
.contact-cta:hover {
  background-color: var(--editorial-dark) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.project-switcher-copy h2,
.project-switcher-year,
.collaboration-copy h2,
.contact-title,
.contact-vertical,
.contact-symbol,
.project-switcher-kicker,
.collaboration-kicker {
  color: #fff !important;
}

.project-switcher-copy h2,
.project-switcher-copy h2 *,
.project-switcher-desc,
.project-switcher-year {
  color: #fff !important;
}

.project-showcase-heading h2 {
  color: var(--editorial-ink) !important;
}

.project-showcase-heading .home-title-en {
  color: var(--editorial-red) !important;
}

.project-switcher-desc,
.collaboration-text {
  color: rgba(255, 255, 255, 0.72) !important;
}

.project-switcher-kicker,
.collaboration-kicker,
.featured-meta,
.project-hero .project-meta {
  color: var(--editorial-red) !important;
  letter-spacing: 0 !important;
}

.project-switcher-card {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: var(--editorial-dark-2) !important;
}

.project-switcher-card.is-active,
.project-switcher-card.is-next,
.project-switcher-card.is-prev {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28) !important;
}

.project-switcher-card img,
.featured-thumb,
.profile-avatar,
.preview-item img,
.main-image-thumb img {
  border-radius: var(--editorial-radius) !important;
}

.collaboration-email {
  color: var(--editorial-ink) !important;
  background: var(--editorial-surface) !important;
  border: 1px solid var(--editorial-line) !important;
  border-radius: 999px !important;
}

.collaboration-copy-button,
.collaboration-email-icon,
.collaboration-socials a,
.preview-arrow,
.project-switcher-button {
  color: var(--editorial-ink) !important;
  min-width: 44px;
  min-height: 44px;
}

.project-switcher-button:hover,
.preview-arrow:hover,
.collaboration-copy-button:hover,
.collaboration-socials a:hover {
  color: #fff !important;
  background: var(--editorial-red) !important;
  border-color: var(--editorial-red) !important;
}

.page-header,
.project-hero,
.works-hero {
  color: var(--editorial-ink) !important;
  background: transparent !important;
}

.page-header h1,
.project-hero h1,
.works-hero h1 {
  font-size: 96px !important;
}

.project-hero .project-meta,
.featured-meta {
  font-weight: 800;
}

.project-tabs {
  padding: 8px !important;
}

.tab-panel {
  border: 0 !important;
}

.project-main img,
.project-gallery img,
.logo-gallery img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.back-to-top,
.contact-circle {
  color: #fff !important;
  background: var(--editorial-red) !important;
  background-image: none !important;
  border-color: var(--editorial-red) !important;
  box-shadow: none !important;
}

::selection {
  color: #fff;
  background: var(--editorial-red);
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 80px;
  }

  body:has(.hero) .project-showcase-heading h2,
  body:has(.hero) .designer-intro-header h2,
  body:has(.hero) .capability-header h2 {
    font-size: 44px !important;
  }

  body:has(.hero) .brand-showcase-title,
  .page-header h1,
  .project-hero h1,
  .works-hero h1 {
    font-size: 64px !important;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 48px 48px !important;
  }

  .topbar {
    border-radius: 8px !important;
  }

  .hero h1 {
    font-size: 58px;
  }

  .project-switcher,
  .collaboration-cta,
  .contact-cta {
    border-radius: 12px !important;
    background-size: 48px 48px !important;
  }

  body:has(.hero) .project-showcase-heading h2,
  body:has(.hero) .designer-intro-header h2,
  body:has(.hero) .capability-header h2 {
    font-size: 36px !important;
  }

  body:has(.hero) .brand-showcase-title,
  .page-header h1,
  .project-hero h1,
  .works-hero h1 {
    font-size: 44px !important;
  }

  .home-title-en {
    display: block;
    margin-top: 8px;
    font-size: 0.32em !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .designer-card,
  .capability-card,
  .brand-card,
  .card,
  .featured-item,
  .project-switcher-card,
  .collaboration-primary,
  .details-btn,
  .cta-link {
    transition: none !important;
  }
}

/* Unified interaction states for the editorial UI. */
:root {
  --editorial-hover-lift: translateY(-3px);
  --editorial-hover-shadow: 0 14px 28px rgba(39, 36, 31, 0.1);
  --editorial-focus-ring: 0 0 0 3px rgba(239, 63, 24, 0.28);
}

a,
button,
.brand-card,
.designer-card,
.capability-card,
.card,
.featured-item,
.preview-item,
.project-switcher-card,
.main-image-thumb,
.collaboration-socials a,
.collaboration-copy-button,
.project-switcher-button,
.preview-arrow,
.tab-btn,
.project-tabs a {
  transition:
    transform 220ms ease,
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    filter 220ms ease !important;
}

a,
button,
.brand-card-link,
.project-switcher-card,
.preview-item,
.main-image-thumb {
  cursor: pointer;
}

.topbar:hover,
.project-switcher:hover,
.collaboration-cta:hover,
.contact-cta:hover,
.project-tabs:hover,
.gallery-preview:hover,
.tab-panel:hover,
.profile-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.nav-link:hover,
.brand:hover {
  color: var(--editorial-red) !important;
  transform: translateY(-1px);
}

.nav-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.cta-link:hover,
.details-btn:hover,
.view-all-link:hover,
.project-switcher-link:hover,
.collaboration-primary:hover,
.back-to-top:hover {
  color: #fff !important;
  background: var(--editorial-red-dark) !important;
  border-color: var(--editorial-red-dark) !important;
  transform: var(--editorial-hover-lift) !important;
  box-shadow: 0 12px 24px rgba(239, 63, 24, 0.22) !important;
}

.project-switcher-button:hover,
.preview-arrow:hover,
.collaboration-copy-button:hover,
.collaboration-socials a:hover,
.tab-btn:hover,
.project-tabs a:hover {
  color: #fff !important;
  background: var(--editorial-red) !important;
  border-color: var(--editorial-red) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(239, 63, 24, 0.18) !important;
}

.tab-btn.active:hover,
.project-tabs a.active:hover {
  background: var(--editorial-red-dark) !important;
  border-color: var(--editorial-red-dark) !important;
}

.designer-card:hover,
.capability-card:hover,
.card:hover,
.featured-item:hover,
.preview-item:hover {
  color: var(--editorial-ink) !important;
  background: #fffdf8 !important;
  border-color: rgba(239, 63, 24, 0.4) !important;
  transform: var(--editorial-hover-lift) !important;
  box-shadow: var(--editorial-hover-shadow) !important;
}

.designer-card:hover h3,
.designer-card:hover p,
.capability-card:hover h3,
.capability-card:hover p,
.card:hover h3,
.card:hover p,
.featured-item:hover h2,
.featured-item:hover h3,
.featured-item:hover p {
  color: inherit !important;
}

.brand-card:hover {
  background: #171511 !important;
  border-color: rgba(239, 63, 24, 0.48) !important;
  transform: var(--editorial-hover-lift) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22) !important;
}

.brand-card:hover img {
  transform: scale(1.03) !important;
  filter: none !important;
}

.project-switcher-card:hover {
  border-color: rgba(239, 63, 24, 0.45) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28) !important;
  filter: saturate(1.04);
}

.project-switcher-card.is-active:hover,
.project-switcher-card.is-next:hover,
.project-switcher-card.is-prev:hover {
  /* Keep the 3D stack positions stable; only color and shadow respond. */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32) !important;
}

.main-image-thumb:hover {
  border-color: var(--editorial-red) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(39, 36, 31, 0.1) !important;
}

.gallery-preview .thumb:hover,
.gallery-preview .thumb.active {
  border-color: var(--editorial-red) !important;
}

.contact-cta:hover .contact-circle {
  background: var(--editorial-red-dark) !important;
  transform: scale(1.04) !important;
}

.contact-cta:hover .contact-symbol {
  transform: translate(10%, -10%) scale(1.04) !important;
}

.project-gallery img:hover,
.logo-gallery img:hover,
.project-main img:hover {
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

a:focus-visible,
button:focus-visible,
.tab-btn:focus-visible,
.project-tabs a:focus-visible,
.project-switcher-card:focus-visible,
.brand-card-link:focus-visible {
  outline: none;
  box-shadow: var(--editorial-focus-ring) !important;
}

@media (hover: none) {
  .nav-link:hover,
  .brand:hover,
  .cta-link:hover,
  .details-btn:hover,
  .view-all-link:hover,
  .project-switcher-link:hover,
  .collaboration-primary:hover,
  .back-to-top:hover,
  .project-switcher-button:hover,
  .preview-arrow:hover,
  .collaboration-copy-button:hover,
  .collaboration-socials a:hover,
  .tab-btn:hover,
  .project-tabs a:hover,
  .designer-card:hover,
  .capability-card:hover,
  .brand-card:hover,
  .card:hover,
  .featured-item:hover,
  .preview-item:hover,
  .project-switcher-card:hover,
  .main-image-thumb:hover {
    transform: none !important;
  }
}

/* Targeted polish after visual QA: keep hover states stable and readable. */
.topbar {
  z-index: 2000 !important;
  pointer-events: auto;
  color: #fff !important;
  background: rgba(8, 8, 7, 0.46) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(24px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(145%) !important;
}

.topbar:hover {
  transform: translateX(-50%) !important;
  color: #fff !important;
  background: rgba(8, 8, 7, 0.54) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18) !important;
}

.topbar .brand-mark img {
  filter: none !important;
}

.brand,
.nav-link,
.topbar .cta-link {
  color: #fff !important;
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 6px;
}

.nav-link:hover,
.brand:hover {
  color: #ffd2bd !important;
  transform: none !important;
}

.topbar .cta-link {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.topbar .cta-link:hover {
  color: #27241f !important;
  background: #ffd2bd !important;
  border-color: #ffd2bd !important;
  transform: none !important;
  box-shadow: none !important;
}

body:has(.hero) .hero h1,
.hero h1 {
  font-size: 136px !important;
  line-height: 0.82 !important;
}

.hero-label {
  font-size: 1.08rem !important;
  font-weight: 800;
}

.project-switcher-button {
  color: #3a2113 !important;
  background: #ffd2bd !important;
  border-color: #ffd2bd !important;
  box-shadow: none !important;
}

.project-switcher-button:hover {
  color: #2b160d !important;
  background: #ffbc95 !important;
  border-color: #ffbc95 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(255, 188, 149, 0.22) !important;
}

.contact-arrow {
  position: relative;
}

.contact-circle {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(0) !important;
  transform-origin: center !important;
  pointer-events: none;
}

.contact-cta:hover .contact-circle {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
}

.contact-cta:hover .contact-symbol {
  transform: translate(8%, -8%) scale(1.04) !important;
}

.collaboration-cta {
  overflow: visible !important;
}

.collaboration-copy h2 {
  max-width: 760px;
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif !important;
  font-size: 44px !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  text-transform: none;
  overflow-wrap: anywhere;
}

.collaboration-actions {
  align-items: stretch;
  gap: 14px !important;
}

.collaboration-email-row {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.collaboration-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  min-width: 0;
  max-width: min(100%, 420px);
  padding: 0 18px 0 12px;
  color: var(--editorial-ink) !important;
  background: var(--editorial-surface) !important;
  border: 1px solid rgba(39, 36, 31, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  cursor: default !important;
}

.collaboration-email:hover {
  color: var(--editorial-ink) !important;
  background: #fffdf8 !important;
  border-color: rgba(239, 63, 24, 0.34) !important;
  transform: none !important;
}

.collaboration-email-icon {
  width: 24px !important;
  height: 24px !important;
  color: var(--editorial-ink) !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  cursor: default !important;
  pointer-events: none;
}

.collaboration-email-text {
  min-width: 0;
  overflow-wrap: anywhere;
  color: inherit !important;
  cursor: default !important;
}

.preview-arrow,
.preview-arrow:hover,
.preview-arrow:active {
  transform: translateY(-50%) !important;
}

.preview-arrow:hover,
.preview-arrow:active {
  color: #fff !important;
  background: var(--editorial-red) !important;
  border-color: var(--editorial-red) !important;
  box-shadow: none !important;
}

.collaboration-copy-button {
  min-height: 54px;
  padding: 0 16px !important;
  color: var(--editorial-ink) !important;
  background: var(--editorial-surface) !important;
  border: 1px solid rgba(39, 36, 31, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.collaboration-copy-button:hover,
.collaboration-copy-button.is-copied {
  color: #3a2113 !important;
  background: #ffd2bd !important;
  border-color: #ffd2bd !important;
  transform: none !important;
  box-shadow: none !important;
}

.profile-card,
.profile-right,
.profile-right .card,
.profile-left,
.profile-info-top,
.profile-meta,
.skills,
.skill-badges {
  min-width: 0;
}

.profile-card {
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr) !important;
  overflow: visible;
}

.profile-right .card {
  overflow: visible;
  overflow-wrap: anywhere;
}

.profile-card:hover,
.profile-right .card:hover,
.skills:hover,
.skill-badges:hover,
.badge:hover {
  color: var(--editorial-ink) !important;
  background: var(--editorial-surface) !important;
  border-color: var(--editorial-line) !important;
  box-shadow: none !important;
}

.profile-right .card:first-child:hover {
  background: var(--editorial-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.badge {
  color: var(--editorial-ink) !important;
  background: rgba(39, 36, 31, 0.07) !important;
}

.project-tabs {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  background: rgba(255, 250, 244, 0.92) !important;
  border-color: rgba(39, 36, 31, 0.12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.project-tabs:hover {
  background: rgba(255, 250, 244, 0.92) !important;
  border-color: rgba(39, 36, 31, 0.12) !important;
}

.project-tabs a,
.tab-btn {
  color: var(--editorial-ink) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.project-tabs a:hover,
.tab-btn:hover {
  color: #3a2113 !important;
  background: #ffd2bd !important;
  border-color: #ffd2bd !important;
  transform: none !important;
  box-shadow: none !important;
}

.project-tabs a.active,
.tab-btn.active {
  color: #fff !important;
  background: var(--editorial-red) !important;
  border-color: var(--editorial-red) !important;
}

.project-tabs a.active:hover,
.tab-btn.active:hover {
  color: #fff !important;
  background: var(--editorial-red-dark) !important;
  border-color: var(--editorial-red-dark) !important;
}

.gallery-preview {
  color: var(--editorial-ink) !important;
  background: rgba(255, 250, 244, 0.92) !important;
  border-color: rgba(39, 36, 31, 0.12) !important;
  box-shadow: 0 16px 34px rgba(39, 36, 31, 0.12) !important;
  scrollbar-color: #ffbc95 #fff3ec;
}

.gallery-preview:hover {
  background: rgba(255, 250, 244, 0.92) !important;
  border-color: rgba(39, 36, 31, 0.12) !important;
  box-shadow: 0 16px 34px rgba(39, 36, 31, 0.12) !important;
}

.gallery-preview::-webkit-scrollbar {
  width: 8px;
}

.gallery-preview::-webkit-scrollbar-track {
  background: #fff3ec;
  border-radius: 999px;
}

.gallery-preview::-webkit-scrollbar-thumb {
  background: #ffbc95;
  border-radius: 999px;
}

.gallery-preview::-webkit-scrollbar-thumb:hover {
  background: #ef9b70;
}

.gallery-preview .thumb:hover,
.main-image-thumb:hover {
  background: #fffdf8 !important;
  border-color: #ffbc95 !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .profile-card {
    grid-template-columns: 1fr !important;
  }

  .collaboration-copy h2 {
    font-size: 36px !important;
  }
}

@media (max-width: 760px) {
  .topbar,
  .topbar:hover {
    transform: none !important;
    border-radius: 18px !important;
  }

  body:has(.hero) .hero h1,
  .hero h1 {
    font-size: 68px !important;
  }

  .hero-label {
    font-size: 0.9rem !important;
  }

  .collaboration-email-row,
  .collaboration-email,
  .collaboration-copy-button {
    width: 100%;
  }

  .collaboration-copy h2 {
    font-size: 30px !important;
    line-height: 1.24 !important;
  }
}

/* About page must stay on the light editorial surface in every hover state. */
#about.section-alt,
#about.section-alt:hover,
#about .section-header,
#about .profile-card,
#about .profile-card:hover,
#about .profile-left,
#about .profile-left:hover,
#about .profile-right,
#about .profile-right:hover,
#about .profile-right .card,
#about .profile-right .card:hover {
  color: var(--editorial-ink) !important;
  background: var(--editorial-surface) !important;
  background-image: none !important;
  border-color: rgba(39, 36, 31, 0.12) !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

#about.section-alt {
  border: 1px solid rgba(39, 36, 31, 0.12) !important;
  border-radius: 18px !important;
  overflow: visible !important;
}

#about .section-header h1,
#about .section-header h2,
#about .profile-name,
#about .profile-name small,
#about .profile-role,
#about .profile-right .card h2,
#about .profile-right .card h3,
#about .profile-right .card h4,
#about .skills h4,
#about .time-year,
#about .time-body {
  color: var(--editorial-ink) !important;
}

#about .profile-meta,
#about .contact-list,
#about .contact-list li,
#about .profile-right .card p,
#about .profile-right .card li,
#about .muted,
#about .awards,
#about .exp {
  color: var(--editorial-muted) !important;
}

#about .profile-card::before,
#about .profile-card::after,
#about .profile-right .card::before,
#about .profile-right .card::after,
#about.section-alt::before,
#about.section-alt::after {
  display: none !important;
  content: none !important;
}

#about .profile-card {
  border: 0 !important;
  padding: clamp(20px, 3vw, 28px) !important;
  gap: 28px !important;
}

#about .profile-right .card {
  border: 1px solid rgba(39, 36, 31, 0.12) !important;
  border-radius: 8px !important;
}

#about .profile-right .card:hover {
  border-color: rgba(239, 63, 24, 0.28) !important;
}

/* Keep project detail preview rail perfectly stable on hover. */
.gallery-preview {
  transform: translateY(-50%) !important;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease !important;
}

.gallery-preview:hover {
  transform: translateY(-50%) !important;
}

.gallery-preview .thumb,
.gallery-preview .thumb:hover,
.gallery-preview .thumb.active,
.gallery-preview .thumb.active:hover {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  aspect-ratio: 3 / 4 !important;
  box-sizing: border-box !important;
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  outline-offset: -2px;
}

.gallery-preview .thumb {
  border: 2px solid transparent !important;
  outline: 0 solid transparent;
}

.gallery-preview .thumb:hover,
.gallery-preview .thumb.active {
  border-color: transparent !important;
  outline: 2px solid #ffbc95 !important;
}

.gallery-preview .thumb.active {
  outline-color: var(--editorial-red) !important;
}

.main-image-thumb,
.main-image-thumb:hover {
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
}

@media (max-width: 899px) {
  .gallery-preview,
  .gallery-preview:hover {
    transform: none !important;
  }

  .gallery-preview .thumb,
  .gallery-preview .thumb:hover,
  .gallery-preview .thumb.active,
  .gallery-preview .thumb.active:hover {
    width: 96px !important;
    flex-basis: 96px !important;
  }
}

/* Brand grid cards: center-out red hover with stable card geometry. */
.brand-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #11100d !important;
  background-image: none !important;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease !important;
}

.brand-card::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, #c92d0c 0%, #c92d0c 48%, transparent 50%) !important;
  opacity: 0;
  transform: scale(0);
  transition:
    transform 360ms cubic-bezier(0.2, 0.85, 0.24, 1),
    opacity 180ms ease !important;
}

.brand-card:hover {
  color: #fff !important;
  background: #11100d !important;
  background-image: none !important;
  border-color: rgba(201, 45, 12, 0.72) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(201, 45, 12, 0.12) !important;
  transform: none !important;
}

.brand-card:hover::before {
  opacity: 1;
  transform: scale(2.45);
}

.brand-card > * {
  position: relative;
  z-index: 1;
}

.brand-card img {
  transform-origin: center;
  transition:
    transform 320ms cubic-bezier(0.2, 0.85, 0.24, 1),
    filter 220ms ease !important;
}

.brand-card:hover img {
  transform: scale(1.16) !important;
  filter: none !important;
}

/* Homepage about poster, matched to the tighter editorial radius system. */
.designer-poster-section {
  margin: 56px 0 64px !important;
}

.designer-poster {
  --poster-align-edge: clamp(22px, 3vw, 36px);
  container-type: inline-size;
  position: relative;
  display: block;
  min-height: clamp(360px, 42vw, 520px);
  overflow: hidden;
  isolation: isolate;
  color: #050505 !important;
  text-decoration: none;
  background: #f5f2ed !important;
  border: 1px solid rgba(39, 36, 31, 0.1) !important;
  border-radius: var(--editorial-radius, 8px) !important;
  box-shadow: none !important;
}

.designer-poster:hover {
  color: #050505 !important;
  background: #f5f2ed !important;
  border-color: rgba(201, 45, 12, 0.28) !important;
  transform: none !important;
  box-shadow: none !important;
}

.designer-poster-logo {
  position: absolute;
  top: clamp(18px, 2.4vw, 30px);
  left: clamp(18px, 2.4vw, 30px);
  z-index: 4;
  width: clamp(92px, 11vw, 142px);
  height: auto;
  object-fit: contain;
}

.designer-poster-title {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(56px, 9vw, 120px);
  margin: 0 !important;
  color: #050505 !important;
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif !important;
  font-size: clamp(72px, 15.8vw, 184px) !important;
  font-weight: 900 !important;
  line-height: 0.78 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase !important;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  transition:
    transform 720ms cubic-bezier(0.16, 0.84, 0.24, 1),
    gap 720ms cubic-bezier(0.16, 0.84, 0.24, 1);
}

.designer-poster-title span:last-child {
  margin-left: 0;
}

.designer-poster-photo-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: clamp(210px, 25vw, 320px);
  height: min(92%, 460px);
  overflow: visible;
  border-radius: 0;
  transform: translateX(-50%);
}

.designer-poster-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.96) contrast(1.04);
}

.designer-poster-name,
.designer-poster-school {
  position: absolute;
  z-index: 4;
  color: #050505;
  transition:
    transform 720ms cubic-bezier(0.16, 0.84, 0.24, 1);
}

.designer-poster-name {
  left: auto;
  right: var(--poster-align-edge);
  bottom: clamp(78px, 11vw, 126px);
  transform: translateX(calc(-100cqw + 100% + var(--poster-align-edge) + var(--poster-align-edge)));
}

.designer-poster-name strong,
.designer-poster-school strong {
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.05;
}

.designer-poster-school {
  left: var(--poster-align-edge);
  right: auto;
  top: calc(50% - clamp(92px, 10vw, 128px));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(12px, 1.6vw, 20px);
  text-align: right;
  transform: translateX(calc(100cqw - 100% - var(--poster-align-edge) - var(--poster-align-edge)));
}

@media (hover: hover) and (min-width: 761px) {
  .designer-poster:hover .designer-poster-title {
    gap: clamp(62px, 10vw, 132px);
    transform: translate(-50%, -50%) scale(1.035);
  }

  .designer-poster:hover .designer-poster-school {
    justify-content: flex-start;
    text-align: left;
    transform: translateX(0);
  }

  .designer-poster:hover .designer-poster-school span {
    order: 0;
  }

  .designer-poster:hover .designer-poster-name {
    text-align: right;
    transform: translateX(0);
  }
}

.designer-poster-school span {
  order: -1;
  display: block;
  margin-top: 0;
  color: rgba(5, 5, 5, 0.58);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .designer-poster-section {
    margin: 44px 0 !important;
  }

  .designer-poster {
    min-height: 520px;
  }

  .designer-poster-title {
    top: 44%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    font-size: clamp(58px, 22vw, 96px) !important;
    line-height: 0.82 !important;
    transform: translate(-50%, -50%);
  }

  .designer-poster-title span:last-child {
    margin-left: 0;
    align-self: flex-end;
  }

  .designer-poster-photo-wrap {
    width: min(66vw, 260px);
    height: 58%;
  }

  .designer-poster-name {
    left: var(--poster-align-edge);
    right: auto;
    bottom: 32px;
    transform: none;
  }

  .designer-poster-school {
    top: 82px;
    left: auto;
    right: 20px;
    display: grid;
    gap: 6px;
    transform: none;
  }
}

/* Homepage project switcher: light editorial panel with dark copy. */
body:has(.hero) .project-switcher,
body:has(.hero) .project-switcher:hover {
  color: var(--editorial-ink) !important;
  background:
    linear-gradient(rgba(39, 36, 31, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 36, 31, 0.055) 1px, transparent 1px),
    #f5f2ed !important;
  background-size: 72px 72px, 72px 72px, auto !important;
  border-color: rgba(39, 36, 31, 0.14) !important;
  box-shadow: none !important;
}

body:has(.hero) .project-switcher::before,
body:has(.hero) .project-switcher::after {
  display: none !important;
  content: none !important;
}

body:has(.hero) .project-switcher-copy,
body:has(.hero) .project-switcher-copy h2,
body:has(.hero) .project-switcher-copy h2 *,
body:has(.hero) .project-switcher-year {
  color: var(--editorial-ink) !important;
}

body:has(.hero) .project-switcher-copy h2 {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--editorial-ink) !important;
}

body:has(.hero) .project-switcher-desc {
  color: rgba(39, 36, 31, 0.72) !important;
}

body:has(.hero) .project-switcher-kicker {
  color: #c92d0c !important;
}

body:has(.hero) .project-switcher-card {
  border-color: rgba(39, 36, 31, 0.16) !important;
  box-shadow:
    0 22px 46px rgba(39, 36, 31, 0.24),
    0 8px 18px rgba(39, 36, 31, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
}

body:has(.hero) .project-switcher-card.is-active {
  box-shadow:
    0 34px 72px rgba(39, 36, 31, 0.32),
    0 14px 28px rgba(39, 36, 31, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
}

body:has(.hero) .project-switcher-card.is-next,
body:has(.hero) .project-switcher-card.is-prev {
  box-shadow:
    0 20px 48px rgba(39, 36, 31, 0.26),
    0 8px 18px rgba(39, 36, 31, 0.16) !important;
}

/* Stable related-work "view all" button on project detail pages. */
.related-works-header .view-all-link,
.related-works-header .view-all-link:hover {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 116px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid var(--editorial-red) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  background: var(--editorial-red) !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.related-works-header .view-all-link:hover {
  background: var(--editorial-red-dark) !important;
  border-color: var(--editorial-red-dark) !important;
}

/* Keep the homepage hero title clean: no purple glow. */
body:has(.hero) .hero h1,
.hero h1 {
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.48) !important;
}

/* Larger rounded corners for homepage modules. */
body:has(.hero) {
  --home-module-radius: 22px;
  --home-card-radius: 18px;
}

body:has(.hero) .project-switcher,
body:has(.hero) .designer-poster,
body:has(.hero) .capability-section,
body:has(.hero) .collaboration-cta,
body:has(.hero) .contact-cta {
  border-radius: var(--home-module-radius) !important;
}

body:has(.hero) .project-switcher-card,
body:has(.hero) .capability-card,
body:has(.hero) .brand-card,
body:has(.hero) .featured-item,
body:has(.hero) .card,
body:has(.hero) .collaboration-email,
body:has(.hero) .collaboration-copy-button {
  border-radius: var(--home-card-radius) !important;
}

body:has(.hero) .brand-card-link,
body:has(.hero) .brand-card a {
  border-radius: inherit !important;
}

/* Homepage capability section: service-style split layout. */
body:has(.hero) .capability-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: start;
  margin: 64px 0 72px !important;
  padding: clamp(28px, 4.4vw, 56px) !important;
  color: var(--editorial-ink) !important;
  background:
    linear-gradient(rgba(39, 36, 31, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 36, 31, 0.055) 1px, transparent 1px),
    #f5f2ed !important;
  background-size: 72px 72px, 72px 72px, auto !important;
  border: 1px solid rgba(39, 36, 31, 0.14) !important;
  border-radius: var(--editorial-radius, 8px) !important;
  overflow: hidden;
}

body:has(.hero) .capability-header {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 !important;
  text-align: left !important;
}

body:has(.hero) .capability-header h2 {
  display: block !important;
  max-width: 360px;
  margin: 0 !important;
  color: var(--editorial-ink) !important;
  font-size: clamp(34px, 4.3vw, 58px) !important;
  line-height: 0.95 !important;
  text-shadow: none !important;
}

body:has(.hero) .capability-header .home-title-en {
  display: block;
  margin-top: 10px;
  color: #245cff !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
}

body:has(.hero) .capability-subtitle {
  max-width: 320px !important;
  margin: 20px 0 0 !important;
  color: rgba(39, 36, 31, 0.66) !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
  letter-spacing: 0.03em !important;
}

body:has(.hero) .capability-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 22px) !important;
  perspective: 1100px;
}

body:has(.hero) .capability-card,
body:has(.hero) .capability-card-sm,
body:has(.hero) .capability-card-lg {
  grid-column: auto !important;
  min-height: clamp(210px, 19vw, 260px) !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: clamp(22px, 3vw, 34px) !important;
  text-align: left !important;
  color: var(--editorial-ink) !important;
  background: #fffdf8 !important;
  background-image: none !important;
  border: 1px solid rgba(39, 36, 31, 0.12) !important;
  border-radius: var(--editorial-radius, 8px) !important;
  box-shadow: none !important;
  transform: translate3d(0, 0, 0) rotate(0deg) !important;
  transform-origin: center;
  transition:
    color 420ms cubic-bezier(0.16, 0.84, 0.24, 1),
    background-color 420ms cubic-bezier(0.16, 0.84, 0.24, 1),
    border-color 420ms cubic-bezier(0.16, 0.84, 0.24, 1),
    box-shadow 420ms cubic-bezier(0.16, 0.84, 0.24, 1),
    transform 520ms cubic-bezier(0.16, 0.84, 0.24, 1) !important;
}

body:has(.hero) .capability-card:nth-child(1) {
  transform: translate3d(0, 0, 0) rotate(0deg) !important;
}

body:has(.hero) .capability-card:nth-child(4) {
  transform: translate3d(0, 0, 0) rotate(0deg) !important;
}

body:has(.hero) .capability-card h3,
body:has(.hero) .capability-card p,
body:has(.hero) .capability-icon {
  transition:
    color 360ms ease,
    filter 360ms ease,
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.16, 0.84, 0.24, 1) !important;
}

body:has(.hero) .capability-card h3 {
  margin-top: auto !important;
  color: var(--editorial-ink) !important;
  font-size: clamp(22px, 2.1vw, 30px) !important;
  line-height: 1.05 !important;
}

body:has(.hero) .capability-card p {
  max-width: 28ch;
  color: rgba(39, 36, 31, 0.62) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

body:has(.hero) .capability-icon {
  width: 42px !important;
  height: 42px !important;
  opacity: 0.9;
  filter: grayscale(1) contrast(1.1);
}

@media (hover: hover) {
  body:has(.hero) .capability-card:hover {
    color: #fff !important;
    background:
      linear-gradient(135deg, #8fc5ff 0%, #7c7cff 48%, #9b5cff 100%) !important;
    background-color: #8fc5ff !important;
    background-image:
      linear-gradient(135deg, #8fc5ff 0%, #7c7cff 48%, #9b5cff 100%) !important;
    border-color: rgba(124, 124, 255, 0.62) !important;
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
    transform: translate3d(-8px, -12px, 42px) rotate(-2deg) scale(1.015) !important;
  }

  body:has(.hero) .capability-card:hover h3,
  body:has(.hero) .capability-card:hover p {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    transform: translateX(10px);
  }

  body:has(.hero) .capability-card:hover p {
    color: rgba(255, 255, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  }

  body:has(.hero) .capability-card:hover .capability-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
    transform: translate(8px, -6px) rotate(-8deg) scale(1.08);
  }
}

@media (max-width: 900px) {
  body:has(.hero) .capability-section {
    grid-template-columns: 1fr;
  }

  body:has(.hero) .capability-header {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  body:has(.hero) .capability-section {
    padding: 22px !important;
  }

  body:has(.hero) .capability-grid {
    grid-template-columns: 1fr !important;
  }

  body:has(.hero) .capability-card,
  body:has(.hero) .capability-card:nth-child(1),
  body:has(.hero) .capability-card:nth-child(4) {
    min-height: 190px !important;
    transform: none !important;
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 48px 0 0;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(39, 36, 31, 0.14);
  color: rgba(39, 36, 31, 0.58);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.site-footer-logo {
  display: block;
  width: clamp(92px, 12vw, 132px);
  height: auto;
  margin: 0 0 6px;
  opacity: 0.72;
}

.site-footer a,
.site-footer span {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--editorial-red, #f0441f);
}

@media (max-width: 760px) {
  .site-footer {
    margin-top: 34px;
    font-size: 12px;
  }
}

/* designer-overrides.css */
/* Generated by the local Design Console. */

/* Edit through the in-page console when possible. */

main > section.capability-section > div.capability-grid > article.capability-card.capability-card-sm {
  background-color: #11100d !important;
}

section.capability-section > div.capability-grid > article.capability-card.capability-card-sm > h3 {
  color: #f5f5f5 !important;
}

section.capability-section > div.capability-grid > article.capability-card.capability-card-sm > p {
  color: #878787 !important;
}

main > section.capability-section > div.capability-grid > article.capability-card.capability-card-lg {
  background-color: #11100d !important;
}

section.capability-section > div.capability-grid > article.capability-card.capability-card-lg > h3 {
  color: #f5f5f5 !important;
}

section.capability-section > div.capability-grid > article.capability-card.capability-card-lg > p {
  color: #878787 !important;
}

main > section.designer-intro > div.designer-grid > article.designer-card.designer-card-bottom-left {
  background-color: #11100d !important;
}

div.designer-grid > article.designer-card.designer-card-bottom-left > div.designer-info > p.designer-name {
  color: #f5f5f5 !important;
}

div.designer-grid > article.designer-card.designer-card-bottom-left > div.designer-info > p.designer-year {
  color: #868686 !important;
}

main > section.designer-intro > div.designer-grid > article.designer-card.designer-card-top-right {
  background-color: #11100d !important;
}

div.designer-grid > article.designer-card.designer-card-top-right > div.designer-education > p.designer-school {
  color: #f5f5f5 !important;
}

div.designer-grid > article.designer-card.designer-card-top-right > div.designer-education > p.designer-major {
  color: #868686 !important;
}

main > section.hero > div.hero-copy > p.hero-label {
  color: #ffffff !important;
}

#project-switcher-title {
  font-size: 64px !important;
}

/* Final homepage visual tuning. */
body:has(.hero) .contact-cta {
  color: #27241f !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body:has(.hero) .contact-cta::before,
body:has(.hero) .contact-cta::after {
  display: none !important;
  content: none !important;
}

body:has(.hero) .contact-title,
body:has(.hero) .contact-vertical,
body:has(.hero) .contact-symbol {
  color: #050505 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #050505 !important;
}

body:has(.hero) .contact-circle {
  background: #f0441f !important;
  box-shadow: 0 12px 28px rgba(240, 68, 31, 0.22) !important;
}

body:has(.hero) .capability-card,
body:has(.hero) .capability-card-sm,
body:has(.hero) .capability-card-lg {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 18px 42px rgba(39, 36, 31, 0.16) !important;
}

body:has(.hero) .capability-card:nth-child(1) {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #2447d8 0%, #7b4dff 52%, #a35cff 100%) !important;
}

body:has(.hero) .capability-card:nth-child(2) {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #c92d0c 0%, #f0441f 48%, #ff8a3d 100%) !important;
}

body:has(.hero) .capability-card:nth-child(3) {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #006b7a 0%, #008fb5 48%, #36b7ff 100%) !important;
}

body:has(.hero) .capability-card:nth-child(4) {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #25105c 0%, #5b2fd6 48%, #9b5cff 100%) !important;
}

body:has(.hero) .capability-card h3,
body:has(.hero) .capability-card p {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body:has(.hero) .capability-card p {
  color: rgba(255, 255, 255, 0.8) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
}

body:has(.hero) .capability-card .capability-icon {
  opacity: 0.96 !important;
  filter: brightness(0) invert(1) !important;
}

@media (hover: hover) {
  body:has(.hero) .capability-card:hover {
    filter: saturate(1.08) brightness(1.04);
    box-shadow:
      0 26px 56px rgba(39, 36, 31, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.38) inset !important;
  }
}

@supports (content-visibility: auto) {
  body:has(.hero) main > section:not(.hero),
  body:has(.hero) .contact-cta,
  body:has(.hero) .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 620px;
  }
}

body:has(.hero) .collaboration-cta {
  grid-template-columns: minmax(0, 1fr) !important;
}

body:has(.hero) .collaboration-copy {
  max-width: 860px !important;
}

.project-intro,
.project-intro p {
  color: rgba(39, 36, 31, 0.76) !important;
}

