/*
 * YES Ceramic Art theme styles
 * Organized by: tokens, utilities, layout, components, interactions, responsive rules.
 */

/* --------------------------------------------------------------------------
   01. Design tokens and base
   -------------------------------------------------------------------------- */
:root {
  /* Same design tokens as the approved v14 static HTML draft. */
  --primary: #B8860B;
  --primary2: #D4AF37;
  --primary-2: #D4AF37;
  --primary-dark: #8B6914;
  --dark: #0F172A;
  --ink: #1E293B;
  --warm: #F8F5F0;
  --paper: #fffaf3;
  --line: rgba(30, 41, 59, .12);
  --shadow-soft: 0 12px 35px rgba(15, 23, 42, .05);
  --shadow-lift: 0 22px 48px rgba(15, 23, 42, .14);
  --font-serif: "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", sans-serif;
  --font-serif-fallback: "Songti SC", STSong, SimSun, serif;
  --font-sans-fallback: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--warm);
  font-family: var(--font-sans), var(--font-sans-fallback);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body.menu-open {
  touch-action: none;
}

/* --------------------------------------------------------------------------
   02. Custom utility helpers
   -------------------------------------------------------------------------- */
.font-serif {
  font-family: var(--font-serif), var(--font-serif-fallback);
}

.font-sans {
  font-family: var(--font-sans), var(--font-sans-fallback);
}

.text-balance {
  text-wrap: balance;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 50%, var(--primary-dark) 100%);
}

.gold-text {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title-line {
  width: 64px;
  height: 1px;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

.section-pad {
  /* Section spacing is mostly handled by Tailwind. This class is adjusted in mobile media rules. */
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.count-up {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   03. Header and navigation
   -------------------------------------------------------------------------- */
#navbar {
  overflow: visible;
}

.nav-transition {
  transition: height .35s ease, background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

.nav-transparent {
  height: 82px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}

.nav-scrolled {
  height: 64px !important;
  background: rgba(15, 23, 42, .86) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 40px rgba(15, 23, 42, .18);
}

.nav-brand-cn {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.nav-link {
  position: relative;
  padding: .55rem 0;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .1rem;
  width: 0;
  height: 1px;
  background: var(--primary-2);
  transition: width .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-2);
}


.primary-menu-item {
  position: relative;
}

.primary-menu > .primary-menu-item.has-sub-menu > .nav-link {
  padding-right: 1rem;
}

.primary-menu > .primary-menu-item.has-sub-menu > .nav-link::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: .38rem;
  height: .38rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  opacity: .78;
}

.primary-sub-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  min-width: 168px;
  padding: .65rem;
  margin: 0;
  list-style: none;
  background: rgba(15, 23, 42, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.primary-sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1rem;
  height: 1rem;
}

.primary-menu-item:hover > .primary-sub-menu,
.primary-menu-item:focus-within > .primary-sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.primary-sub-menu .primary-sub-link {
  display: block;
  padding: .72rem .85rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  font-weight: 500;
  text-shadow: none;
}

.primary-sub-menu .primary-sub-link::after {
  display: none;
}

.primary-sub-menu .primary-sub-link:hover,
.primary-sub-menu .primary-sub-link.active {
  color: var(--primary-2);
  background: rgba(255, 255, 255, .06);
}

#navbar .bg-gradient-gold {
  box-shadow: 0 10px 26px rgba(184, 134, 11, .24);
}

#navbar button.bg-gradient-gold,
#navbar a.bg-gradient-gold {
  box-shadow: 0 10px 26px rgba(184, 134, 11, .24);
  transition: filter .22s ease, box-shadow .22s ease;
}

#navbar button.bg-gradient-gold:hover,
#navbar a.bg-gradient-gold:hover {
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, .30),
    0 0 22px rgba(212, 175, 55, .34),
    0 12px 34px rgba(184, 134, 11, .30);
}

#navbar button.bg-gradient-gold:active,
#navbar a.bg-gradient-gold:active {
  filter: brightness(.98);
}

#menuBtn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
}

#mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: rgba(15, 23, 42, .97);
  will-change: transform;
}

#mobileMenu.translate-x-full {
  transform: translateX(100%);
}

#mobileMenu:not(.translate-x-full) {
  transform: translateX(0);
}

#mobileMenu .mobile-link {
  display: block;
  min-width: 12rem;
  padding: .65rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#mobileMenu .mobile-link.active {
  color: var(--primary-2);
}


#mobileMenu .mobile-menu-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

#mobileMenu .mobile-menu-item {
  width: min(26rem, 100%);
  list-style: none;
}

#mobileMenu .mobile-menu-item.has-sub-menu {
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#mobileMenu .mobile-menu-item.has-sub-menu > .mobile-link {
  border-bottom: 0;
}

#mobileMenu .mobile-sub-menu {
  display: grid;
  gap: .25rem;
  padding: .2rem 0 .45rem;
  margin: 0;
  list-style: none;
}

#mobileMenu .mobile-sub-menu .mobile-link {
  min-width: 0;
  padding: .42rem 1rem;
  font-family: var(--font-sans), var(--font-sans-fallback);
  font-size: 1rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .68);
  border-bottom: 0;
}

#mobileMenu .mobile-sub-menu .mobile-link::before {
  content: "—";
  margin-right: .5rem;
  color: var(--primary-2);
}

body.menu-open #navbar {
  overflow: visible;
}

/* --------------------------------------------------------------------------
   04. Hero and page headers
   -------------------------------------------------------------------------- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 5s ease;
}

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

.hero-dot {
  width: 42px;
  height: 2px;
  background: rgba(255, 255, 255, .32);
  transition: all .3s;
}

.hero-dot.active {
  height: 3px;
  background: var(--primary-2);
}

.sub-hero {
  --sub-hero-bg: url('../img/hero-porcelain-space.jpg');
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 78px;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, .9), rgba(15, 23, 42, .56)), var(--sub-hero-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


.sub-hero-label {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.sub-hero-label::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(212, 175, 55, .72);
}

.sub-hero-desc {
  margin-bottom: 0;
}

.sub-breadcrumb {
  margin-top: 18px;
  font-size: .82rem;
  line-height: 1.6;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
}

.sub-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-breadcrumb li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.sub-breadcrumb li + li::before {
  content: "/";
  margin: 0 .7rem;
  color: rgba(212, 175, 55, .9);
}

.sub-breadcrumb a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.sub-breadcrumb a:hover {
  color: #fff;
  border-bottom-color: rgba(212, 175, 55, .72);
}

.sub-breadcrumb span {
  color: rgba(255, 255, 255, .9);
}

/* --------------------------------------------------------------------------
   05. Generic motion and card helpers
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift {
  transition: transform .35s ease, box-shadow .35s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.image-zoom img {
  transition: transform .7s ease;
}

.image-zoom:hover img {
  transform: scale(1.06);
}

.soft-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.dark-panel {
  color: #fff;
  background: var(--dark);
}

.relation-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .8rem;
  color: var(--primary-dark);
  font-size: .875rem;
  background: var(--paper);
  border: 1px solid rgba(184, 134, 11, .24);
}

/* --------------------------------------------------------------------------
   06. List pages, filtering and pagination
   -------------------------------------------------------------------------- */
.list-toolbar {
  width: 100%;
}

.list-filter-actions {
  flex: 1 1 auto;
  min-width: 0;
}

.list-search {
  width: min(360px, 100%);
  flex: 0 0 360px;
}

.filter-btn.active,
.pagination-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}


/* List filter button interactive states */
.filter-btn,
.pagination-btn {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.filter-btn:hover,
.filter-btn:focus,
.filter-btn:focus-visible {
  color: var(--primary-dark);
  background: rgba(184, 134, 11, .06);
  border-color: rgba(184, 134, 11, .45);
  outline: none;
}

.filter-btn.active,
.filter-btn.active:hover,
.filter-btn.active:focus,
.filter-btn.active:focus-visible,
.pagination-btn.active,
.pagination-btn.active:hover,
.pagination-btn.active:focus,
.pagination-btn.active:focus-visible {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
  outline: none;
}

.filter-btn:focus-visible,
.pagination-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(184, 134, 11, .16);
}

.filter-btn.active:focus-visible,
.pagination-btn.active:focus-visible {
  box-shadow: 0 0 0 3px rgba(184, 134, 11, .22);
}

.meta-table dt {
  color: #64748b;
}

.meta-table dd {
  color: var(--ink);
  font-weight: 600;
}



/* Artist archive polish */
.post-type-archive-artist .list-toolbar {
  align-items: center;
  margin-bottom: 3.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.post-type-archive-artist .list-filter-actions {
  gap: .7rem;
}

.post-type-archive-artist .filter-btn {
  background: #fff;
  border-color: rgba(15, 23, 42, .10);
  color: #475569;
}

.post-type-archive-artist .filter-btn:hover {
  border-color: rgba(184, 134, 11, .48);
  color: var(--primary-dark);
}

.post-type-archive-artist .filter-btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}


.post-type-archive-artist .filter-btn.active,
.post-type-archive-artist .filter-btn.active:hover,
.post-type-archive-artist .filter-btn.active:focus,
.post-type-archive-artist .filter-btn.active:focus-visible {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.post-type-archive-artist .list-search {
  min-height: 44px;
  background: #fff;
  border-color: rgba(15, 23, 42, .12);
}

.post-type-archive-artist .filter-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: none;
  transition: border-color .32s ease, box-shadow .32s ease, transform .32s ease;
}

.post-type-archive-artist .filter-card.hover-lift:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 134, 11, .30);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.post-type-archive-artist .filter-card .image-zoom {
  aspect-ratio: 5 / 4;
  height: auto !important;
  background: #f3efe8;
}

.post-type-archive-artist .filter-card .image-zoom img {
  filter: grayscale(1) sepia(.08) contrast(.96);
  object-position: center top;
  transition: transform .7s ease, filter .45s ease;
}

.post-type-archive-artist .filter-card:hover .image-zoom img {
  transform: scale(1.045);
  filter: grayscale(.15) sepia(.05) contrast(1.01);
}

.post-type-archive-artist .filter-card .p-6 {
  padding: 1.35rem 1.45rem 1.55rem;
}

.post-type-archive-artist .filter-card .text-primary.text-xs {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: .78rem;
  padding: .18rem .52rem;
  color: var(--primary-dark);
  letter-spacing: .12em;
  background: rgba(184, 134, 11, .08);
  border: 1px solid rgba(184, 134, 11, .18);
}

.post-type-archive-artist .filter-card h3 {
  margin-bottom: .55rem;
  transition: color .25s ease;
}

.post-type-archive-artist .filter-card p.line-clamp-2 {
  color: #64748b;
  line-height: 1.8;
}

.post-type-archive-artist .filter-card:hover h3 {
  color: var(--primary-dark);
}



/* Case archive toolbar: keep filtering/search consistent with artist archive */
.post-type-archive-case_project .list-toolbar,
.case-archive-page .list-toolbar {
  align-items: center;
  margin-bottom: 3.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.post-type-archive-case_project .list-filter-actions,
.case-archive-page .list-filter-actions {
  gap: .7rem;
}

.post-type-archive-case_project .filter-btn,
.case-archive-page .filter-btn {
  background: #fff;
  border-color: rgba(15, 23, 42, .10);
  color: #475569;
}

.post-type-archive-case_project .filter-btn:hover,
.case-archive-page .filter-btn:hover {
  border-color: rgba(184, 134, 11, .48);
  color: var(--primary-dark);
}

.post-type-archive-case_project .filter-btn.active,
.post-type-archive-case_project .filter-btn.active:hover,
.post-type-archive-case_project .filter-btn.active:focus,
.post-type-archive-case_project .filter-btn.active:focus-visible,
.case-archive-page .filter-btn.active,
.case-archive-page .filter-btn.active:hover,
.case-archive-page .filter-btn.active:focus,
.case-archive-page .filter-btn.active:focus-visible {
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: default;
  pointer-events: none;
}

.post-type-archive-case_project .list-search,
.case-archive-page .list-search {
  min-height: 44px;
  background: #fff;
  border-color: rgba(15, 23, 42, .12);
}

@media (max-width: 767px) {
  .post-type-archive-case_project .list-toolbar,
  .case-archive-page .list-toolbar {
    padding-bottom: .85rem;
  }
}

/* --------------------------------------------------------------------------
   07. Application scenes, choice cards and process section
   -------------------------------------------------------------------------- */
.scenario-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.scenario-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .82), rgba(15, 23, 42, .06));
  transition: background .32s ease;
}

.scenario-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: rgba(15, 23, 42, .34);
  transition: opacity .32s ease;
}

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

.scenario-card:hover::after {
  background: linear-gradient(to top, rgba(15, 23, 42, .9), rgba(15, 23, 42, .28));
}

.scenario-card > * {
  position: relative;
  z-index: 2;
}

.scenario-card h3,
.scenario-card p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.choice-card {
  min-height: 180px;
  padding: 2rem;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .13);
  transition: border-color .3s, background .3s, transform .3s;
}

.choice-card:hover {
  background: rgba(184, 134, 11, .07);
  border-color: rgba(184, 134, 11, .72);
  transform: translateY(-4px);
}

.choice-card p {
  color: rgba(255, 255, 255, .66);
  font-size: .95rem;
  line-height: 1.85;
}

.choice-no {
  display: block;
  margin-bottom: 1.15rem;
  color: var(--primary);
  font-size: .82rem;
  letter-spacing: .18em;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(184, 134, 11, .45);
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.process-card {
  min-height: 170px;
  padding: 1.55rem 1.35rem;
  border-right: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s, transform .3s;
}

.process-card:hover {
  background: rgba(255, 255, 255, .045);
  transform: translateY(-3px);
}

.process-card span {
  display: block;
  margin-bottom: 1.45rem;
  color: var(--primary);
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-weight: 700;
}

.process-card strong {
  display: block;
  margin-bottom: .65rem;
  color: #fff;
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-size: 1.08rem;
}

.process-card p {
  color: rgba(255, 255, 255, .58);
  font-size: .86rem;
  line-height: 1.75;
}

/* Legacy flow helper kept for detail/list layouts that still use it. */
.flow-step {
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -14%;
  width: 28%;
  height: 1px;
  background: rgba(184, 134, 11, .35);
}

/* --------------------------------------------------------------------------
   08. Artist, map and form components
   -------------------------------------------------------------------------- */
.artist-feature {
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
  transition: transform .35s, box-shadow .35s;
}

.artist-feature:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .13);
}

.artist-feature-img {
  height: 320px;
  overflow: hidden;
  background: #eee;
}

.artist-feature-body {
  padding: 1.7rem 1.6rem 1.9rem;
  text-align: left;
}

.artist-feature-body p {
  margin-bottom: .65rem;
  color: var(--primary);
  font-size: .78rem;
  letter-spacing: .16em;
}

.artist-feature-body h3 {
  margin-bottom: .75rem;
  color: var(--ink);
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-size: 1.55rem;
  font-weight: 700;
}

.artist-feature-body span {
  display: block;
  color: #64748b;
  font-size: .94rem;
  line-height: 1.75;
}

.map-placeholder {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #efe5d6, #dad7cc);
}

.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px),
              linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: rotate(-5deg) scale(1.15);
}

.map-road {
  position: absolute;
  height: 2px;
  background: rgba(255, 255, 255, .8);
  border-radius: 999px;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
}




/* Contact page layout */
.contact-page-section {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 7vw, 7.2rem) 0 clamp(5.5rem, 8vw, 7.8rem);
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 134, 11, .06), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fbf8f2 100%);
}

.contact-page-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, .028) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  opacity: .45;
}

.contact-page-inner {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.contact-studio-panel {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
  background: #fffaf3;
  border: 1px solid rgba(15, 23, 42, .075);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .08);
}

.contact-studio-panel--single {
  grid-template-columns: 1fr;
}

.contact-info-panel {
  position: relative;
  min-height: 560px;
  height: 100%;
  overflow: hidden;
  padding: clamp(3rem, 4.8vw, 4.7rem);
  color: rgba(255, 255, 255, .82);
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 175, 55, .15), transparent 24%),
    linear-gradient(145deg, #111b2d 0%, #0f172a 54%, #090f1d 100%);
  border: 0;
  box-shadow: none;
}

.contact-info-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .045) 48%, transparent 49%),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, .07), transparent 26%);
  opacity: .78;
  pointer-events: none;
}

.contact-info-panel::after {
  content: "";
  position: absolute;
  left: clamp(2.2rem, 4vw, 4rem);
  bottom: clamp(2rem, 4vw, 3.8rem);
  width: 110px;
  height: 1px;
  background: rgba(212, 175, 55, .66);
}

.contact-info-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.contact-kicker {
  margin: 0 0 .95rem;
  color: rgba(212, 175, 55, .86);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.contact-title {
  margin: 0 0 .65rem;
  color: #fff;
  font-size: clamp(2.05rem, 3.15vw, 2.96rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.contact-page-copy {
  max-width: 30rem;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, .66);
  font-size: .98rem;
  line-height: 1.95;
}

.contact-page-copy p {
  margin: 0 0 1rem;
}

.contact-info-list {
  display: grid;
  gap: 0;
  margin-top: clamp(2.2rem, 4vw, 3rem);
}

.contact-info-list p {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  color: rgba(255, 255, 255, .72);
  font-size: .96rem;
  line-height: 1.75;
}

.contact-info-list p:first-child {
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.contact-info-list span {
  color: rgba(212, 175, 55, .86);
  font-size: .86rem;
  white-space: nowrap;
}

.contact-info-list a,
.contact-info-list em {
  color: rgba(255, 255, 255, .80);
  font-style: normal;
  text-decoration: none;
  transition: color .2s ease;
}

.contact-info-list a:hover {
  color: #fff;
}

.contact-wechat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 1.1rem;
  align-items: center;
  margin-top: auto;
  padding: 1rem;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.contact-wechat-copy {
  min-width: 0;
}

.contact-wechat-copy h3 {
  margin: 0 0 .45rem;
  color: #fff;
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-wechat-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .88rem;
  line-height: 1.75;
}

.contact-wechat-id {
  display: flex;
  gap: .55rem;
  align-items: baseline;
  margin-top: .7rem;
  color: rgba(255, 255, 255, .78);
  font-size: .86rem;
  line-height: 1.6;
  word-break: break-all;
}

.contact-wechat-id span {
  flex: 0 0 auto;
  color: rgba(212, 175, 55, .84);
}

.contact-wechat-qr {
  width: 118px;
  height: 118px;
  padding: 7px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.contact-wechat-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-form-panel {
  height: 100%;
  min-height: 560px;
  padding: clamp(3rem, 4.8vw, 4.7rem);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, .96), rgba(248, 245, 240, .96));
  border: 0;
  box-shadow: none;
}

.contact-form-panel .project-form-title {
  font-size: clamp(1.85rem, 2.2vw, 2.35rem);
}

.contact-form-panel .project-form-note {
  max-width: 31rem;
  margin-bottom: 2.1rem;
}

.contact-form-panel .wpforms-field {
  padding-bottom: 1.08rem !important;
}

.contact-form-panel input[type="text"],
.contact-form-panel input[type="email"],
.contact-form-panel input[type="tel"],
.contact-form-panel input[type="number"],
.contact-form-panel input[type="url"],
.contact-form-panel select {
  min-height: 56px !important;
}

.contact-form-panel textarea {
  min-height: 176px !important;
}

.contact-map-row {
  margin-top: clamp(3.4rem, 5vw, 4.8rem);
}

.contact-map-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid rgba(15, 23, 42, .09);
}

.contact-map-kicker {
  margin: 0 0 .4rem;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.contact-map-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.22;
}

.contact-map-address {
  max-width: 30rem;
  margin: 0;
  color: rgba(30, 41, 59, .66);
  font-size: .95rem;
  line-height: 1.75;
  text-align: right;
}

.contact-map-shell--wide .contact-baidu-map {
  min-height: 430px;
}

@media (max-width: 1023px) {
  .contact-page-inner {
    width: min(760px, calc(100% - 40px));
  }

  .contact-studio-panel {
    grid-template-columns: 1fr;
  }

  .contact-info-panel,
  .contact-form-panel {
    min-height: 0;
    height: auto;
  }

  .contact-wechat-card {
    margin-top: 2.2rem;
  }
}

@media (max-width: 767px) {
  .contact-page-section {
    padding: 4rem 0 4.8rem;
  }

  .contact-page-inner {
    width: calc(100% - 28px);
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 2.05rem 1.35rem;
  }

  .contact-title {
    font-size: clamp(1.9rem, 9vw, 2.18rem);
  }

  .contact-info-list p {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: .75rem;
  }

  .contact-wechat-card {
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: .9rem;
    padding: .95rem;
  }

  .contact-wechat-qr {
    width: 106px;
    height: 106px;
  }

  .contact-form-panel textarea {
    min-height: 145px !important;
  }

  .contact-map-header {
    display: block;
  }

  .contact-map-address {
    margin-top: .75rem;
    text-align: left;
  }

  .contact-map-shell--wide .contact-baidu-map {
    min-height: 315px;
  }
}

@media (max-width: 430px) {
  .contact-wechat-card {
    display: block;
  }

  .contact-wechat-qr {
    margin-top: 1rem;
    width: 118px;
    height: 118px;
  }

  .generic-page-content h3 {
    font-size: 1.16rem;
  }
}

/* Baidu map */
.contact-map-shell {
  position: relative;
  overflow: hidden;
  background: #f8f5f0;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.contact-baidu-map {
  position: relative;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
  background: #f4efe6;
  filter: sepia(0.12) saturate(0.7);
}

.contact-map-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -70px 90px rgba(15, 23, 42, .08);
  z-index: 1;
}

.contact-map-fullscreen {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: 0 .92rem;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255, 250, 243, .92);
  color: #0f172a;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .25s ease, visibility .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.contact-map-shell:hover .contact-map-fullscreen,
.contact-map-shell:focus-within .contact-map-fullscreen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-map-fullscreen:hover {
  color: #fff;
  background: rgba(15, 23, 42, .90);
  border-color: rgba(15, 23, 42, .32);
  transform: translateY(-1px);
}

.contact-map-fullscreen svg {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.contact-baidu-map .BMap_bubble_title {
  color: var(--dark);
  font-weight: 700;
}

.contact-baidu-map .BMap_bubble_content {
  color: var(--dark);
}

.yes-baidu-map-info {
  color: var(--dark);
  font-size: .9rem;
  line-height: 1.7;
}

.yes-baidu-map-info strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--dark);
  font-weight: 700;
}

.yes-baidu-map-info p {
  margin: 0;
  color: rgba(15, 23, 42, .72);
}

@media (max-width: 767px) {
  .contact-baidu-map {
    min-height: 320px;
  }

  .contact-map-fullscreen {
    top: 12px;
    right: 12px;
    min-height: 34px;
    padding: 0 .72rem;
    font-size: .78rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.form-field {
  width: 100%;
  padding: .75rem .9rem;
  background: #fff;
  border: 1px solid rgba(30, 41, 59, .14);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, .12);
}

/* Project inquiry form */
.project-form-card {
  width: 100%;
  background: var(--warm);
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 0;
  box-shadow: none;
}

.project-form-title {
  margin: 0 0 .65rem;
  color: var(--dark);
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.35;
}

.project-form-note {
  margin: 0 0 1.75rem;
  color: rgba(30, 41, 59, .66);
  font-size: .95rem;
  line-height: 1.8;
}

.project-form-card .wpforms-container,
.consult-modal__dialog .wpforms-container {
  margin: 0 !important;
}

/* Do not force WPForms into two columns here.
   Let the field order, layout fields, and column settings from WPForms control the structure. */
.project-form-card .wpforms-field-container,
.consult-modal__dialog .wpforms-field-container {
  display: block;
}

.project-form-card .wpforms-field,
.consult-modal__dialog .wpforms-field {
  padding: 0 0 1rem !important;
}

.project-form-card .wpforms-field-label,
.consult-modal__dialog .wpforms-field-label {
  display: none !important;
}

.project-form-card input[type="text"],
.project-form-card input[type="email"],
.project-form-card input[type="tel"],
.project-form-card input[type="number"],
.project-form-card input[type="url"],
.project-form-card select,
.project-form-card textarea,
.consult-modal__dialog input[type="text"],
.consult-modal__dialog input[type="email"],
.consult-modal__dialog input[type="tel"],
.consult-modal__dialog input[type="number"],
.consult-modal__dialog input[type="url"],
.consult-modal__dialog select,
.consult-modal__dialog textarea {
  width: 100% !important;
  min-height: 54px !important;
  padding: 0 1rem !important;
  border: 1px solid #d8d1c8 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.project-form-card textarea,
.consult-modal__dialog textarea {
  min-height: 170px !important;
  padding-top: 1rem !important;
  resize: vertical;
}

.project-form-card input:focus,
.project-form-card select:focus,
.project-form-card textarea:focus,
.consult-modal__dialog input:focus,
.consult-modal__dialog select:focus,
.consult-modal__dialog textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, .12) !important;
}

.project-form-card input::placeholder,
.project-form-card textarea::placeholder,
.consult-modal__dialog input::placeholder,
.consult-modal__dialog textarea::placeholder {
  color: #9aa3b2 !important;
}

.project-form-card .wpforms-submit-container,
.consult-modal__dialog .wpforms-submit-container {
  padding: .7rem 0 0 !important;
}

.project-form-card button[type="submit"],
.project-form-card .wpforms-submit,
.consult-modal__dialog button[type="submit"],
.consult-modal__dialog .wpforms-submit {
  width: 100% !important;
  min-height: 58px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 55%, var(--primary-dark) 100%) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  box-shadow: none !important;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.project-form-card button[type="submit"]:hover,
.project-form-card .wpforms-submit:hover,
.consult-modal__dialog button[type="submit"]:hover,
.consult-modal__dialog .wpforms-submit:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
  box-shadow: 0 14px 30px rgba(184, 134, 11, .22) !important;
}

.project-form-card .wpforms-error,
.project-form-card label.wpforms-error,
.consult-modal__dialog .wpforms-error,
.consult-modal__dialog label.wpforms-error {
  color: #b42318 !important;
  font-size: .82rem !important;
  margin-top: .35rem !important;
}

.project-form-card .wpforms-confirmation-container-full,
.consult-modal__dialog .wpforms-confirmation-container-full {
  margin: 0 !important;
  border: 1px solid rgba(184, 134, 11, .25) !important;
  background: rgba(184, 134, 11, .08) !important;
  color: var(--ink) !important;
}

@media (max-width: 767px) {
  .project-form-card {
    padding: 2rem 1.35rem;
  }

  .project-form-card textarea,
  .consult-modal__dialog textarea {
    min-height: 140px !important;
  }
}

.mobile-bar {
  display: none;
}


/* --------------------------------------------------------------------------
   09. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 134, 11, .08), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #0b1221 100%);
}

.footer-grid {
  align-items: start;
}

.footer-brand {
  color: inherit;
  transition: opacity .22s ease;
}

.footer-brand:hover {
  opacity: .92;
}

.footer-logo {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.footer-company {
  max-width: 13.5rem;
  font-size: 1.02rem;
  letter-spacing: .01em;
}

.footer-intro {
  max-width: 20rem;
}

.footer-intro p {
  margin: 0 0 .55rem;
}

.footer-intro p:last-child {
  margin-bottom: 0;
}

.footer-title {
  position: relative;
  padding-bottom: .9rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

.footer-list,
.footer-menu,
.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link,
.footer-menu a,
.footer-contact-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .70);
  text-decoration: none;
  transition: color .22s ease, transform .22s ease;
}

.footer-link::after,
.footer-menu a::after,
.footer-contact-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.18rem;
  width: 0;
  height: 1px;
  background: var(--primary-2);
  transition: width .22s ease;
}

.footer-link:hover,
.footer-menu a:hover,
.footer-contact-list a:hover {
  color: var(--primary-2);
  transform: translateX(2px);
}

.footer-link:hover::after,
.footer-menu a:hover::after,
.footer-contact-list a:hover::after {
  width: 100%;
}

.footer-contact-list li {
  display: flex;
  gap: .25rem;
  align-items: flex-start;
  line-height: 1.65;
}

.footer-contact-list span:first-child {
  flex: 0 0 auto;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, .10);
}

.footer-legal .footer-link {
  color: rgba(255, 255, 255, .58);
  transform: none;
  transition: none;
}

.footer-legal .footer-link::after {
  display: none;
}

.footer-legal .footer-link:hover {
  color: rgba(255, 255, 255, .58);
  transform: none;
}

.back-to-top {
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   10. FAQ, gallery lightbox and consultation modal
   -------------------------------------------------------------------------- */
.faq-answer {
  display: block !important;
  max-height: 0;
  padding-top: 0 !important;
  overflow: hidden;
  opacity: 0;
  transition: max-height .34s ease, opacity .28s ease, padding-top .28s ease;
}

.faq-item.active .faq-answer {
  max-height: 260px;
  padding-top: 1rem !important;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.thumb-strip img {
  cursor: pointer;
  border: 2px solid transparent;
}

.thumb-strip img.active {
  border-color: var(--primary);
}

.gallery-main-trigger {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: left;
  background: #000;
}

.gallery-main-trigger img {
  transition: transform .45s ease, filter .45s ease;
}

.gallery-main-trigger:hover img {
  filter: brightness(.88);
  transform: scale(1.025);
}

.gallery-zoom-hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .55rem .75rem;
  color: #fff;
  font-size: .82rem;
  letter-spacing: .08em;
  background: rgba(15, 23, 42, .78);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.gallery-main-trigger:hover .gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.consult-modal,
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.consult-modal.open,
.site-lightbox.open {
  display: block;
}

.consult-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(10px);
}

.consult-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 620px);
  max-height: 88vh;
  padding: 2.4rem;
  overflow: auto;
  background: #fff;
  box-shadow: 0 35px 100px rgba(15, 23, 42, .35);
  opacity: 0;
  transform: translate(-50%, -48%) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
}

.consult-modal.open .consult-modal__dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.consult-modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  background: #fff;
  border: 1px solid rgba(30, 41, 59, .12);
}

.site-lightbox {
  align-items: center;
  justify-content: center;
  padding: 5vw;
  background: rgba(5, 9, 16, .88);
  backdrop-filter: blur(8px);
}

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

.site-lightbox__img {
  max-width: min(94vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.site-lightbox__close {
  position: fixed;
  right: 2rem;
  top: 1.5rem;
  width: 3rem;
  height: 3rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
}

/* --------------------------------------------------------------------------
   11. Tailwind CDN custom-color fallback
   --------------------------------------------------------------------------
   These classes protect the theme if Tailwind CDN config is delayed/cached.
   Keep this section compact and limited to custom colors used by templates.
   -------------------------------------------------------------------------- */
.bg-primary { background-color: rgb(184 134 11 / var(--tw-bg-opacity, 1)) !important; }
.bg-dark { background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1)) !important; }
.bg-ink { background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1)) !important; }
.bg-warm { background-color: rgb(248 245 240 / var(--tw-bg-opacity, 1)) !important; }
.bg-paper { background-color: rgb(255 250 243 / var(--tw-bg-opacity, 1)) !important; }

.text-primary { color: rgb(184 134 11 / var(--tw-text-opacity, 1)) !important; }
.text-dark { color: rgb(15 23 42 / var(--tw-text-opacity, 1)) !important; }
.text-ink { color: rgb(30 41 59 / var(--tw-text-opacity, 1)) !important; }
.text-warm { color: rgb(248 245 240 / var(--tw-text-opacity, 1)) !important; }
.text-paper { color: rgb(255 250 243 / var(--tw-text-opacity, 1)) !important; }

.border-primary { border-color: rgb(184 134 11 / var(--tw-border-opacity, 1)) !important; }
.border-dark { border-color: rgb(15 23 42 / var(--tw-border-opacity, 1)) !important; }
.border-ink { border-color: rgb(30 41 59 / var(--tw-border-opacity, 1)) !important; }
.border-warm { border-color: rgb(248 245 240 / var(--tw-border-opacity, 1)) !important; }
.border-paper { border-color: rgb(255 250 243 / var(--tw-border-opacity, 1)) !important; }

.bg-dark\/96 { background-color: rgb(15 23 42 / .96) !important; }
.bg-dark\/95 { background-color: rgb(15 23 42 / .95) !important; }
.bg-dark\/80 { background-color: rgb(15 23 42 / .80) !important; }
.bg-dark\/70 { background-color: rgb(15 23 42 / .70) !important; }
.bg-dark\/60 { background-color: rgb(15 23 42 / .60) !important; }
.bg-dark\/50 { background-color: rgb(15 23 42 / .50) !important; }
.bg-dark\/40 { background-color: rgb(15 23 42 / .40) !important; }
.bg-white\/95 { background-color: rgb(255 255 255 / .95) !important; }

.hover\:bg-primary:hover { background-color: rgb(184 134 11 / var(--tw-bg-opacity, 1)) !important; }
.hover\:text-primary:hover,
.group:hover .group-hover\:text-primary { color: rgb(184 134 11 / var(--tw-text-opacity, 1)) !important; }
.hover\:border-primary:hover { border-color: rgb(184 134 11 / var(--tw-border-opacity, 1)) !important; }

.from-dark\/75 {
  --tw-gradient-from: rgb(15 23 42 / .75) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-dark\/45 {
  --tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(15 23 42 / .45) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.to-dark\/82 {
  --tw-gradient-to: rgb(15 23 42 / .82) var(--tw-gradient-to-position);
}

.shadow-primary\/30 {
  --tw-shadow-color: rgb(184 134 11 / .30);
  --tw-shadow: var(--tw-shadow-colored);
}

/* --------------------------------------------------------------------------
   12. Responsive rules
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-brand-en {
    display: none;
  }

  .nav-brand-cn {
    font-size: 1rem;
  }

  .nav-link {
    font-size: .86rem;
  }

  .nav-transition .max-w-7xl {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }
}

@media (max-width: 1023px) {
  .nav-transparent {
    height: 68px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(18px);
  }

  .mobile-bar {
    display: grid;
  }

  .sub-hero {
    padding-top: 110px;
    padding-bottom: 56px;
  }

  .hero-dot {
    width: 28px;
  }

  .map-placeholder {
    min-height: 300px;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .list-search {
    width: 100%;
    flex: 1 1 100%;
  }

  .list-filter-actions {
    width: 100%;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-feature-img {
    height: 280px;
  }
}

@media (max-width: 767px) {
  .section-pad {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .hero-heading {
    font-size: 2.65rem !important;
    line-height: 1.06 !important;
  }

  .hero-sub {
    font-size: .95rem;
  }

  .catalog-grid {
    grid-template-columns: 1fr !important;
  }

  .list-toolbar {
    gap: .7rem;
  }

  .list-toolbar input {
    width: 100%;
  }

  .mobile-bottom-space {
    padding-bottom: 70px;
  }

  .sub-hero h1 {
    font-size: 2.45rem;
  }

  .sub-breadcrumb {
    margin-top: 16px;
    font-size: .78rem;
  }

  .sub-breadcrumb li + li::before {
    margin: 0 .5rem;
  }
}

@media (max-width: 640px) {
  #mobileMenu {
    background: linear-gradient(160deg, rgba(15, 23, 42, .98), rgba(10, 15, 24, .98));
  }

  #mobileMenu .mobile-link {
    font-size: 1.55rem;
  }

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

  .choice-card {
    min-height: auto;
  }

  .artist-feature-img {
    height: 300px;
  }

  .consult-modal__dialog {
    width: 94vw;
    padding: 1.6rem;
  }

  .site-lightbox__close {
    top: 1rem;
    right: 1rem;
  }

  .gallery-zoom-hint {
    font-size: .75rem;
    opacity: 1;
    transform: none;
  }
}

/* Footer refinement: brand intro option and clearer legal/copyright spacing */
.footer-intro {
  margin-top: .35rem;
  max-width: 22rem;
  color: rgba(255, 255, 255, .60);
}

.footer-intro br {
  display: block;
  content: "";
  margin-top: .35rem;
}

.footer-copy,
.footer-legal {
  margin: 0;
}

.footer-copy {
  line-height: 1.8;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .85rem;
  row-gap: .35rem;
}

.footer-legal-divider {
  width: 1px;
  height: .85rem;
  background: rgba(255, 255, 255, .20);
}

.footer-bottom {
  row-gap: 1rem;
}

@media (max-width: 767px) {
  .footer-copy,
  .footer-legal {
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}


/* Filter active button: keep active state stable, no hover/focus color changes */
.list-filter-actions .filter-btn.active,
.list-filter-actions .filter-btn.active:hover,
.list-filter-actions .filter-btn.active:focus,
.list-filter-actions .filter-btn.active:focus-visible,
.post-type-archive-artist .list-filter-actions .filter-btn.active,
.post-type-archive-artist .list-filter-actions .filter-btn.active:hover,
.post-type-archive-artist .list-filter-actions .filter-btn.active:focus,
.post-type-archive-artist .list-filter-actions .filter-btn.active:focus-visible {
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: default;
  pointer-events: none;
}

.list-filter-actions .filter-btn:not(.active):hover,
.list-filter-actions .filter-btn:not(.active):focus-visible {
  color: var(--primary-dark) !important;
  background: rgba(184, 134, 11, .06) !important;
  border-color: rgba(184, 134, 11, .45) !important;
}


/* Pagination polish: standalone buttons, no Tailwind dependency */
.pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem !important;
  margin-top: 3rem !important;
}

.pagination-btn {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  height: 2.55rem;
  padding: 0 .85rem !important;
  border: 1px solid rgba(203, 198, 194, .78) !important;
  border-radius: 0;
  background: #fff;
  color: var(--ink) !important;
  font-size: .92rem;
  line-height: 1;
  font-weight: 500;
  box-shadow: none;
  cursor: pointer;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.pagination-btn:not(.active):hover,
.pagination-btn:not(.active):focus-visible {
  color: var(--primary-dark) !important;
  border-color: rgba(184, 134, 11, .48) !important;
  background: rgba(184, 134, 11, .06) !important;
  outline: none;
}

.pagination-btn.active,
.pagination-btn.active:hover,
.pagination-btn.active:focus,
.pagination-btn.active:focus-visible {
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: default;
}

@media (max-width: 767px) {
  .pagination {
    gap: .45rem !important;
    margin-top: 2.35rem !important;
  }

  .pagination-btn {
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 .75rem !important;
    font-size: .88rem;
  }
}


/* --------------------------------------------------------------------------
   Mobile page polish
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Mobile header: softer menu trigger */
  #menuBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0 !important;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
    transition: background-color .22s ease, border-color .22s ease;
  }

  #menuBtn:hover,
  #menuBtn:focus-visible {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(212, 175, 55, .42);
    outline: none;
  }

  #menuBtn svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 1.8;
  }

  /* Mobile filter toolbar: one-line horizontal category rail */
  .filter-page .list-toolbar {
    gap: 1rem !important;
    margin-bottom: 1.75rem !important;
  }

  .filter-page .list-filter-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: .55rem !important;
    width: 100%;
    max-width: 100%;
    padding: 0 0 .35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .filter-page .list-filter-actions::-webkit-scrollbar {
    display: none;
  }

  .filter-page .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 2.45rem;
    padding: 0 .95rem !important;
    scroll-snap-align: start;
  }

  .filter-page .list-search {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
  }

  .filter-page .filter-search {
    height: 2.85rem;
  }

  /* Mobile list cards: slightly tighter vertical rhythm */
  .filter-page .grid {
    gap: 1.55rem !important;
  }

  .artist-card,
  .work-card,
  .case-card {
    margin-bottom: 0;
  }

  /* Footer: reduce mobile length while keeping legibility */
  .site-footer {
    padding-top: 3rem !important;
    padding-bottom: 5.6rem !important;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem 1.65rem !important;
    margin-bottom: 2.1rem !important;
  }

  .site-footer .footer-brand-wrap,
  .site-footer .footer-contact {
    grid-column: 1 / -1;
  }

  .site-footer .footer-title {
    margin-bottom: .85rem !important;
    padding-bottom: .65rem;
  }

  .site-footer .footer-list,
  .site-footer .footer-menu,
  .site-footer .footer-contact-list {
    font-size: .86rem;
    line-height: 1.65;
  }

  .site-footer .footer-bottom {
    padding-top: 1.45rem !important;
  }

  .site-footer .footer-copy,
  .site-footer .footer-legal {
    font-size: .76rem;
    line-height: 1.7;
  }

  /* Keep back-to-top away from the fixed mobile contact bar */
  #backToTop {
    right: 1rem !important;
    bottom: 4.9rem !important;
    width: 2.65rem !important;
    height: 2.65rem !important;
  }
}

@media (max-width: 420px) {
  .filter-page .filter-btn {
    min-height: 2.35rem;
    padding: 0 .82rem !important;
    font-size: .82rem;
  }

  .filter-page .grid {
    gap: 1.35rem !important;
  }
}


/* --------------------------------------------------------------------------
   Artist detail template
   -------------------------------------------------------------------------- */

.artist-profile-section {
  padding-top: 5.5rem;
  padding-bottom: 6.8rem;
}

.artist-profile-section .artist-profile-layout {
  display: grid !important;
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.15fr) !important;
  gap: 4.25rem 5.5rem;
  align-items: start;
}

.artist-profile-section .artist-profile-layout--text-only {
  grid-template-columns: minmax(0, 860px) !important;
}

.artist-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  background: #f3efe8;
  box-shadow: 0 22px 54px rgba(15, 23, 42, .10);
}

@media (min-width: 1024px) {
  .artist-portrait-sticky {
    position: sticky;
    top: 7.25rem;
  }
}

.artist-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .36);
}

.artist-portrait-img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  height: auto;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) sepia(.08) contrast(.97);
  transition: filter .55s ease, transform .75s ease;
}

.artist-portrait-frame:hover .artist-portrait-img {
  transform: scale(1.03);
  filter: grayscale(.12) sepia(.04) contrast(1.02);
}

.artist-profile-copy {
  max-width: 760px;
  padding-top: .15rem;
}

.artist-profile-kicker {
  margin: 0 0 .75rem;
  color: var(--primary);
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.artist-profile-name {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-size: clamp(2.35rem, 3.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
}

.artist-profile-title {
  position: relative;
  margin-top: 1.18rem;
  margin-bottom: 1.75rem;
  padding-left: .95rem;
  color: #334155;
  font-size: clamp(1.02rem, 1.22vw, 1.14rem);
  font-weight: 500;
  line-height: 1.85;
}

.artist-profile-title::before {
  content: '';
  position: absolute;
  top: .38em;
  bottom: .38em;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(184, 134, 11, .72), rgba(184, 134, 11, .18));
}

.artist-profile-content {
  margin-bottom: 2rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.95;
}

.artist-profile-content p {
  margin-top: 0;
  margin-bottom: 1.05rem;
}

.artist-profile-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  margin-top: 2.15rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(15, 23, 42, .10);
}

.artist-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.45rem;
  margin-right: .5rem;
}

.artist-profile-stat {
  min-width: 5.8rem;
}

.artist-profile-stat strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 700;
}

.artist-profile-stat span {
  display: block;
  margin-top: .45rem;
  color: #8b6914;
  font-size: .78rem;
  letter-spacing: .12em;
}

.artist-profile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .88rem 1.8rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: filter .25s ease, box-shadow .25s ease;
}

.artist-profile-cta:hover {
  color: #fff;
  filter: brightness(1.04);
  box-shadow: 0 14px 32px rgba(184, 134, 11, .24);
}

.artist-section-head {
  margin-bottom: 2.4rem;
}

.artist-section-head p {
  margin: 0 0 .5rem;
  color: var(--primary);
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 400;
  letter-spacing: .1em;
}

.artist-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.artist-case-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  transition: border-color .32s ease, box-shadow .32s ease;
}

.artist-case-card:hover {
  border-color: rgba(184, 134, 11, .30);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.artist-case-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3efe8;
}

.artist-case-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-case-body {
  padding: 1.35rem 1.45rem 1.55rem;
}

.artist-case-meta {
  margin: 0 0 .65rem;
  color: var(--primary-dark);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.artist-case-card h3 {
  margin: 0 0 .55rem;
  color: var(--ink);
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.45;
  transition: color .25s ease;
}

.artist-case-card:hover h3 {
  color: var(--primary-dark);
}

.artist-case-body > p:last-child {
  margin: 0;
  color: #64748b;
  font-size: .92rem;
  line-height: 1.8;
}

@media (max-width: 1023px) {
  .artist-profile-section {
    padding-top: 3.75rem;
    padding-bottom: 4.5rem;
  }

  .artist-profile-section .artist-profile-layout {
    grid-template-columns: 1fr !important;
    gap: 2.25rem;
  }

  .artist-portrait-frame {
    max-width: 560px;
  }

  .artist-profile-copy {
    max-width: 760px;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .artist-profile-section {
    padding-top: 3rem;
    padding-bottom: 3.75rem;
  }

  .artist-profile-name {
    font-size: 2rem;
  }

  .artist-profile-title {
    margin-top: 1rem;
    margin-bottom: 1.45rem;
    font-size: .98rem;
    line-height: 1.8;
  }

  .artist-profile-bottom {
    display: block;
  }

  .artist-profile-stats {
    margin: 0 0 1.35rem;
  }

  .artist-profile-cta {
    width: 100%;
  }
}

@media (hover: none) {
  .artist-portrait-frame:hover .artist-portrait-img {
    transform: none;
    filter: grayscale(1) sepia(.08) contrast(.97);
  }
}


/* Artist detail related-section actions */
.artist-section-head--action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.artist-section-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-bottom: .22rem;
  color: var(--primary-dark);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .25s ease;
}

.artist-section-more::before {
  content: '';
  position: absolute;
  left: 0;
  right: 1.1rem;
  bottom: -.22rem;
  height: 1px;
  background: rgba(184, 134, 11, .24);
  transform: scaleX(.62);
  transform-origin: left center;
  transition: transform .25s ease, background-color .25s ease;
}

.artist-section-more::after {
  content: '→';
  margin-left: .48rem;
  transform: translateX(0);
  transition: transform .25s ease;
}

.artist-section-more:hover {
  color: var(--primary);
}

.artist-section-more:hover::before {
  transform: scaleX(1);
  background: rgba(184, 134, 11, .48);
}

.artist-section-more:hover::after {
  transform: translateX(.22rem);
}

.artist-more-section .filter-card {
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: none;
}

.artist-more-section .grid {
  gap: 2rem !important;
}

.artist-more-section .filter-card:hover {
  border-color: rgba(184, 134, 11, .28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.artist-more-section .filter-card .image-zoom {
  aspect-ratio: 5 / 4;
  background: #f3efe8;
}

.artist-more-section .filter-card .image-zoom img {
  filter: grayscale(1) sepia(.08) contrast(.96);
  transition: filter .55s ease, transform .7s ease;
}

.artist-more-section .filter-card:hover .image-zoom img {
  filter: grayscale(.16) sepia(.04) contrast(1.02);
}

.artist-more-section .filter-card .p-6 {
  padding: 1.25rem 1.25rem 1.4rem;
}

.artist-more-section .filter-card h3 {
  font-size: 1.12rem;
}

@media (max-width: 640px) {
  .artist-section-head--action {
    display: block;
  }

  .artist-section-more {
    margin-top: .9rem;
    margin-bottom: 0;
  }

  .artist-more-section .filter-card .p-6 {
    padding: 1.15rem 1.15rem 1.3rem;
  }
}


/* Backend archive pagination: work/case toolbar consistency */
.archive-list-page .list-toolbar {
  align-items: center;
  margin-bottom: 3.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.archive-list-page .list-filter-actions {
  gap: .7rem;
}

.archive-list-page .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: #fff;
  border-color: rgba(15, 23, 42, .10);
  color: #475569;
  text-decoration: none;
}

.archive-list-page .filter-btn:not(.active):hover,
.archive-list-page .filter-btn:not(.active):focus-visible {
  border-color: rgba(184, 134, 11, .48) !important;
  color: var(--primary-dark) !important;
  background: rgba(184, 134, 11, .06) !important;
  outline: none;
}

.archive-list-page .filter-btn.active,
.archive-list-page .filter-btn.active:hover,
.archive-list-page .filter-btn.active:focus,
.archive-list-page .filter-btn.active:focus-visible {
  color: #fff !important;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: default;
  pointer-events: none;
}

.list-search-form {
  flex: 0 0 360px;
  width: min(360px, 100%);
}

.list-search-form .list-search {
  width: 100%;
  min-height: 44px;
  background: #fff;
  border-color: rgba(15, 23, 42, .12);
}

.archive-list-page .pagination .pagination-btn {
  text-decoration: none;
}

@media (max-width: 767px) {
  .archive-list-page .list-toolbar {
    gap: 1rem !important;
    margin-bottom: 1.75rem !important;
    padding-bottom: .85rem;
  }

  .archive-list-page .list-filter-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: .55rem !important;
    width: 100%;
    max-width: 100%;
    padding: 0 0 .35rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .archive-list-page .list-filter-actions::-webkit-scrollbar {
    display: none;
  }

  .archive-list-page .filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 2.45rem;
    padding: 0 .95rem !important;
    scroll-snap-align: start;
  }

  .list-search-form {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0;
  }

  .list-search-form .list-search {
    height: 2.85rem;
  }

  .archive-list-page .grid {
    gap: 1.55rem !important;
  }
}

/* Case detail polish: combine current inner hero with clearer HTML-draft detail layout */
.case-detail-section {
  padding-top: clamp(4.8rem, 7vw, 7rem);
  padding-bottom: clamp(4.8rem, 7vw, 7rem);
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.case-detail-layout--text-only {
  grid-template-columns: minmax(0, 760px);
}

.case-gallery-wrap {
  min-width: 0;
}

.case-gallery-main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  background: #f3efe8;
  cursor: zoom-in;
  box-shadow: 0 22px 58px rgba(15, 23, 42, .10);
}

.case-gallery-main .gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease, filter .45s ease;
}

.case-gallery-main:hover .gallery-main {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.case-thumb-strip {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: .2rem;
}

.case-thumb-strip img {
  flex: 0 0 86px;
  width: 86px;
  height: 68px;
  object-fit: cover;
  border: 2px solid transparent;
  opacity: .72;
  cursor: pointer;
  transition: opacity .25s ease, border-color .25s ease, filter .25s ease;
}

.case-thumb-strip img:hover {
  opacity: .95;
  filter: saturate(1.05);
}

.case-thumb-strip img.active {
  border-color: var(--primary);
  opacity: 1;
}

.case-detail-copy {
  min-width: 0;
  padding-top: .15rem;
}

.case-detail-kicker {
  margin: 0 0 .75rem;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .12em;
}

.case-detail-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-serif);
  color: var(--dark);
  font-size: clamp(2rem, 3.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.case-detail-intro {
  margin: 0 0 1.35rem;
  color: #475569;
  font-size: 1.03rem;
  line-height: 1.95;
}

.case-detail-content {
  margin: 0 0 1.9rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.95;
}

.case-detail-content p {
  margin: 0 0 1rem;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  margin: 0 0 2rem;
  padding-top: 1.45rem;
  border-top: 1px solid rgba(15, 23, 42, .10);
}

.case-meta-item dt {
  margin: 0 0 .35rem;
  color: #94a3b8;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.case-meta-item dd {
  margin: 0;
  color: var(--dark);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.75;
}

.case-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .85rem 1.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(184, 134, 11, .20);
  transition: filter .25s ease, box-shadow .25s ease;
}

.case-detail-cta:hover {
  filter: brightness(1.04);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25), 0 16px 38px rgba(184, 134, 11, .28);
}

.case-related-section .filter-card {
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: none;
}

.case-related-section .filter-card:hover {
  border-color: rgba(184, 134, 11, .22);
  box-shadow: 0 20px 46px rgba(15, 23, 42, .075);
}

.case-section-head {
  margin-bottom: 2.8rem;
}

.case-section-head p {
  margin: 0 0 .55rem;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-artists-section .grid {
  align-items: stretch;
}

.case-artist-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.case-artist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 134, 11, .25);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.case-artist-img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #f3efe8;
}

.case-artist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(.08) contrast(.96);
  transition: filter .55s ease, transform .7s ease;
}

.case-artist-card:hover .case-artist-img img {
  filter: grayscale(.14) sepia(.04) contrast(1.02);
  transform: scale(1.045);
}

.case-artist-body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.case-artist-body p {
  margin: 0 0 .55rem;
  color: var(--primary);
  font-size: .75rem;
  letter-spacing: .12em;
}

.case-artist-body h3 {
  margin: 0 0 .55rem;
  font-family: var(--font-serif);
  color: var(--dark);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color .25s ease;
}

.case-artist-card:hover .case-artist-body h3 {
  color: var(--primary);
}

.case-artist-body span {
  display: block;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .case-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .case-detail-copy {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .case-detail-section {
    padding-top: 3.8rem;
    padding-bottom: 4rem;
  }

  .case-gallery-main {
    aspect-ratio: 4 / 3;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .09);
  }

  .case-thumb-strip {
    gap: .55rem;
  }

  .case-thumb-strip img {
    flex-basis: 68px;
    width: 68px;
    height: 54px;
  }

  .case-detail-title {
    font-size: 2rem;
  }

  .case-detail-intro,
  .case-detail-content {
    font-size: .96rem;
    line-height: 1.85;
  }

  .case-meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .case-detail-cta {
    width: 100%;
  }
}

/* Work detail polish: keep the current ink-wash hero, restore the HTML draft's stronger sales/detail structure. */
.work-detail-section {
  padding-top: clamp(4.8rem, 7vw, 7rem);
  padding-bottom: clamp(4.8rem, 7vw, 7rem);
}

.work-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.work-detail-layout--text-only {
  grid-template-columns: minmax(0, 760px);
}

.work-gallery-wrap {
  min-width: 0;
}

@media (min-width: 1025px) {
  .work-gallery-wrap {
    position: sticky;
    top: 108px;
    align-self: start;
    z-index: 2;
  }
}

.work-gallery-main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  background: #f3efe8;
  cursor: zoom-in;
  box-shadow: 0 22px 58px rgba(15, 23, 42, .10);
}

.work-gallery-main .gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s ease, filter .45s ease;
}

.work-gallery-main:hover .gallery-main {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.work-thumb-strip {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: .2rem;
}

.work-thumb-strip img {
  flex: 0 0 86px;
  width: 86px;
  height: 68px;
  object-fit: cover;
  border: 2px solid transparent;
  opacity: .72;
  cursor: pointer;
  transition: opacity .25s ease, border-color .25s ease, filter .25s ease;
}

.work-thumb-strip img:hover {
  opacity: .95;
  filter: saturate(1.05);
}

.work-thumb-strip img.active {
  border-color: var(--primary);
  opacity: 1;
}

.work-detail-copy {
  min-width: 0;
  padding-top: .15rem;
}

.work-detail-kicker {
  margin: 0 0 .75rem;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .12em;
}

.work-detail-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-serif);
  color: var(--dark);
  font-size: clamp(2rem, 3.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.work-detail-content {
  margin: 0 0 1.9rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.95;
}

.work-detail-content p {
  margin: 0 0 1rem;
}

.work-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  margin: 0 0 1.35rem;
  padding-top: 1.45rem;
  border-top: 1px solid rgba(15, 23, 42, .10);
}

.work-meta-item--wide {
  grid-column: 1 / -1;
}

.work-meta-item dt {
  margin: 0 0 .35rem;
  color: #94a3b8;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.work-meta-item dd {
  margin: 0;
  color: var(--dark);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.75;
}

.work-relation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 2rem;
}

.work-relation-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .42rem .85rem;
  border: 1px solid rgba(184, 134, 11, .24);
  background: rgba(184, 134, 11, .055);
  color: var(--primary-dark);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1;
}

.work-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .85rem 1.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(184, 134, 11, .20);
  transition: filter .25s ease, box-shadow .25s ease;
}

.work-detail-cta:hover {
  filter: brightness(1.04);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .25), 0 16px 38px rgba(184, 134, 11, .28);
}

.work-related-section .filter-card {
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: none;
}

.work-related-section .filter-card:hover {
  border-color: rgba(184, 134, 11, .22);
  box-shadow: 0 20px 46px rgba(15, 23, 42, .075);
}

.work-section-head {
  margin-bottom: 2.8rem;
}

.work-section-head p {
  margin: 0 0 .55rem;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.detail-related-grid,
.detail-artist-grid {
  display: grid;
  gap: 2rem;
}

.detail-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-related-grid--count-1 {
  grid-template-columns: minmax(0, 420px);
}

.detail-related-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
}

.detail-artist-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-artist-grid--count-1 {
  grid-template-columns: minmax(0, 420px);
}

.detail-artist-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
}

.detail-artist-grid--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-artist-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.detail-artist-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 134, 11, .25);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.detail-artist-img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #f3efe8;
}

.detail-artist-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(.08) contrast(.96);
  transition: filter .55s ease, transform .7s ease;
}

.detail-artist-card:hover .detail-artist-img img {
  filter: grayscale(.14) sepia(.04) contrast(1.02);
  transform: scale(1.045);
}

.detail-artist-body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.detail-artist-body p {
  margin: 0 0 .55rem;
  color: var(--primary);
  font-size: .75rem;
  letter-spacing: .12em;
}

.detail-artist-body h3 {
  margin: 0 0 .55rem;
  font-family: var(--font-serif);
  color: var(--dark);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color .25s ease;
}

.detail-artist-card:hover .detail-artist-body h3 {
  color: var(--primary);
}

.detail-artist-body span {
  display: block;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .work-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .work-detail-copy {
    padding-top: 0;
  }

  .detail-related-grid,
  .detail-related-grid--count-1,
  .detail-related-grid--count-2,
  .detail-artist-grid,
  .detail-artist-grid--count-1,
  .detail-artist-grid--count-2,
  .detail-artist-grid--count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .work-detail-section {
    padding-top: 3.8rem;
    padding-bottom: 4rem;
  }

  .work-gallery-main {
    aspect-ratio: 4 / 3;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .09);
  }

  .work-thumb-strip {
    gap: .55rem;
  }

  .work-thumb-strip img {
    flex-basis: 68px;
    width: 68px;
    height: 54px;
  }

  .work-detail-title {
    font-size: 2rem;
  }

  .work-detail-content {
    font-size: .96rem;
    line-height: 1.85;
  }

  .work-meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-detail-cta {
    width: 100%;
  }

  .detail-related-grid,
  .detail-related-grid--count-1,
  .detail-related-grid--count-2,
  .detail-artist-grid,
  .detail-artist-grid--count-1,
  .detail-artist-grid--count-2,
  .detail-artist-grid--count-3 {
    grid-template-columns: 1fr;
  }
}

/* About page: brand trust, gallery rhythm, and working standard. */
.about-method-page {
  background: #fff;
}

.about-position-section {
  padding-top: clamp(5.2rem, 7vw, 7.4rem);
  padding-bottom: clamp(5.2rem, 7vw, 7.4rem);
}

.about-position-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(380px, 1.04fr);
  gap: clamp(3.4rem, 5.4vw, 5.8rem);
  align-items: center;
}

.about-position-layout--copy-only {
  grid-template-columns: minmax(0, 760px);
}

.about-position-copy {
  max-width: 580px;
}

.about-major-title {
  max-width: 620px;
  margin: 0 0 1.45rem;
  font-family: var(--font-serif);
  color: var(--dark);
  font-size: clamp(2.06rem, 2.75vw, 3.12rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.about-major-title span {
  display: block;
}

.about-copy-text {
  color: #475569;
  font-size: 1rem;
  line-height: 1.95;
}

.about-copy-text p {
  margin: 0 0 1.1rem;
}

.about-copy-text p:last-child {
  margin-bottom: 0;
}

.about-position-media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #eee7dc;
  box-shadow: 0 24px 62px rgba(15, 23, 42, .105);
}

.about-position-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .38);
  pointer-events: none;
}

.about-position-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 23, 42, .02), rgba(15, 23, 42, .14));
  pointer-events: none;
}

.about-position-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: saturate(.88) contrast(1.02);
  transition: transform .8s ease, filter .45s ease;
}

.about-position-media:hover img {
  transform: scale(1.035);
  filter: saturate(1.03) contrast(1.035);
}

.about-problem-section,
.about-audience-section {
  padding-top: clamp(5rem, 7vw, 7rem);
  padding-bottom: clamp(5rem, 7vw, 7rem);
}

.about-standard-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(5.8rem, 8vw, 8.4rem);
  padding-bottom: clamp(5.8rem, 8vw, 8.4rem);
  background:
    radial-gradient(circle at 18% 8%, rgba(212, 175, 55, .13), transparent 28%),
    radial-gradient(circle at 80% 86%, rgba(255, 255, 255, .055), transparent 26%),
    linear-gradient(145deg, #0b1221 0%, #101827 52%, #151e2d 100%);
  color: rgba(255, 255, 255, .76);
}

.about-standard-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(0deg, rgba(255,255,255,.026) 1px, transparent 1px) 0 0 / 96px 96px;
  opacity: .38;
  pointer-events: none;
}

.about-standard-section > * {
  position: relative;
  z-index: 1;
}

.about-section-head {
  margin-bottom: clamp(2.6rem, 4vw, 4rem);
}

.about-method-page .section-eyebrow {
  margin: 0 0 .9rem;
  color: var(--primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.about-method-page .section-title {
  margin: 0;
  font-family: var(--font-serif), var(--font-serif-fallback);
  color: var(--dark);
  font-size: clamp(1.9rem, 2.7vw, 2.8rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.about-standard-section .section-title {
  color: #fff;
}

.about-problem-layout {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 5.6vw, 5.9rem);
  align-items: start;
}

.about-problem-intro {
  max-width: 430px;
  margin-bottom: 0;
}

.about-problem-intro p:not(.section-eyebrow),
.about-standard-intro p,
.about-audience-band p {
  margin: .95rem 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.9;
}

.about-standard-intro p {
  color: rgba(255, 255, 255, .66);
}

.about-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.about-problem-card {
  position: relative;
  min-height: 208px;
  padding: 2.05rem 1.85rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .07);
  background: rgba(255, 255, 255, .82);
  box-shadow: none;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}

.about-problem-card::before {
  content: "";
  position: absolute;
  left: 1.9rem;
  top: 0;
  width: 42px;
  height: 1px;
  background: var(--primary);
  opacity: .72;
  transition: width .28s ease, opacity .28s ease;
}

.about-problem-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 134, 11, .24);
  background-color: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .045);
}

.about-problem-card:hover::before {
  width: calc(100% - 3.8rem);
  opacity: 1;
}

.about-problem-card span {
  display: inline-block;
  margin-bottom: 1.15rem;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.about-problem-card h3 {
  margin: 0 0 .82rem;
  font-family: var(--font-serif);
  color: var(--dark);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.34;
}

.about-problem-card p {
  margin: 0;
  color: #64748b;
  font-size: .96rem;
  line-height: 1.85;
}

.about-standard-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(3.2rem, 5.4vw, 5.8rem);
  align-items: start;
}

.about-standard-intro {
  position: sticky;
  top: 108px;
  max-width: 430px;
}

.about-standard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .10);
}

.about-standard-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.05rem;
  min-height: 206px;
  padding: clamp(1.85rem, 2.9vw, 2.65rem);
  background: rgba(15, 23, 42, .38);
  transition: background-color .28s ease, transform .28s ease;
}

.about-standard-item:hover {
  background: rgba(15, 23, 42, .56);
}

.about-standard-item > span {
  color: var(--primary-2);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
}

.about-standard-item h3 {
  margin: 0 0 .62rem;
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.about-standard-item p {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: .96rem;
  line-height: 1.82;
}

.about-audience-section {
  padding-top: clamp(4.8rem, 6vw, 6.4rem);
}

.about-audience-band {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2.4rem, 5vw, 5.2rem);
  align-items: center;
  padding-top: clamp(1.4rem, 2vw, 2rem);
  border-top: 1px solid rgba(15, 23, 42, .12);
}

.about-audience-copy {
  max-width: 540px;
}

.about-audience-tags {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: .85rem;
  justify-content: flex-end;
  align-items: center;
}

.about-audience-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 86px;
  justify-content: center;
  padding: .66rem 1rem;
  border: 1px solid rgba(184, 134, 11, .24);
  background: rgba(184, 134, 11, .055);
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: .04em;
}

.about-closing-line {
  max-width: 800px;
  margin: clamp(2.8rem, 4.6vw, 4.6rem) auto 0;
  padding-top: clamp(2rem, 3vw, 2.8rem);
  border-top: 1px solid rgba(15, 23, 42, .11);
  text-align: center;
  font-family: var(--font-serif);
  color: var(--dark);
  font-size: clamp(1.48rem, 2.15vw, 2.06rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.02em;
}

@media (max-width: 1180px) {
  .about-problem-layout,
  .about-standard-layout {
    grid-template-columns: 1fr;
  }

  .about-problem-intro,
  .about-standard-intro {
    max-width: 720px;
  }

  .about-standard-intro {
    position: static;
  }
}

@media (max-width: 1024px) {
  .about-position-layout,
  .about-audience-band {
    grid-template-columns: 1fr;
  }

  .about-position-copy {
    max-width: 720px;
  }

  .about-audience-tags {
    grid-template-columns: repeat(3, max-content);
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .about-problem-grid,
  .about-standard-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-position-section,
  .about-problem-section,
  .about-standard-section,
  .about-audience-section {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
  }

  .about-major-title {
    font-size: 1.96rem;
    line-height: 1.15;
  }

  .about-position-media,
  .about-position-media img {
    min-height: 260px;
  }

  .about-problem-card {
    min-height: auto;
    padding: 1.7rem 1.35rem;
  }

  .about-problem-card::before {
    left: 1.35rem;
  }

  .about-problem-card:hover::before {
    width: calc(100% - 2.7rem);
  }

  .about-standard-item {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: .7rem;
  }

  .about-audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
  }

  .about-audience-tags span {
    min-height: 38px;
    padding: .62rem .82rem;
    font-size: .92rem;
  }

  .about-closing-line {
    font-size: 1.55rem;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   15. Homepage order fix: hero overlay, application scenes, FAQ-to-footer flow
   -------------------------------------------------------------------------- */
.home-hero {
  background: var(--dark);
  isolation: isolate;
}

.home-hero .hero-slide {
  z-index: 0;
}

.home-hero .hero-slide.active {
  z-index: 1;
}

.home-hero .hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .42) 43%, rgba(15, 23, 42, .84) 100%),
    radial-gradient(circle at 50% 45%, rgba(15, 23, 42, .08), rgba(15, 23, 42, .42) 72%);
}

.home-hero > .relative,
.home-hero .hero-dot {
  position: relative;
  z-index: 3;
}

.home-hero .hero-heading,
.home-hero .hero-sub,
.home-hero .hero-eyebrow {
  text-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.home-hero .hero-secondary {
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(6px);
}

.home-scenes-section .home-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.scenario-card {
  display: flex;
  align-items: flex-end;
  min-height: 245px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.scenario-card > img,
.scenario-card .scenario-card-img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.02);
  transition: transform .55s ease, filter .55s ease;
}

.scenario-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, .16) 0%, rgba(15, 23, 42, .38) 45%, rgba(15, 23, 42, .9) 100%);
  transition: background .32s ease;
}

.scenario-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: rgba(15, 23, 42, .34);
  transition: opacity .32s ease;
}

.scenario-card .scenario-card-content,
.scenario-card > div:not(.scenario-card-img) {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.scenario-card:hover > img,
.scenario-card:hover .scenario-card-img {
  transform: scale(1.08);
  filter: saturate(.95) contrast(1.04);
}

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

.scenario-card:hover::after {
  background: linear-gradient(180deg, rgba(15, 23, 42, .22) 0%, rgba(15, 23, 42, .52) 45%, rgba(15, 23, 42, .95) 100%);
}

.scenario-card .scenario-card-content p,
.scenario-card .scenario-card-content h3 {
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

@media (max-width: 1023px) {
  .home-scenes-section .home-scenarios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: 600px !important;
  }

  .home-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, .84) 0%, rgba(15, 23, 42, .52) 42%, rgba(15, 23, 42, .9) 100%);
  }

  .home-scenes-section .home-scenarios-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .scenario-card {
    min-height: 220px;
    aspect-ratio: 16 / 10;
    padding: 1.45rem !important;
  }
}


/* Home maintenance and hero polish v1.0.61 */
.home-hero .hero-sub {
  white-space: pre-line;
}

.home-hero .hero-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(184, 134, 11, .28);
}

.home-hero .hero-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.22) 42%, transparent 72%);
  transform: translateX(-120%);
  transition: transform .55s ease, opacity .35s ease;
}

.home-hero .hero-primary:hover {
  color: #fff;
  box-shadow: 0 18px 42px rgba(184, 134, 11, .46), 0 0 0 1px rgba(255,255,255,.12) inset;
  filter: brightness(1.04);
}

.home-hero .hero-primary:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.home-scenes-section .home-scenarios-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
  row-gap: 28px !important;
  column-gap: 28px !important;
}

.home-scenes-section .scenario-card {
  margin: 0 !important;
  width: auto !important;
}

.home-scenes-section .scenario-card .scenario-card-img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
}

@media (max-width: 1023px) {
  .home-scenes-section .home-scenarios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

@media (max-width: 767px) {
  .home-scenes-section .home-scenarios-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* Home button / scene / newline fixes v1.0.62 */
.home-hero .hero-primary {
  position: relative;
  overflow: hidden;
  box-shadow: none;
  filter: none;
  transition: box-shadow .3s ease, background .3s ease, color .3s ease;
}

.home-hero .hero-primary::after {
  display: none !important;
}

.home-hero .hero-primary:hover {
  color: #fff;
  filter: none;
  box-shadow: 0 10px 15px -3px rgba(184, 134, 11, .3), 0 4px 6px -4px rgba(184, 134, 11, .3);
}

.home-hero .hero-secondary {
  background: transparent;
  backdrop-filter: none;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.home-hero .hero-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .7);
}

.home-scenes-section .home-scenarios-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}

.home-scenes-section .home-scenarios-grid > .scenario-card {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
}

.home-scenes-section .scenario-card > * {
  position: relative;
}

.home-scenes-section .scenario-card > img,
.home-scenes-section .scenario-card .scenario-card-img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  object-fit: cover !important;
}

.home-scenes-section .scenario-card .scenario-card-content {
  position: relative !important;
  z-index: 3 !important;
}

@media (max-width: 1023px) {
  .home-scenes-section .home-scenarios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

@media (max-width: 767px) {
  .home-scenes-section .home-scenarios-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* Home hero typography tune v1.0.64
   PC title is intentionally calmer than Tailwind text-8xl.
   Keep line-height from the existing hero heading system. */
.home-hero .hero-heading {
  font-size: 4.5rem !important;
}

.home-hero .hero-sub {
  font-size: 1.125rem !important;
}

@media (max-width: 1279px) {
  .home-hero .hero-heading {
    font-size: 4.05rem !important;
  }
}

@media (max-width: 1023px) {
  .home-hero .hero-heading {
    font-size: 3.35rem !important;
  }

  .home-hero .hero-sub {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 767px) {
  .home-hero .hero-heading {
    font-size: 2.45rem !important;
  }

  .home-hero .hero-sub {
    font-size: .98rem !important;
  }
}

@media (max-width: 420px) {
  .home-hero .hero-heading {
    font-size: 2.18rem !important;
  }
}

/* Home section more buttons hover text fix v1.0.65
   .text-primary is intentionally !important in the utility layer, so these
   homepage outline buttons need a more specific override on hover/focus. */
.home-more-link:hover,
.home-more-link:focus-visible {
  color: #fff !important;
}

/* Generic WordPress pages v1.0.68
   Used by normal pages such as Privacy Policy, so they no longer fall back to the homepage. */
.generic-page-section {
  padding: 88px 0 112px;
  background: #fff;
}

.generic-page-container {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.generic-page-content {
  color: rgba(30, 41, 59, .82);
  font-size: 16px;
  line-height: 2;
}

.generic-page-content > *:first-child {
  margin-top: 0;
}

.generic-page-content > *:last-child {
  margin-bottom: 0;
}

.generic-page-content p,
.generic-page-content ul,
.generic-page-content ol,
.generic-page-content table,
.generic-page-content blockquote {
  margin: 0 0 1.35em;
}

.generic-page-content h2,
.generic-page-content h3,
.generic-page-content h4,
.generic-page-content .wp-block-heading {
  color: var(--ink);
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-weight: 700;
  line-height: 1.35;
  margin: 2.1em 0 .75em;
}

.generic-page-content h2 {
  font-size: 1.65rem;
}

.generic-page-content h3 {
  font-size: 1.28rem;
}

.generic-page-content a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.generic-page-content ul,
.generic-page-content ol {
  padding-left: 1.45em;
}

.generic-page-content li + li {
  margin-top: .45em;
}

.generic-page-content blockquote {
  border-left: 2px solid var(--primary);
  padding: .1em 0 .1em 1.2em;
  color: rgba(30, 41, 59, .68);
  background: rgba(248, 245, 240, .55);
}

.generic-page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.generic-page-content th,
.generic-page-content td {
  border: 1px solid rgba(30, 41, 59, .12);
  padding: .85em 1em;
  text-align: left;
}

.generic-page-content th {
  background: var(--warm);
  color: var(--ink);
}

.generic-page-content img {
  max-width: 100%;
  height: auto;
}

.generic-archive-list {
  display: grid;
  gap: 22px;
}

.generic-archive-item {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(30, 41, 59, .1);
}

.generic-archive-title {
  margin: 0 0 .45em;
  font-family: var(--font-serif), var(--font-serif-fallback);
  font-size: 1.35rem;
}

.generic-archive-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color .25s ease;
}

.generic-archive-title a:hover {
  color: var(--primary);
}

@media (max-width: 767px) {
  .generic-page-section {
    padding: 56px 0 72px;
  }

  .generic-page-container {
    width: min(100% - 32px, 860px);
  }

  .generic-page-content {
    font-size: 15px;
    line-height: 1.9;
  }

  .generic-page-content h2 {
    font-size: 1.38rem;
  }

  .generic-page-content h3 {
    font-size: 1.16rem;
  }
}

/* Cookie notice */
.yes-cookie-notice {
  position: fixed;
  left: auto;
  right: 32px;
  bottom: 36px;
  width: min(410px, calc(100vw - 40px));
  z-index: 9990;
  transform: translateY(42px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .46s ease, transform .46s cubic-bezier(.2, .75, .2, 1);
}

.yes-cookie-notice.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.yes-cookie-notice__inner {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 18px 15px;
  color: rgba(255, 255, 255, .78);
  background: rgba(15, 23, 42, .92);
  border: 1px solid rgba(255, 255, 255, .10);
  border-top-color: rgba(184, 134, 11, .24);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .24);
  backdrop-filter: blur(14px);
}

.yes-cookie-notice__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
}

.yes-cookie-notice__text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .36);
  white-space: nowrap;
}

.yes-cookie-notice__text a:hover {
  color: rgba(255, 255, 255, .9);
  text-decoration-color: rgba(255, 255, 255, .62);
}

.yes-cookie-notice__button {
  flex: 0 0 auto;
  min-width: 68px;
  height: 31px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .055);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.yes-cookie-notice__button:hover,
.yes-cookie-notice__button:focus-visible {
  color: rgba(255, 255, 255, .96);
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .24);
  outline: none;
}

@media (max-width: 767px) {
  .yes-cookie-notice {
    left: 14px;
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: auto;
  }

  .yes-cookie-notice__inner {
    padding: 15px 15px 14px;
  }
}



/* Contact page final visual polish v1.0.76 */
.contact-page-inner {
  width: min(1280px, calc(100% - 64px));
}

.contact-studio-panel {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  border-color: rgba(15, 23, 42, .065);
  box-shadow: 0 34px 96px rgba(15, 23, 42, .10);
}

.contact-info-panel,
.contact-form-panel {
  min-height: 590px;
}

.contact-info-panel {
  padding: clamp(3.45rem, 4.8vw, 5.15rem);
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 175, 55, .16), transparent 24%),
    linear-gradient(145deg, #121d31 0%, #0f172a 52%, #08101f 100%);
}

.contact-form-panel {
  padding: clamp(3.45rem, 4.8vw, 5.15rem);
}

.contact-info-list {
  margin-top: clamp(2.65rem, 4.4vw, 3.55rem);
}

.contact-info-list p {
  padding: 1.16rem 0;
}

.contact-wechat-card {
  transform: translateY(.35rem);
}

.contact-form-panel .project-form-note {
  margin-bottom: 2.35rem;
}

.contact-form-panel .wpforms-field {
  padding-bottom: 1.16rem !important;
}

.contact-form-panel textarea {
  min-height: 184px !important;
}

.contact-form-panel.project-form-card .wpforms-submit-container,
.contact-form-panel.project-form-card .wpforms-submit-container.wpforms-submit-container {
  padding-top: .85rem !important;
}

.contact-form-panel.project-form-card button[type="submit"],
.contact-form-panel.project-form-card .wpforms-submit {
  width: auto !important;
  min-width: 148px !important;
  min-height: 46px !important;
  padding: 0 1.7rem !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  letter-spacing: .035em;
  background: linear-gradient(135deg, #d2a619 0%, #b1840c 62%, #8b6914 100%) !important;
  box-shadow: 0 10px 24px rgba(184, 134, 11, .13) !important;
}

.contact-form-panel.project-form-card button[type="submit"]:hover,
.contact-form-panel.project-form-card .wpforms-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
  box-shadow: 0 14px 30px rgba(184, 134, 11, .18) !important;
}

.contact-map-row {
  margin-top: clamp(2.85rem, 4.2vw, 3.75rem);
}

.contact-map-header {
  margin-bottom: 0;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 250, 243, .88);
  border: 1px solid rgba(15, 23, 42, .075);
  border-bottom: 0;
  box-shadow: 0 18px 54px rgba(15, 23, 42, .045);
}

.contact-map-title {
  font-size: clamp(1.82rem, 2.35vw, 2.45rem);
}

.contact-map-shell {
  border-color: rgba(15, 23, 42, .075);
  box-shadow: 0 30px 78px rgba(15, 23, 42, .105);
}

.contact-map-shell--wide .contact-baidu-map {
  min-height: 450px;
}

@media (max-width: 1023px) {
  .contact-page-inner {
    width: min(820px, calc(100% - 40px));
  }

  .contact-info-panel,
  .contact-form-panel {
    min-height: 0;
  }

  .contact-wechat-card {
    transform: none;
  }
}

@media (max-width: 767px) {
  .contact-page-inner {
    width: calc(100% - 28px);
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 2.1rem 1.35rem;
  }

  .contact-form-panel.project-form-card button[type="submit"],
  .contact-form-panel.project-form-card .wpforms-submit {
    width: 100% !important;
    min-height: 50px !important;
  }

  .contact-map-header {
    padding: 1rem 1rem .95rem;
  }

  .contact-map-shell--wide .contact-baidu-map {
    min-height: 325px;
  }
}


/* Contact page width alignment v1.0.76
   Match other inner pages: max-w-7xl outer width with inner horizontal padding. */
.contact-page-inner {
  width: min(1280px, 100%) !important;
  padding-right: 2rem !important;
  padding-left: 2rem !important;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .contact-page-inner {
    width: 100% !important;
    max-width: 820px;
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
  }
}

@media (max-width: 767px) {
  .contact-page-inner {
    max-width: none;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}


/* Contact page mobile stack fix v1.0.77
   The previous desktop polish rule was appended after the early mobile rules,
   so it overrode the mobile one-column layout. Keep desktop unchanged and
   force the contact center to stack cleanly on tablets and phones. */
@media (max-width: 1023px) {
  .contact-studio-panel {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767px) {
  .contact-page-section {
    padding-top: 3.45rem;
    padding-bottom: 4.4rem;
  }

  .contact-studio-panel {
    display: block;
    overflow: hidden;
    box-shadow: 0 22px 58px rgba(15, 23, 42, .085);
  }

  .contact-info-panel,
  .contact-form-panel {
    width: 100%;
    min-height: 0 !important;
  }

  .contact-info-panel {
    padding: 2.05rem 1.28rem 2.35rem !important;
  }

  .contact-form-panel {
    padding: 2.15rem 1.28rem 2.35rem !important;
  }

  .contact-title {
    max-width: 12em;
    font-size: clamp(2rem, 10.5vw, 2.18rem);
    line-height: 1.16;
  }

  .contact-info-list {
    margin-top: 1.75rem;
  }

  .contact-info-list p {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: .8rem;
    padding: .92rem 0;
    font-size: .9rem;
    line-height: 1.7;
  }

  .contact-info-list a,
  .contact-info-list em {
    overflow-wrap: anywhere;
  }

  .contact-wechat-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: .9rem;
    margin-top: 1.85rem;
    padding: .92rem;
    align-items: center;
  }

  .contact-wechat-copy h3 {
    font-size: .98rem;
  }

  .contact-wechat-copy p,
  .contact-wechat-id {
    font-size: .8rem;
    line-height: 1.65;
  }

  .contact-wechat-id {
    flex-wrap: wrap;
    gap: .25rem .45rem;
    word-break: break-word;
  }

  .contact-wechat-qr {
    width: 104px;
    height: 104px;
    margin-top: 0;
    padding: 6px;
  }

  .contact-form-panel .project-form-title {
    font-size: 1.9rem;
  }

  .contact-form-panel .project-form-note {
    margin-bottom: 1.55rem;
    font-size: .92rem;
    line-height: 1.8;
  }

  .contact-form-panel input[type="text"],
  .contact-form-panel input[type="email"],
  .contact-form-panel input[type="tel"],
  .contact-form-panel input[type="number"],
  .contact-form-panel input[type="url"],
  .contact-form-panel select {
    min-height: 48px !important;
  }

  .contact-form-panel textarea {
    min-height: 142px !important;
  }

  .contact-map-row {
    margin-top: 2.25rem;
  }

  .contact-map-header {
    padding: 1rem .95rem .9rem;
  }

  .contact-map-title {
    font-size: 1.65rem;
  }

  .contact-map-address {
    font-size: .86rem;
    line-height: 1.7;
  }

  .contact-map-shell--wide .contact-baidu-map {
    min-height: 302px;
  }
}

@media (max-width: 430px) {
  .contact-page-inner {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding-right: 1.1rem !important;
    padding-left: 1.1rem !important;
  }

  .contact-wechat-card {
    grid-template-columns: 1fr;
  }

  .contact-wechat-qr {
    width: 126px;
    height: 126px;
    margin-top: .85rem;
  }
}
