/* ====== CSS Variables & Reset ====== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --gold: #C8A45C;
  --gold-light: #D4BC7E;
  --gold-dark: #A07830;
  --gold-glow: rgba(200,164,92,0.15);
  --text-primary: #F5F0E8;
  --text-secondary: #A09888;
  --text-muted: #6B6560;
  --border-subtle: rgba(255,255,255,0.06);
  --border-gold: rgba(200,164,92,0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 30px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 40px rgba(200,164,92,0.08);
  --font-display: 'Georgia', 'Times New Roman', 'Noto Serif SC', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { color: transparent; }
img.image-load-error { visibility: hidden; }
.is-hidden { display: none !important; }
.is-scroll-locked { overflow: hidden; }
.visually-hidden-copy {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.case-loading-card {
  background: var(--bg-card);
}
.case-loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
}
.activities-section {
  background: var(--bg-secondary);
}
.activity-loading-text {
  color: var(--text-muted);
}
.share-tab-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 1rem;
}
.share-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.lb-meta-value {
  color: var(--text-primary);
}

/* ====== Custom Scrollbar ====== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ====== Typography ====== */
h1, h2, h3, .display-font { font-family: var(--font-display); }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; letter-spacing: 0.02em; line-height: 1.15; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; letter-spacing: 0.01em; }
h3 { font-size: 1.25rem; font-weight: 400; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
}

/* ====== Layout ====== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; position: relative; }

/* ====== Navigation ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--transition-smooth);
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text-primary);
}
.nav-logo-img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
}
.nav-logo-text { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.05em;
  transition: color 0.3s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--transition-smooth);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 50px;
  font-size: 0.85rem !important;
  transition: all 0.3s var(--transition-smooth);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-primary) !important;
}

/* ====== Hero Section ====== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,164,92,0.06) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 30%, rgba(200,164,92,0.03) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.8rem; color: var(--gold);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title { margin-bottom: 1.5rem; }
.hero-title .gold { color: var(--gold); }
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 500px; margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.95rem; text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
  cursor: pointer; border: none; font-family: var(--font-body);
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--gold); color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(200,164,92,0.3);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,164,92,0.4);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.2); color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(200,164,92,0.05);
}

/* ====== Stats / Trust Strip ====== */
.stats-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.stat-item {
  background: var(--bg-primary); padding: 2rem 1rem;
  text-align: center; position: relative;
}
.stat-icon-badge {
  font-size: 1.8rem; display: block; margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.stat-desc {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ====== Section Headers ====== */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--text-secondary); max-width: 500px;
  margin: 0 auto; font-size: 1rem; line-height: 1.8;
}

/* ====== Services Grid ====== */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 2.5rem 2rem;
  transition: all 0.4s var(--transition-smooth);
  position: relative; overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.service-card::after {
  content: '点击查看案例 →';
  position: absolute; bottom: 1rem; right: 1.5rem;
  font-size: 0.75rem; color: var(--gold);
  opacity: 0; transform: translateX(-8px);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; transform: translateX(0); }
.service-icon {
  font-size: 2.5rem; margin-bottom: 1.5rem; display: block;
}
.service-card h3 { margin-bottom: 0.75rem; color: var(--text-primary); }
.service-card p {
  color: var(--text-secondary); font-size: 0.9rem;
  line-height: 1.7;
}

/* ====== Cases Grid ====== */
.cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; aspect-ratio: 3/4;
  cursor: pointer; group: true;
}
.case-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}
.case-card:hover img { transform: scale(1.05); }
.case-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,14,11,0.92) 0%, rgba(8,14,11,0.48) 42%, transparent 78%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem;
}
.case-readable-panel,
.share-readable-panel,
.cat-case-readable-panel {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(10,18,14,0.34);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}
.cat-case-readable-panel {
  background: rgba(10,18,14,0.30);
}
.case-overlay h3 { color:#fff; font-size: 1.05rem; margin-bottom: 0.28rem; }
.case-overlay span { font-size: 0.8rem; color: rgba(255,255,255,0.78); }

/* ====== 活动模块 ====== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 100%;
}
.activity-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #141414;
}
.activity-body {
  padding: 1.25rem;
}
.activity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.activity-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(200,164,92,0.16);
  color: var(--gold);
  font-size: 0.78rem;
}
.activity-end {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.activity-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}
.activity-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ====== Process Timeline ====== */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 2rem; left: 3rem; right: 3rem;
  height: 1px; background: var(--border-gold);
  z-index: 0;
}
.process-step {
  text-align: center; position: relative; z-index: 1;
}
.process-num {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--gold);
  transition: all 0.3s;
}
.process-step:hover .process-num {
  background: var(--gold); color: var(--bg-primary);
  box-shadow: 0 0 30px var(--gold-glow);
}
.process-step h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.process-step p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ====== CTA Section ====== */
.cta-section {
  background: radial-gradient(ellipse at center, rgba(200,164,92,0.08) 0%, transparent 70%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: var(--text-secondary); margin-bottom: 2rem;
  font-size: 1.05rem; line-height: 1.8;
}

/* ====== Footer ====== */
.footer {
  background: var(--bg-secondary); padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  margin-bottom: 1rem;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-primary); margin-bottom: 1.5rem;
}
.footer-col a {
  display: block; color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; margin-bottom: 0.75rem; transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 0.8rem;
}
.footer-filings { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-icp,
.footer-public-security {
  color: inherit; text-decoration: none; transition: color 0.3s;
}
.footer-public-security { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-public-security-icon { width: 18px; height: 20px; object-fit: contain; }
.footer-icp:hover,
.footer-public-security:hover { color: var(--gold); }

/* ====== Floating Contact ====== */
.floating-contact {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.float-btn {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  text-decoration: none; font-size: 1.2rem;
}
.float-btn:hover {
  border-color: var(--gold); background: var(--gold);
  transform: translateY(-2px);
}
.float-btn.primary {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(200,164,92,0.3);
}
.contact-trigger {
  appearance: none;
  -webkit-appearance: none;
}
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(7,10,9,0.58);
  backdrop-filter: blur(10px);
}
.contact-modal.open { display: flex; }
.contact-dialog {
  width: min(92vw, 420px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(248,246,241,0.96);
  color: #19231d;
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
  overflow: hidden;
}
.contact-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0.65rem;
}
.contact-dialog-head h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
}
.contact-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(25,35,29,0.08);
  color: #19231d;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.contact-dialog-body {
  padding: 0.2rem 1.35rem 1.35rem;
}
.contact-dialog-body p {
  color: rgba(25,35,29,0.68);
  margin-bottom: 1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(42,83,61,0.08);
  margin-bottom: 0.75rem;
}
.contact-card strong {
  display: block;
  font-size: 0.82rem;
  color: rgba(25,35,29,0.62);
  margin-bottom: 0.12rem;
}
.contact-card span {
  font-size: 1.05rem;
  font-weight: 800;
  color: #203c2c;
}
.contact-action {
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: #2f5b43;
  color: #fff;
  padding: 0.58rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}
.contact-action.secondary {
  background: rgba(47,91,67,0.12);
  color: #244934;
}
.contact-hint {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: rgba(25,35,29,0.56);
}
.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 1700;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(20,31,25,0.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
}
.contact-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====== Animations ====== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s var(--transition-smooth);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .services-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section { padding: 4rem 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ====== Category Cases Modal ====== */
.cat-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85); z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 2rem 1rem;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.cat-modal-overlay.open { opacity: 1; visibility: visible; }
.cat-modal {
  background: var(--bg-primary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); width: 100%; max-width: 1000px;
  padding: 2.5rem 2rem; margin: auto;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.cat-modal-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.8rem; cursor: pointer; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.2s;
}
.cat-modal-close:hover { color: var(--gold); background: rgba(200,164,92,0.1); }
.cat-modal-header {
  text-align: center; margin-bottom: 2rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle);
}
.cat-modal-header h2 {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--text-primary); margin-bottom: 0.5rem;
}
.cat-modal-header .cat-badge {
  display: inline-block; padding: 0.25rem 1rem;
  background: rgba(200,164,92,0.1); color: var(--gold);
  border-radius: 20px; font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.cat-cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-bottom: 2rem;
}
.cat-case-item {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; aspect-ratio: 3/4; cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
.cat-case-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.cat-case-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.cat-case-item .cat-case-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8,14,11,0.88));
  padding: 1rem;
  color: #fff;
}
.cat-case-info h4 { color:#fff; font-size: 0.95rem; margin-bottom: 0.35rem; }
.cat-case-info span { font-size: 0.75rem; color: rgba(255,213,128,0.92); }
.cat-modal-empty {
  text-align: center; padding: 3rem 1rem; color: var(--text-muted);
}
.cat-modal-empty .empty-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.cat-modal-cta {
  text-align: center; padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.cat-modal-cta p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9rem; }

@media (max-width: 768px) {
  .cat-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-modal { padding: 1.5rem 1rem; }
  .cat-modal-header h2 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .cat-cases-grid { grid-template-columns: 1fr; }
  .cat-modal-overlay { padding: 1rem 0.5rem; }
}

/* ====== Case Detail Lightbox (Immersive Fullscreen) ====== */
.lb-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(6,8,8,0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.lb-overlay.lb-open { opacity: 1; visibility: visible; }

/* Subtle radial glow behind image */
.lb-glow {
  position: absolute; top: 15%; left: 20%; right: 20%;
  height: 60vh; pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(200,164,92,0.06) 0%,
    transparent 70%);
  z-index: 0;
}

/* Close button - top right */
.lb-close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.lb-close:hover {
  background: rgba(200,164,92,0.15);
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

/* Main content area: info panel + image area */
.lb-main {
  flex: 1; display: flex; align-items: center; gap: 2.2rem;
  padding: 4rem 3rem 1rem; position: relative; z-index: 1;
  min-height: 0;
}

/* Left Info Panel - compact one-screen layout */
.lb-info-panel {
  width: clamp(320px, 25vw, 430px); flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 1.25rem;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  color: #1f2522;
  min-width: 0;
  max-height: min(72vh, 560px);
  overflow-y: auto;
}
.lb-info-category {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.32rem 0.86rem;
  background: rgba(200,164,92,0.1);
  border: 1px solid rgba(200,164,92,0.2);
  border-radius: 30px;
  font-size: 0.78rem; color: var(--gold);
  letter-spacing: 0.04em; margin-bottom: 0.95rem;
  width: fit-content;
}
.lb-info-title {
  font-family: var(--font-body);
  font-size: 1.22rem; line-height: 1.3;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

/* Meta grid: 2-column compact */
.lb-info-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
}
.lb-meta-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: var(--text-secondary);
}
.lb-meta-icon {
  width: 26px; height: 26px; border-radius: 9px;
  background: rgba(47,73,58,0.08);
  border: 1px solid rgba(47,73,58,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0;
}

/* Divider */
.lb-info-divider {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px; margin: 0.9rem 0;
}

/* Desc section - inline with features */
.lb-desc-section {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.lb-desc-title {
  font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0;
}
.lb-desc-text {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.75; max-height: none; overflow-y: visible;
}

/* Center Image Area */
.lb-image-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; min-width: 0; padding: 0 2rem;
}
.lb-image-wrapper {
  position: relative; max-width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lb-image-wrapper img {
  max-width: 100%; max-height: 70vh;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5),
              0 0 1px rgba(255,255,255,0.08) inset;
  /* Fade + zoom transition */
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-in;
}
.lb-image-wrapper img.lb-loaded { opacity: 1; transform: scale(1); }

/* ====== Fullscreen Zoom Mode ====== */
.lb-zoom-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(3,3,5,0.98);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.35s ease;
}
.lb-zoom-overlay.lb-zoom-open { opacity: 1; visibility: visible; }
.lb-zoom-overlay img {
  max-width: 96vw; max-height: 96vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 30px 120px rgba(0,0,0,0.7);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.2s ease;
}
.lb-zoom-overlay.lb-zoom-open img { transform: scale(1); }
.lb-zoom-overlay img.is-switching {
  opacity: 0;
  transform: scale(0.95);
}
.lb-zoom-close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.lb-zoom-close:hover { color: #fff; background: rgba(255,255,255,0.15); }
.lb-zoom-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em; pointer-events: none;
}
/* Zoom navigation arrows */
.lb-zoom-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease; z-index: 10;
}
.lb-zoom-nav:hover {
  background: rgba(200,164,92,0.15); border-color: rgba(200,164,92,0.35);
  color: var(--gold);
}
.lb-zoom-prev { left: 2rem; }
.lb-zoom-next { right: 2rem; }
/* Zoom counter */
.lb-zoom-counter {
  position: absolute; bottom: 2rem; right: 2rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em; z-index: 10;
}

/* Navigation arrows */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5); font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; z-index: 5;
}
.lb-nav:hover {
  background: rgba(200,164,92,0.12);
  border-color: rgba(200,164,92,0.3);
  color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}
.lb-nav-prev { left: 0.5rem; }
.lb-nav-next { right: 0.5rem; }

/* Counter badge */
.lb-counter-badge {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.7);
  padding: 0.35rem 1.1rem; border-radius: 20px;
  font-size: 0.78rem; letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 5;
}

/* Bottom Thumbnails Bar */
.lb-thumbnails {
  display: flex; gap: 0.6rem; justify-content: center;
  align-items: center; flex-shrink: 0;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.3);
  overflow-x: auto;
  position: relative; z-index: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.lb-thumbnails::-webkit-scrollbar { height: 4px; }
.lb-thumbnails::-webkit-scrollbar-track { transparent; }
.lb-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1); border-radius: 2px;
}
.lb-thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent;
  opacity: 0.35; transition: all 0.35s ease;
  position: relative;
}
.lb-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.lb-thumb:hover { opacity: 0.7; border-color: rgba(200,164,92,0.4); }
.lb-thumb:hover img { transform: scale(1.1); }
.lb-thumb.lb-active {
  opacity: 1; border-color: var(--gold);
  box-shadow: 0 0 16px rgba(200,164,92,0.2);
}
.lb-thumb::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 2px transparent;
  border-radius: 8px; transition: box-shadow 0.3s;
}

/* Loading spinner */
.lb-loading {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
  pointer-events: none; z-index: 3;
  opacity: 0; transition: opacity 0.3s;
}
.lb-loading.lb-show { opacity: 1; }
@keyframes lb-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Case Description Section (below info panel) */
.lb-desc-section {
  margin-top: 0.95rem; padding-top: 0.95rem;
  border-top: 1px solid rgba(31,37,34,0.08);
}
.lb-desc-title {
  font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.lb-desc-text {
  font-size: 0.78rem; color: var(--text-secondary);
  line-height: 1.62; max-height: 96px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: transparent transparent;
}
.lb-desc-text::-webkit-scrollbar { width: 3px; }
.lb-desc-text::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Feature Tags - compact inline */
.lb-features {
  display: flex; flex-wrap: wrap; gap: 0.28rem;
  margin-top: 0;
  max-height: 3.65rem;
  overflow: hidden;
}
.lb-tag {
  padding: 0.14rem 0.48rem; border-radius: 16px;
  font-size: 0.66rem; background: rgba(200,164,92,0.08);
  border: 1px solid rgba(200,164,92,0.15);
  color: var(--gold); white-space: nowrap;
  transition: all 0.25s ease;
}
.lb-tag:hover {
  background: rgba(200,164,92,0.18);
  border-color: var(--gold);
}

/* Responsive */
@media (max-width: 1100px) {
  .lb-info-panel { width: 320px; padding: 1.15rem; }
  .lb-info-title { font-size: 1.16rem; }
  .lb-meta-item { font-size: 0.76rem; }
  .lb-desc-text { font-size: 0.82rem; }
}
@media (max-width: 900px) {
  .lb-main { flex-direction: column; padding: 4rem 1rem 0.5rem; }
  .lb-info-panel {
    width: 100%; padding-right: 0; padding-bottom: 1.5rem;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: left; align-items: flex-start;
  }
  .lb-info-category { margin-bottom: 1rem; }
  .lb-info-title { font-size: 1.35rem; }
  .lb-info-meta { grid-template-columns: 1fr 1fr; gap: 0.6rem 1.2rem; align-items: flex-start; }
  .lb-desc-text { font-size: 0.82rem; max-height: none; }
  .lb-image-area { padding: 1rem 0; }
  .lb-image-wrapper img { max-height: 50vh; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.2rem; }
  .lb-nav-prev { left: 0; }
  .lb-nav-next { right: 0; }
  .lb-thumb { width: 48px; height: 48px; }
  .lb-close { top: 1rem; right: 1rem; width: 38px; height: 38px; }
}
@media (max-width: 480px) {
  .lb-thumb { width: 40px; height: 40px; border-radius: 6px; }
  .lb-info-title { font-size: 1.15rem; }
  .lb-image-wrapper img { max-height: 42vh; border-radius: 8px; }
}

/* ====== Share Cases Tabs ====== */
.share-tabs {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.share-tab {
  padding: 0.5rem 1.5rem; border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: transparent; color: var(--text-secondary);
  cursor: pointer; font-size: 0.85rem;
  transition: all 0.3s ease; font-family: var(--font-body);
  letter-spacing: 0.03em;
}
.share-tab:hover {
  border-color: var(--border-gold); color: var(--text-primary);
}
.share-tab.active {
  background: var(--gold); color: var(--bg-primary);
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(200,164,92,0.3);
}
.share-tab .tab-count {
  font-size: 0.7rem; margin-left: 0.35rem;
  opacity: 0.7;
}
.share-cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.share-case-card {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; aspect-ratio: 3/4; cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
.share-case-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.share-case-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.share-case-card:hover img { transform: scale(1.05); }
.share-case-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(200,164,92,0.85); color: var(--bg-primary);
  padding: 0.2rem 0.65rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.05em;
}
.share-case-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8,14,11,0.88));
  padding: 1rem;
  color: #fff;
}
.share-case-info h4 { color:#fff; font-size: 0.95rem; margin-bottom: 0.3rem; }
.share-case-info .share-meta {
  font-size: 0.75rem; color: rgba(255,213,128,0.92);
  display: flex; gap: 0.75rem; align-items: center;
}
.share-case-info .share-rating { font-size: 0.7rem; color: var(--gold); }
.share-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 3rem 1rem; color: var(--text-muted);
}

@media (max-width: 768px) {
  .share-cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .share-cases-grid { grid-template-columns: 1fr; }
  .share-tabs { gap: 0.4rem; }
  .share-tab { padding: 0.4rem 1rem; font-size: 0.8rem; }
}

/* ====== Spacejoy-inspired light redesign overrides ====== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8f6;
  --bg-card: #ffffff;
  --gold: #C7A65B;
  --gold-light: #E6D6AC;
  --gold-dark: #8A6825;
  --gold-glow: rgba(199,166,91,0.16);
  --text-primary: #1f2522;
  --text-secondary: #68736e;
  --text-muted: #8b928e;
  --border-subtle: rgba(82,67,45,0.12);
  --border-gold: rgba(199,166,91,0.28);
  --sage: #637868;
  --sage-dark: #2f493a;
  --warm-paper: #f7f8f6;
  --shadow-card: 0 16px 45px rgba(31,37,34,0.08);
  --shadow-gold: 0 20px 50px rgba(99,120,104,0.10);
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body { background: var(--bg-primary); }

.nav {
  padding: 1rem 0;
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(31,37,34,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: rgba(31,37,34,0.10);
}
.nav-logo-img {
  border-radius: 12px;
  border: 0;
  box-shadow: 0 8px 20px rgba(31,37,34,0.12);
}
.nav-logo-text { font-family: var(--font-body); font-weight: 800; }
.nav-link { color: var(--text-secondary); font-weight: 650; letter-spacing: 0; }
.nav-link:hover { color: var(--sage-dark); }
.nav-cta {
  border-color: var(--sage-dark);
  color: #fff !important;
  background: var(--sage-dark);
}
.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-primary) !important;
}

.container { max-width: 1340px; }
.section { padding: 5.5rem 0; }

.hero {
  min-height: auto;
  padding: 7.5rem 0 3.8rem;
  display: block;
}
.hero-bg {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,248,246,0.72)),
    radial-gradient(ellipse at 84% 24%, rgba(99,120,104,0.12), transparent 44%);
}
.hero-inner-spacejoy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 3rem;
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero-badge {
  border-color: rgba(99,120,104,0.24);
  background: rgba(99,120,104,0.12);
  color: var(--sage-dark);
  letter-spacing: 0;
  font-weight: 800;
  margin-bottom: 1.35rem;
}
.hero-badge-dot { background: var(--sage-dark); }
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.05rem, 3.35vw, 3.55rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-title .gold { color: var(--sage-dark); }
.hero-subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  font-size: 1.08rem;
}
.btn {
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--sage-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(47,73,58,0.22);
}
.btn-primary:hover {
  background: var(--sage);
  box-shadow: 0 16px 34px rgba(47,73,58,0.24);
}
.btn-outline {
  border-color: rgba(82,67,45,0.16);
  color: var(--text-primary);
  background: rgba(255,255,255,0.68);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  color: var(--gold-dark);
}
.hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero-proof-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(82,67,45,0.10);
  text-align: center;
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-proof-card strong { display:block; font-size:1.45rem; color:var(--sage-dark); }
.hero-proof-card strong {
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}
.hero-proof-card span { font-size:0.82rem; color:var(--text-muted); }
.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  grid-template-rows: 220px 220px;
  gap: 1rem;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #ddd;
  box-shadow: var(--shadow-card);
  animation: floatRoom 7s ease-in-out infinite;
}
.hero-photo.large { grid-row: span 2; animation-duration: 8.4s; }
.hero-photo:nth-child(2) { animation-delay: -1.8s; }
.hero-photo:nth-child(3) { animation-delay: -3.2s; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  filter: saturate(0.84) contrast(0.91) brightness(1.03);
  opacity: 0.9;
  transition: transform 0.8s var(--transition-smooth), filter 0.8s var(--transition-smooth), opacity 0.8s var(--transition-smooth);
}
.hero-photo:hover img {
  transform: scale(1.10);
  filter: saturate(0.94) contrast(0.96) brightness(1.02);
  opacity: 1;
}
.hero-floating-note {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  max-width: 250px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.72);
  color: var(--text-primary);
  box-shadow: 0 12px 30px rgba(31,37,34,0.12);
}
.hero-floating-note strong { display:block; margin-bottom:0.25rem; }
.hero-floating-note span { color:var(--text-secondary); font-size:0.82rem; }

.stats-strip {
  max-width: 1240px;
  margin: 0 auto 1rem;
  border: 0;
  gap: 1px;
  background: rgba(82,67,45,0.10);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stat-item { background: rgba(255,255,255,0.88); }
.stat-label { color: var(--text-primary); }

@keyframes floatRoom {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.kinetic-showcase {
  padding: 1.6rem 0 4.8rem;
  background: #fff;
}
.kinetic-shell {
  display: grid;
  grid-template-columns: minmax(320px,0.82fr) minmax(0,1.18fr);
  gap: 1.4rem;
  align-items: stretch;
}
.kinetic-copy {
  padding: 2.2rem;
  border: 1px solid rgba(31,37,34,0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.kinetic-copy h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.08;
  margin: 0.9rem 0;
}
.kinetic-copy p {
  color: var(--text-secondary);
  line-height: 1.85;
}
.kinetic-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.kinetic-points span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 750;
}
.kinetic-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-dark);
}
.kinetic-track {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 30px;
  background: #f7f8f6;
  border: 1px solid rgba(31,37,34,0.08);
  box-shadow: var(--shadow-card);
}
.kinetic-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  padding: 1rem;
  animation: roomDrift 26s linear infinite;
}
.kinetic-card {
  position: relative;
  width: min(34vw, 420px);
  min-width: 280px;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  background: #e8ece8;
}
.kinetic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes roomDrift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

.section-header { margin-bottom: 2.6rem; }
.section-label {
  color: var(--sage-dark);
  background: rgba(99,120,104,0.12);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  letter-spacing: 0;
  font-weight: 800;
}
.section-header h2 {
  font-family: var(--font-body);
  font-weight: 850;
  letter-spacing: 0;
}

.service-card,
.process-step,
.activity-card,
.case-card,
.share-case-card,
.footer,
.cat-modal {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.service-card:hover,
.case-card:hover,
.share-case-card:hover {
  border-color: var(--border-gold);
}
.service-icon { color: var(--sage-dark); }
.service-card h3,
.process-step h3,
.activity-card h3 { color: var(--text-primary); font-family: var(--font-body); font-weight: 800; }

.service-image-card {
  min-height: 320px;
  padding: 0;
  display: flex;
  align-items: flex-end;
  border: 0;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 20px 52px rgba(31,37,34,0.12);
}
.service-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--transition-smooth);
}
.service-image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  height: auto;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.22), transparent 35%),
    linear-gradient(0deg, rgba(31,37,34,0.18), rgba(31,37,34,0.02));
  opacity: 0;
  transition: opacity 0.4s var(--transition-smooth);
  z-index: 1;
}
.service-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(31,37,34,0.18);
  transform: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.service-image-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(31,37,34,0.18);
}
.service-image-card:hover .service-card-bg {
  transform: scale(1.05);
}
.service-image-card:hover::before,
.service-image-card:hover::after {
  opacity: 1;
}
.service-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0.85rem;
  padding: 1rem 1.05rem 0.9rem;
  background: rgba(18, 25, 21, 0.20);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #fff;
}
.service-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--sage-dark);
  font-size: 0.74rem;
  font-weight: 850;
}
.service-image-card h3 {
  color: #fff;
  margin-bottom: 0.38rem;
  font-size: 1.3rem;
}
.service-image-card p {
  color: rgba(255,255,255,0.84);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 0;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.service-action {
  display: inline-flex;
  margin-top: 0.68rem;
  color: #fff;
  font-weight: 850;
  border-bottom: 1px solid rgba(255,255,255,0.72);
}

.cases-grid,
.activities-grid,
.share-cases-grid {
  gap: 1.2rem;
}
.case-card,
.share-case-card {
  border-radius: 28px;
  overflow: hidden;
}
.case-overlay,
.share-case-info {
  background: linear-gradient(to top, rgba(8,14,11,0.54) 0%, rgba(8,14,11,0.18) 46%, transparent 78%);
}
.case-mosaic-section {
  background: #fff !important;
  overflow: hidden;
  padding: 5.4rem 0;
}
.case-mosaic-section .container {
  max-width: none;
  padding-left: clamp(16px, 3vw, 64px);
  padding-right: clamp(16px, 3vw, 64px);
}
.case-mosaic-section .section-header {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}
.case-mosaic-viewport {
  --mosaic-gap: clamp(18px, 1.55vw, 30px);
  overflow: hidden;
  width: 100%;
  height: clamp(540px, 48vw, 760px);
  padding: 0.25rem 0 0.8rem;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.case-mosaic-track {
  display: flex;
  width: max-content;
  gap: 0;
  height: 100%;
  animation: mosaicScrollLeft 58s linear infinite;
  will-change: transform;
}
.share-mosaic-track {
  animation-duration: 64s;
}
@keyframes mosaicScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-20%); }
}
.case-mosaic-grid {
  display: flex;
  align-items: stretch;
  gap: var(--mosaic-gap);
  width: max-content;
  height: 100%;
  padding-right: var(--mosaic-gap);
  flex: 0 0 auto;
}
.case-mosaic-clone .reveal {
  opacity: 1;
  transform: none;
}
.mosaic-column {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: var(--mosaic-gap);
  width: clamp(220px, 16.5vw, 370px);
  flex: 0 0 clamp(220px, 16.5vw, 370px);
}
.mosaic-column.mosaic-column-slim {
  width: clamp(160px, 11.5vw, 260px);
  flex-basis: clamp(160px, 11.5vw, 260px);
}
.mosaic-column.mosaic-column-wide {
  width: clamp(340px, 25vw, 560px);
  flex-basis: clamp(340px, 25vw, 560px);
}
.mosaic-feature-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: var(--mosaic-gap);
  width: clamp(680px, 56vw, 1120px);
  flex: 0 0 clamp(680px, 56vw, 1120px);
}
.case-mosaic-grid .case-card,
.case-mosaic-grid .share-case-card {
  aspect-ratio: auto;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: #eef1ed;
  box-shadow: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.case-mosaic-grid .case-card:hover,
.case-mosaic-grid .share-case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(31,37,34,0.14);
}
.case-card.mosaic-small,
.share-case-card.mosaic-small {
  grid-row: span 2;
}
.case-card.mosaic-tall,
.share-case-card.mosaic-tall {
  grid-row: span 3;
}
.case-card.mosaic-wide,
.share-case-card.mosaic-wide {
  grid-row: span 2;
}
.case-card.mosaic-hero,
.share-case-card.mosaic-hero {
  grid-row: span 4;
}
.case-card.mosaic-panorama,
.share-case-card.mosaic-panorama {
  grid-column: 1 / -1;
  grid-row: span 4;
}
.case-card.mosaic-feature-small,
.share-case-card.mosaic-feature-small {
  grid-row: span 2;
}
.case-card.mosaic-large,
.share-case-card.mosaic-large {
  grid-row: span 3;
}
.case-card.mosaic-short,
.share-case-card.mosaic-short {
  grid-row: span 1;
}
.case-mosaic-grid .case-overlay,
.case-mosaic-grid .share-case-info {
  opacity: 0;
  background: linear-gradient(to top, rgba(8,14,11,0.62), rgba(8,14,11,0.10) 58%, transparent);
  transition: opacity 0.28s ease;
}
.case-mosaic-grid .case-card:hover .case-overlay,
.case-mosaic-grid .share-case-card:hover .share-case-info {
  opacity: 1;
}
.case-mosaic-grid .case-readable-panel,
.case-mosaic-grid .share-readable-panel {
  border-radius: 8px;
  background: rgba(10,18,14,0.34);
  border-color: rgba(255,255,255,0.16);
}
.case-mosaic-grid .share-case-badge {
  top: 0.75rem;
  left: 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #1f2522;
  box-shadow: 0 10px 24px rgba(31,37,34,0.12);
}
.case-mosaic-section .share-tabs {
  margin-bottom: 1.6rem;
}

#activities {
  background: var(--bg-secondary) !important;
}

.before-after-section {
  background: #fff;
}
.before-after-grid {
  display: grid;
  grid-template-columns: minmax(0,1.28fr) minmax(360px,0.72fr);
  gap: 1.4rem;
  align-items: stretch;
}
.before-after-carousel {
  position: relative;
  padding-bottom: 2.2rem;
}
.before-after-slide {
  display: none;
  grid-template-columns: 0.55fr 1fr;
  gap: 0.55rem;
  padding: 0.65rem;
  min-height: 520px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(31,37,34,0.08);
  box-shadow: var(--shadow-card);
}
.before-after-slide.active {
  display: grid;
}
.compare-pane {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 22px;
  background: #e8ece8;
}
.compare-pane.after {
  border-radius: 22px;
}
.compare-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--transition-smooth);
}
.compare-pane:hover img {
  transform: scale(1.06);
}
.compare-badge {
  position: absolute;
  top: 1.2rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4661, #ff7a3d);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(255,70,97,0.22);
}
.compare-pane.before .compare-badge {
  right: -0.2rem;
  border-radius: 12px 0 0 12px;
}
.compare-pane.after .compare-badge {
  left: -0.2rem;
  border-radius: 0 12px 12px 0;
}
.before-after-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}
.before-after-dot {
  width: 30px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(31,37,34,0.18);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.before-after-dot.active {
  width: 44px;
  background: var(--sage-dark);
}
.before-after-copy {
  padding: 2rem;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(247,248,246,0.88)),
    radial-gradient(circle at top right, rgba(199,166,91,0.16), transparent 42%),
    #fff;
  color: var(--text-primary);
  border: 1px solid rgba(31,37,34,0.08);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}
.before-after-copy .section-label {
  width: fit-content;
  color: var(--sage-dark);
  background: rgba(99,120,104,0.12);
}
.before-after-copy h2 {
  margin: 1rem 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
}
.before-after-copy p {
  color: var(--text-secondary);
  line-height: 1.85;
}
.before-after-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.before-after-metrics div {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(99,120,104,0.10);
  border: 1px solid rgba(99,120,104,0.10);
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.before-after-metrics strong {
  display: block;
  font-size: 1.2rem;
}
.before-after-metrics small {
  color: var(--text-secondary);
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  justify-content: center;
  gap: 1.2rem;
  align-items: stretch;
}
.activity-card {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}
.activity-image {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}
.activity-body {
  padding: 1.4rem;
  background: var(--bg-card);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 250px;
}
.activity-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.activity-tag {
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: var(--gold-glow);
  color: var(--gold-dark);
  font-weight: 800;
}
.activity-end { padding-top: 0.35rem; }
.activity-card h3 {
  min-height: 2.55em;
  line-height: 1.28;
  display: flex;
  align-items: flex-start;
}
.activity-card p {
  color: var(--text-secondary);
  line-height: 1.75;
  min-height: 3.5em;
}
.activity-caveat {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(82,67,45,0.10);
  color: var(--text-muted) !important;
  font-size: 0.78rem;
}
.activity-action {
  margin-top: 1rem;
  display: inline-flex;
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration: none;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}
.activity-action:hover {
  color: var(--gold-dark);
}

.video-section {
  background: var(--bg-secondary);
}
.video-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 1.3rem;
}
.video-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  isolation: isolate;
}
.video-preview-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31,37,34,0.06), rgba(31,37,34,0.54));
}
.video-frame::before {
  content: "真实案例视频";
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  z-index: 1;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  background: rgba(255,255,255,0.92);
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 850;
}
.video-copy {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: auto;
  bottom: 5.25rem;
  color: #fff;
  max-width: min(75%, 560px);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  background: transparent;
  border-left: 0;
  pointer-events: none;
}
.video-copy h3 {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0,0,0,0.72);
}
.video-copy p {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0,0,0,0.76);
}
.play-mark {
  position: absolute;
  left: 1.6rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: rgba(255,255,255,0.92);
  color: var(--text-primary);
  font-weight: 850;
  z-index: 2;
}
.play-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
}
.video-list {
  display: grid;
  gap: 0.9rem;
}
.video-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(31,37,34,0.09);
}
.video-thumb {
  position: relative;
  height: 78px;
  overflow: hidden;
  border-radius: 16px;
}
.video-thumb img,
.video-thumb video { width: 100%; height: 100%; object-fit: cover; display:block; }
.video-thumb span {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  background: rgba(31,37,34,0.72);
  color: #fff;
  font-size: 0.72rem;
}
.video-item strong { display:block; color:var(--text-primary); margin-bottom:0.25rem; }
.video-item small { color:var(--text-muted); line-height:1.5; }
.media-type {
  display:inline-flex;
  border-radius:999px;
  padding:0.25rem 0.55rem;
  margin-bottom:0.45rem;
  background:rgba(183,110,76,0.12);
  color:#b76e4c;
  font-size:0.72rem;
  font-weight:850;
}
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 56px);
}
.video-modal.open {
  display: flex;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 11, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.video-modal-panel {
  position: relative;
  width: min(1040px, 92vw);
  border-radius: 18px;
  overflow: hidden;
  background: #050706;
  box-shadow: 0 30px 90px rgba(0,0,0,0.38);
}
.video-modal-player {
  width: 100%;
  max-height: min(72vh, 680px);
  display: block;
  background: #050706;
}
.video-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 24, 21, 0.78);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.video-modal-caption {
  padding: 0.95rem 1.15rem 1.1rem;
  color: #fff;
}
.video-modal-caption strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.video-modal-caption span {
  color: rgba(255,255,255,0.7);
  font-size: 0.86rem;
}

.process-num { background: var(--sage-dark); color: #fff; }
.cta-section {
  position: relative;
  background: #566159;
  overflow: hidden;
  isolation: isolate;
}
.cta-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
  filter: saturate(0.8) contrast(0.88) brightness(0.88);
  transform: scale(1.015);
  z-index: -2;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,30,24,0.42), rgba(20,30,24,0.2) 48%, rgba(20,30,24,0.34)),
    linear-gradient(180deg, rgba(246,248,245,0.2), transparent 20%, transparent 80%, rgba(39,51,43,0.36));
  pointer-events: none;
  z-index: -1;
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section .section-label { background: rgba(255,255,255,0.12); color: #fff; }
.cta-section h2,
.cta-section p { color: #fff; }
.cta-info-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  flex-wrap: wrap;
  width: fit-content;
  max-width: min(760px, 92%);
  margin: 1.45rem auto 0;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.32);
  color: #26312b;
  box-shadow: 0 14px 38px rgba(0,0,0,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 750;
  font-size: 0.92rem;
}
.cta-info-strip span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .hero-inner-spacejoy,
  .video-showcase,
  .kinetic-shell,
  .before-after-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .case-mosaic-grid {
    grid-auto-columns: clamp(104px, 13vw, 136px);
  }
}

@media (max-width: 768px) {
  .nav-links { display:none; }
  .hero { padding-top: 6rem; }
  .hero-gallery,
  .hero-proof-row,
  .activities-grid,
  .services-grid,
  .video-item,
  .before-after-slide,
  .before-after-metrics { grid-template-columns: 1fr; }
  .service-image-card { min-height: 285px; }
  .service-image-card p { min-height: 0; }
  .hero-photo.large { grid-row: auto; }
  .hero-gallery { grid-template-rows: auto; }
  .hero-photo { min-height: 230px; }
  .kinetic-row { animation-duration: 18s; }
  .kinetic-card { width: 280px; }
  .before-after-slide { min-height: auto; }
  .compare-pane { min-height: 260px; }
  .case-mosaic-section .container { padding-left: 12px; padding-right: 12px; }
  .case-mosaic-viewport { --mosaic-gap: 12px; height: clamp(330px, 88vw, 500px); }
  .case-mosaic-grid { gap: var(--mosaic-gap); }
  .mosaic-column,
  .mosaic-column.mosaic-column-slim,
  .mosaic-column.mosaic-column-wide,
  .mosaic-feature-column {
    width: clamp(170px, 54vw, 250px);
    flex-basis: clamp(170px, 54vw, 250px);
  }
  .mosaic-feature-column {
    width: clamp(290px, 86vw, 440px);
    flex-basis: clamp(290px, 86vw, 440px);
  }
  .case-card.mosaic-small,
  .share-case-card.mosaic-small {
    grid-column: span 1;
    grid-row: span 2;
  }
  .case-card.mosaic-tall,
  .share-case-card.mosaic-tall,
  .case-card.mosaic-wide,
  .share-case-card.mosaic-wide,
  .case-card.mosaic-hero,
  .share-case-card.mosaic-hero,
  .case-card.mosaic-large,
  .share-case-card.mosaic-large,
  .case-card.mosaic-short,
  .share-case-card.mosaic-short {
    grid-column: span 1;
    grid-row: span 2;
  }
  .case-mosaic-grid .case-overlay,
  .case-mosaic-grid .share-case-info {
    opacity: 1;
  }
  .cta-info-strip {
    border-radius: 18px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .cta-info-strip span {
    width: 100%;
  }
  .video-copy p {
    max-width: min(500px, 100%);
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .kinetic-row {
    animation: none;
  }
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  .mobile-nav-toggle { display: inline-grid; place-items: center; }
  .nav-inner { position: relative; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 24px rgba(16,32,24,0.12);
  }
}

/* ====== Lead Consultation Flow ====== */
.lead-nav-trigger,
.activity-action {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
}
.lead-nav-trigger {
  line-height: inherit;
}
.activity-action {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
}
body.lead-modal-open { overflow: hidden; }
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18,28,22,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lead-modal.open { display: flex; }
.lead-dialog {
  width: min(94vw, 720px);
  max-height: min(92vh, 780px);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 28px;
  background: #fbfcfa;
  color: #1f2521;
  box-shadow: 0 30px 100px rgba(8,18,12,0.34);
}
.lead-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.75rem 1rem;
}
.lead-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: #637868;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.lead-dialog-head h2 {
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 850;
  line-height: 1.2;
}
.lead-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(31,37,33,0.08);
  color: #1f2521;
  cursor: pointer;
  font-size: 1.45rem;
}
.lead-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 1.75rem 1.25rem;
}
.lead-progress span {
  position: relative;
  padding-top: 0.65rem;
  color: #7a837d;
  font-size: 0.78rem;
  text-align: center;
}
.lead-progress span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: #e3e8e4;
}
.lead-progress span.active,
.lead-progress span.complete { color: #294c38; font-weight: 800; }
.lead-progress span.active::before,
.lead-progress span.complete::before { background: #3e6b50; }
#leadConsultationForm { padding: 0 1.75rem 1.6rem; }
.lead-step { animation: lead-step-in 0.22s ease; }
.lead-step[hidden] { display: none; }
.lead-step fieldset { margin: 0; padding: 0; border: 0; }
.lead-step legend,
.lead-field > label {
  display: block;
  color: #1f2521;
  font-size: 1rem;
  font-weight: 800;
}
.lead-step-hint {
  margin: 0.35rem 0 1rem;
  color: #6e7871;
  font-size: 0.86rem;
}
.lead-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.lead-choice:last-child { grid-column: 1 / -1; }
.lead-choice { display: block; cursor: pointer; }
.lead-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lead-choice span {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1rem;
  border: 1px solid #dde4df;
  border-radius: 18px;
  background: #fff;
  color: #26352c;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lead-choice small {
  margin-top: 0.25rem;
  color: #78817b;
  font-size: 0.76rem;
  font-weight: 500;
}
.lead-choice input:checked + span {
  border-color: #3e6b50;
  background: #eef5f0;
  box-shadow: 0 0 0 2px rgba(62,107,80,0.12);
}
.lead-choice input:focus-visible + span { outline: 3px solid rgba(200,164,92,0.42); }
.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.lead-field { margin-bottom: 0.9rem; }
.lead-field-wide { grid-column: 1 / -1; }
.lead-field label { margin-bottom: 0.45rem; }
.lead-field label span { color: #7f8982; font-size: 0.76rem; font-weight: 500; }
.lead-field input,
.lead-field select {
  width: 100%;
  height: 48px;
  padding: 0 0.9rem;
  border: 1px solid #d8e0da;
  border-radius: 14px;
  background: #fff;
  color: #1f2521;
  font: inherit;
  outline: 0;
}
.lead-field input:focus,
.lead-field select:focus {
  border-color: #3e6b50;
  box-shadow: 0 0 0 3px rgba(62,107,80,0.12);
}
.lead-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.2rem;
  color: #616d65;
  font-size: 0.82rem;
  line-height: 1.55;
  cursor: pointer;
}
.lead-privacy input { flex: 0 0 auto; margin-top: 0.2rem; accent-color: #3e6b50; }
.lead-form-error {
  min-height: 1.5em;
  margin: 0.65rem 0;
  color: #b13f36;
  font-size: 0.86rem;
  font-weight: 700;
}
.lead-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}
.lead-primary,
.lead-secondary {
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.lead-primary {
  border: 1px solid #315b42;
  background: #315b42;
  color: #fff;
  box-shadow: 0 10px 24px rgba(49,91,66,0.2);
}
.lead-primary:disabled { opacity: 0.62; cursor: wait; }
.lead-secondary {
  border: 1px solid #d5ddd7;
  background: #fff;
  color: #3d4a42;
}
.lead-success {
  padding: 1rem 1.75rem 2rem;
  text-align: center;
}
.lead-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #315b42;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 900;
}
.lead-success h3 { margin-bottom: 0.7rem; font-size: 1.35rem; font-weight: 850; }
.lead-success p { max-width: 520px; margin: 0 auto 1.2rem; color: #667169; line-height: 1.7; }
.lead-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }
.lead-success-actions a,
.lead-success-actions button {
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #315b42;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}
.lead-success-actions .secondary { background: #edf1ee; color: #334139; }
.mobile-lead-bar { display: none; }
@keyframes lead-step-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  body { padding-bottom: 66px; }
  .floating-contact { display: none; }
  .mobile-lead-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1450;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 0.55rem;
    padding: 0.6rem max(0.75rem, env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    border-top: 1px solid rgba(31,37,33,0.1);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -8px 28px rgba(20,32,24,0.12);
    backdrop-filter: blur(16px);
  }
  .mobile-lead-primary,
  .mobile-lead-phone {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
  }
  .mobile-lead-primary { border: 0; background: #315b42; color: #fff; }
  .mobile-lead-phone { border: 1px solid #ccd7cf; background: #fff; color: #315b42; }
  .lead-modal { align-items: flex-end; padding: 0; }
  .lead-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }
  .lead-dialog-head { padding: 1.25rem 1rem 0.85rem; }
  .lead-progress { padding: 0 1rem 1rem; }
  #leadConsultationForm { padding: 0 1rem calc(1.15rem + env(safe-area-inset-bottom)); }
  .lead-choice-grid,
  .lead-form-grid { grid-template-columns: 1fr; }
  .lead-choice:last-child,
  .lead-field-wide { grid-column: auto; }
  .lead-choice span { min-height: 66px; }
  .lead-form-actions { position: sticky; bottom: 0; padding-top: 0.25rem; background: #fbfcfa; }
  .lead-primary { flex: 1; }
  .lead-success { padding: 0.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); }
  .lead-success-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-step { animation: none; }
}
