/* ============================================================
   RELVANO — One-Stop Building Materials
   Design system: Quiet Luxury

   ⚠ 改了这个文件，一定要顶 index.html 里的 css/style.css?v=N
     （nginx 给 css/js 设了长缓存，不顶版本号用户会一直拿旧样式 ——
      2026-09-17 就因为这个出过一次"表单还挂在页面下方"的事故）
     正确做法：用 deploy/deploy_assets.py 部署，它会自动比对哈希并顶版本号。
   ============================================================ */

:root {
  /* Palette */
  --ink: #1a1a1a;
  --ink-soft: #2a2a2a;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --white: #ffffff;
  --stone: #8a8a85;
  --stone-dark: #5f5e5a;
  --silver: #c0c0c0;
  --brass: #5f5f5f;
  --brass-light: #e0e0e0;

  /* Lines */
  --line: rgba(26, 26, 26, 0.12);
  --line-soft: rgba(26, 26, 26, 0.08);
  --line-light: rgba(247, 245, 240, 0.16);

  /* Type */
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(84px, 11vw, 150px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--stone-dark);
  font-weight: 400;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-bottom: 22px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--silver); color: var(--ink); }

.btn-brass { background: var(--silver); color: var(--ink); }
.btn-brass:hover { background: var(--ink); color: var(--brass-light); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { border-color: var(--line-light); color: var(--paper); background: transparent; }
.btn-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.4s var(--ease);
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}
.site-header.scrolled .logo-img { filter: none; }

.site-header.scrolled {
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.site-header.scrolled .container { height: 68px; }
.site-header.scrolled .logo { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 34px; flex: 0 0 auto; }
.nav-links a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 6px 0;
  transition: color 0.4s var(--ease);
}
.site-header.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass-light);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--brass-light); }
.site-header.scrolled .nav-links a:hover { color: var(--brass); }
.site-header.scrolled .nav-links a::after { background: var(--brass); }
.nav-links a:hover::after { width: 100%; }

.nav .btn { padding: 12px 24px; }
.nav .btn.btn-light { color: var(--paper); }
.site-header.scrolled .nav .btn-light { border-color: var(--line); color: var(--ink); }
.site-header.scrolled .nav .btn-light:hover { background: var(--ink); color: var(--paper); }

/* ---------- Social links (Facebook + Instagram) ---------- */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;      /* 关键：不允许被 logo / 导航挤压 */
}
.social-btn {
  flex: 0 0 auto;      /* 关键：固定尺寸，绝不缩小 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-light);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-btn svg { width: 26px; height: 26px; display: block; }
.social-btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-2px);
}
.site-header.scrolled .social-btn {
  color: var(--ink);
  border-color: var(--line);
}
.site-header.scrolled .social-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.mobile-social {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.mobile-social .social-btn {
  color: var(--ink);
  border-color: var(--line);
  width: auto;
  height: auto;
  padding: 12px 20px;
  border-radius: 999px;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mobile-social .social-btn svg { width: 22px; height: 22px; }
.mobile-social .social-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 720px) {
  .site-header .social-links { display: none; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--paper);
  margin: 5px auto;
  transition: all 0.35s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--ink); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--ink); }

/* ---------- Hero (auto-rotating dual banner) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  /* fade in immediately; delay hiding until the fade-out finishes */
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 1.1s var(--ease), visibility 0s linear 0s;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
/* only the visible banner runs the slow ken-burns zoom; it restarts on each
   rotation because the rule only matches while the slide is .is-active */
.hero-slide.is-active .hero-media img {
  animation: heroZoom 9s var(--ease) forwards;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.45) 0%, rgba(20,20,20,0.1) 45%, rgba(20,20,20,0.72) 100%);
}
/* the hospitality banner is a warm golden-hour beach shot — a lighter,
   warm-toned veil (plus a faint golden wash) keeps it sunny instead of grey,
   while preserving the same white-headline contrast as banner 1 */
.hero-slide--commercial .hero-media::after {
  background:
    linear-gradient(180deg, rgba(255,193,116,0.14) 0%, rgba(255,206,142,0.17) 55%, rgba(255,176,96,0.08) 100%),
    linear-gradient(180deg, rgba(48,31,16,0.44) 0%, rgba(54,35,18,0.12) 44%, rgba(28,18,10,0.72) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

/* Banner indicators — thin brass bars, centred at the foot of the hero */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vw, 46px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}
.hero-dot {
  width: 40px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(247, 245, 240, 0.3);
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.hero-dot:hover { background: rgba(247, 245, 240, 0.6); }
.hero-dot.is-active { background: var(--brass-light); }

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(60px, 9vw, 120px);
  color: var(--paper);
  max-width: 880px;
}
.hero-content .eyebrow { color: var(--brass-light); }
.hero-content .eyebrow::before { background: var(--brass-light); }
.hero-content h1 {
  font-size: clamp(44px, 7.5vw, 96px);
  color: var(--paper);
  margin-bottom: 28px;
  line-height: 1.02;
}
.hero-content h1 em { font-style: italic; color: var(--brass-light); }
.hero-content p {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.75;
  color: rgba(247, 245, 240, 0.85);
  max-width: 620px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Short-viewport guard — on laptops and landscape phones the banner copy grows
   taller than the hero and would ride up into the fixed header. Cap the type so
   the eyebrow always clears the nav. Placed AFTER the base .hero-content rules
   so it actually wins (same specificity → source order decides). */
@media (max-height: 820px) and (min-width: 701px) {
  .hero-content { padding-bottom: clamp(40px, 5.5vw, 68px); }
  .hero-content h1 { font-size: clamp(34px, 4.9vw, 62px); margin-bottom: 20px; }
  .hero-content p { margin-bottom: 26px; }
}
@media (max-height: 730px) and (min-width: 701px) {
  .hero-content { padding-bottom: 34px; }
  .hero-content h1 { font-size: clamp(30px, 4.4vw, 54px); margin-bottom: 16px; }
  .hero-content p { margin-bottom: 22px; font-size: 16px; }
  .hero-content .eyebrow { margin-bottom: 14px; }
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 60px;
  background: var(--line-light);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 6vw, 88px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { border-left: 1px solid var(--line-light); padding-left: 26px; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  color: var(--paper);
}
.stat .num em { font-style: normal; color: var(--brass-light); }
.stat .lbl {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.55);
}

/* ---------- Feature (Why) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.feature {
  background: var(--paper);
  padding: clamp(36px, 4vw, 56px);
  transition: background 0.4s var(--ease);
}
.feature:hover { background: var(--white); }
.feature .idx {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--brass);
}
.feature h3 {
  font-size: 24px;
  margin: 26px 0 16px;
}
.feature p { color: var(--stone-dark); font-size: 15px; }

/* ---------- Products ---------- */
.products { background: var(--paper); }
.product-pillars { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); }

.pillar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.pillar-head h3 {
  font-size: clamp(28px, 3.4vw, 44px);
}
.pillar-head .pillar-sub { color: var(--stone-dark); max-width: 380px; font-size: 15px; }
.pillar-head .pillar-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--brass);
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card { position: relative; overflow: hidden; }
.product-card .media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.product-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.product-card:hover .media img { transform: scale(1.06); }
.product-card .media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,20,20,0.55) 100%);
  opacity: 0.9;
  transition: opacity 0.5s var(--ease);
}
.product-card .tag {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  padding: 7px 14px;
  background: rgba(247, 245, 240, 0.92);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.product-card .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px;
  color: var(--paper);
  transform: translateY(8px);
  transition: transform 0.5s var(--ease);
}
.product-card .meta h4 {
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 6px;
}
.product-card .meta span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  opacity: 0.95;
  transition: opacity 0.5s var(--ease), color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card .meta span::after {
  content: "→";
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .meta span::after { transform: translateX(4px); }
.product-card:hover .meta { transform: translateY(0); }
.product-card:hover .meta span { opacity: 1; color: var(--paper); }

/* Whole product card is clickable — visible affordance: faint outline + cursor */
.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: 1px solid transparent;
  transition: outline-color 0.35s var(--ease);
}
.product-card:hover { outline-color: rgba(192, 192, 192, 0.4); }
.product-card:focus-visible { outline: 2px solid var(--silver); }

.product-card .view {
  position: absolute;
  right: 18px; bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  background: rgba(15, 15, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.35s var(--ease), background 0.3s var(--ease), transform 0.35s var(--ease), border-color 0.3s var(--ease);
}
.product-card .view::after {
  content: "\2197";
  font-size: 13px;
  line-height: 1;
}
.product-card:hover .view {
  opacity: 1;
  transform: translateY(0);
  background: var(--ink);
  border-color: var(--paper);
}
.product-card:hover .view:hover {
  transform: translateY(-2px);
}

/* ---------- About ---------- */
.about { background: var(--ink); color: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.about-media { position: relative; }
.about-media .main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-media .float {
  position: absolute;
  right: -24px;
  bottom: -48px;
  width: 46%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid var(--ink);
}
.about-body .eyebrow { color: var(--brass-light); }
.about-body .eyebrow::before { background: var(--brass-light); }
.about-body h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  color: var(--paper);
  margin-bottom: 26px;
}
.about-body p { color: rgba(247, 245, 240, 0.72); margin-bottom: 20px; font-size: 16px; }
.about-points { margin-top: 36px; display: flex; flex-direction: column; gap: 0; }
.about-point {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}
.about-point:first-child { border-top: 1px solid var(--line-light); }
.about-point .dot {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--silver);
}
.about-point span { font-size: 15px; color: rgba(247, 245, 240, 0.85); }

/* ---------- Projects ---------- */
.projects { background: var(--paper); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(20,20,20,0.08); }
.project-card .media { aspect-ratio: 16 / 10; overflow: hidden; }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-card:hover .media img { transform: scale(1.05); }
.project-card .body { padding: 30px 32px 34px; }
.project-card .body h3 { font-size: 24px; margin-bottom: 16px; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-meta .chip {
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-dark);
  border: 1px solid var(--line);
}
.project-card .body p { color: var(--stone-dark); font-size: 14.5px; }
.project-card .hl {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink);
}
.project-card .hl strong { color: var(--brass); font-weight: 500; }

/* ---------- Process ---------- */
.process { background: var(--paper-2); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-step { background: var(--paper-2); padding: 44px 34px; position: relative; }
.process-step .step-num {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--brass);
}
.process-step h3 { font-size: 22px; margin: 22px 0 14px; }
.process-step p { color: var(--stone-dark); font-size: 14.5px; }

/* ---------- Logistics ---------- */
.logistics { background: var(--paper); }
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.logistics-card { position: relative; overflow: hidden; }
.logistics-card .media { aspect-ratio: 4 / 3; overflow: hidden; }
.logistics-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.logistics-card:hover .media img { transform: scale(1.05); }
.logistics-card .cap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.logistics-card .cap .ic {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--brass);
  width: 30px;
}
.logistics-card .cap h3 { font-size: 20px; }
.logistics-card p { margin-top: 16px; color: var(--stone-dark); font-size: 14.5px; }

/* ---------- CTA / Contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact-grid {
  display: grid;
  /* 表单已移入弹窗（#enq-modal）：Contact 板块收成单列，原来的右列不再留空 */
  grid-template-columns: minmax(0, 580px);
  gap: clamp(48px, 7vw, 110px);
}
.contact-info h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  color: var(--paper);
  margin-bottom: 26px;
}
.contact-info p { color: rgba(247,245,240,0.7); margin-bottom: 40px; max-width: 460px; }
.contact-ways { display: flex; flex-direction: column; gap: 0; }
.contact-way {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}
.contact-way:first-child { border-top: 1px solid var(--line-light); }
.contact-way .ic {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--brass-light);
  font-size: 18px;
}
.contact-way .lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,245,240,0.5); }
.contact-way .val { font-size: 16px; color: var(--paper); }

.contact-form {
  background: var(--paper);
  padding: clamp(32px, 4vw, 52px);
}
.contact-form .field { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-bottom: 10px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  transition: border-color 0.35s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--brass); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { margin-top: 16px; font-size: 12px; color: var(--stone); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 80px 0 40px; border-top: 1px solid var(--line-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand .logo-img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand p { color: rgba(247,245,240,0.55); font-size: 14px; max-width: 300px; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.5);
  margin-bottom: 22px;
}
.footer-col a, .footer-col li {
  display: block;
  color: rgba(247,245,240,0.8);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--line-light);
  font-size: 12.5px;
  color: rgba(247,245,240,0.45);
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 44px);
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--brass); }
.mobile-menu .btn { margin-top: 30px; align-self: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media .float { right: 0; bottom: -24px; }
}

@media (max-width: 720px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .hero-scroll { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .logistics-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .pillar-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img,
  .hero-slide.is-active .hero-media img { animation: none; transform: none; }
  .hero-slide { transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ---------- Section lede ---------- */
.section-head .lede {
  margin-top: 22px;
  max-width: 760px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.78;
  color: var(--stone-dark);
}

/* ---------- Who We Serve ---------- */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.serve-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}
.serve-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.serve-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.serve-card:hover .serve-media img { transform: scale(1.05); }
.serve-body { padding: 28px 30px 32px; }
.serve-body h3 { font-size: 21px; margin-bottom: 12px; letter-spacing: 0.01em; }
.serve-body p { color: var(--stone-dark); font-size: 15px; line-height: 1.72; margin-bottom: 18px; }
.serve-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.serve-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink); }
.serve-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
}
@media (max-width: 900px) {
  .serve-grid { grid-template-columns: 1fr; }
}
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Villa banner ---------- */
.villa-banner {
  position: relative;
  margin-bottom: clamp(52px, 6vw, 88px);
  border-radius: var(--radius);
  overflow: hidden;
}
.villa-banner img {
  width: 100%;
  height: clamp(320px, 46vw, 620px);
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.villa-banner:hover img { transform: scale(1.035); }
.villa-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(26, 26, 26, 0.75) 0%,
    rgba(26, 26, 26, 0.32) 45%,
    rgba(26, 26, 26, 0.04) 100%);
  pointer-events: none;
}
.vb-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(26px, 4vw, 58px);
  max-width: 780px;
}
.vb-cap .eyebrow { color: var(--silver); }
.vb-cap p {
  margin-top: 16px;
  color: rgba(247, 245, 240, 0.9);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
}

/* ---------- Free design ---------- */
.section.design { background: var(--paper-2); }
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(42px, 5vw, 68px);
}
.design-card {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.dc-num {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 16px;
}
.design-card h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--ink);
}
.design-card p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--stone-dark);
}

.design-media {
  position: relative;
  margin-top: clamp(48px, 6vw, 84px);
  border-radius: var(--radius);
  overflow: hidden;
}
.design-media img {
  width: 100%;
  height: clamp(360px, 48vw, 640px);
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease);
}
.design-media:hover img { transform: scale(1.03); }
.design-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(26, 26, 26, 0.78) 0%,
    rgba(26, 26, 26, 0.34) 50%,
    rgba(26, 26, 26, 0.05) 100%);
  pointer-events: none;
}
.dm-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(28px, 4vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dm-cap h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.28;
  color: var(--paper);
  max-width: 640px;
}

@media (max-width: 1024px) {
  .design-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .dm-cap { flex-direction: column; align-items: flex-start; }
  .vb-cap p { font-size: 15px; }
}

/* ---------- Product Gallery Lightbox ---------- */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.product-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.product-lightbox .lb-close {
  position: absolute;
  top: 22px; right: 28px;
  z-index: 10;
  width: 48px; height: 48px;
  color: var(--paper);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.product-lightbox .lb-close:hover { opacity: 1; }
.product-lightbox .lb-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 56px; height: 56px;
  margin-top: -28px;
  border-radius: 50%;
  background: rgba(247, 245, 240, 0.12);
  color: var(--paper);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: background 0.3s, opacity 0.3s;
}
.product-lightbox .lb-arrow:hover { background: rgba(247, 245, 240, 0.22); opacity: 1; }
.product-lightbox .lb-arrow.lb-prev { left: 18px; }
.product-lightbox .lb-arrow.lb-next { right: 18px; }
.product-lightbox .lb-stage {
  position: relative;
  width: min(86vw, 1240px);
  height: min(70vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-lightbox .lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.product-lightbox .lb-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  max-width: 86vw;
  overflow-x: auto;
  padding-bottom: 6px;
}
.product-lightbox .lb-thumbs img {
  width: 78px; height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0.55;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.3s, border-color 0.3s;
}
.product-lightbox .lb-thumbs img.active,
.product-lightbox .lb-thumbs img:hover { opacity: 1; }
.product-lightbox .lb-thumbs img.active { border-color: var(--silver); }
.product-lightbox .lb-caption {
  margin-top: 14px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .product-lightbox .lb-stage { width: 92vw; height: 56vh; }
  .product-lightbox .lb-arrow { width: 44px; height: 44px; margin-top: -22px; font-size: 26px; }
  .product-lightbox .lb-arrow.lb-prev { left: 8px; }
  .product-lightbox .lb-arrow.lb-next { right: 8px; }
  .product-lightbox .lb-thumbs img { width: 60px; height: 40px; }
}

/* ============================================================
   Partners Gallery — 3D photo sphere
   Photos sit on an invisible globe; the one facing you is
   large and crisp, the ones falling behind shrink and fade.
   ============================================================ */
.partners {
  background: var(--paper);
  padding: 100px 0 80px;
  overflow: hidden;
}
.partners .section-head { text-align: center; margin-bottom: 44px; }
.partners .section-head .eyebrow { color: var(--ink); }
.partners .section-head h2 { font-style: italic; }
.partners .section-head .lede {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--ink-soft, #5a5a55);
  font-size: 15px;
  line-height: 1.7;
}

/* Line up with the text column above instead of bleeding edge to edge. */
.partners-sphere {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Subpage header (no dark hero behind it)
   ============================================================ */
body.subpage { padding-top: 84px; }
.subpage .site-header {
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.subpage .site-header .logo-img { filter: none; }
.subpage .nav-links a { color: var(--ink); }
.subpage .social-btn { color: var(--ink); }
.subpage .nav .btn.btn-light { border-color: var(--line); color: var(--ink); }
.subpage .nav .btn.btn-light:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   Projects & Blog
   ============================================================ */
.proj-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 4vw, 56px);
}
.proj-card, .blog-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.proj-card:hover, .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
}
.proj-thumb, .blog-thumb {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-2);
}
.proj-body, .blog-body { padding: clamp(20px, 2.2vw, 30px); }
.proj-tag, .blog-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}
.proj-body h3, .blog-body h3 {
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
}
.proj-body p, .blog-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.proj-link, .blog-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Project / blog detail */
.project-detail, .blog-post { padding: clamp(40px, 6vw, 80px) 0; }
.narrow { max-width: 820px; }
.back-link { display: inline-block; color: var(--brass); font-size: 14px; margin-bottom: 20px; }
.back-link:hover { color: var(--ink); }
.project-detail .proj-tag,
.blog-post .blog-tag { display: inline-block; }
.project-detail h1, .blog-post h1 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  font-size: clamp(28px, 4vw, 46px);
  color: var(--ink);
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 820px;
  margin-bottom: 32px;
}
.proj-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px;
  background: var(--paper-2);
  border-radius: var(--radius);
  margin: 8px 0 48px;
}
.proj-facts div { display: flex; flex-direction: column; gap: 6px; }
.proj-facts span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.proj-facts strong { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--ink); }
.project-detail h2, .blog-post h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  margin: 40px 0 16px;
}
.project-detail p, .blog-post p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 820px;
  margin-bottom: 18px;
}
.space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0 8px; }
.space { margin: 0; }
.space-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background-color: var(--paper-2);
  border-radius: var(--radius);
}
.space figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.prod-list { max-width: 820px; margin: 16px 0; padding-left: 20px; }
.prod-list li { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 10px; }

/* CTA band */
.cta-band {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: clamp(40px, 5vw, 72px);
  margin-top: 48px;
}
.cta-band.center { text-align: center; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--ink);
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 24px;
}
.cta-band.center .btn { margin: 0 auto; }

/* Footer（以下三行只给「子页」body.subpage 用，标记 .subpage 前缀）
   注意：不要写成裸 .site-footer —— 首页 footer 用的是另一套结构
   (.footer-grid/.footer-brand/.footer-col/.footer-bottom)，规则在上面 §Footer(780行)。
   裸选择器会把 margin-top 泄漏到首页，在深色 Contact 与深色 Footer 之间
   露出 body 的浅色底，形成一道突兀的白缝。 */
body.subpage .site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 80px) 0 40px;
  margin-top: clamp(60px, 8vw, 100px);
}
body.subpage .site-footer .container { display: flex; flex-direction: column; gap: 18px; }
.foot-brand { font-family: var(--serif); font-size: 26px; }
body.subpage .site-footer p { color: rgba(247, 245, 240, 0.7); font-size: 15px; max-width: 520px; line-height: 1.7; }
.foot-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-nav a { color: rgba(247, 245, 240, 0.85); font-size: 14px; }
.foot-nav a:hover { color: var(--silver); }
.site-footer .copy {
  color: rgba(247, 245, 240, 0.5);
  font-size: 13px;
  border-top: 1px solid rgba(247, 245, 240, 0.15);
  padding-top: 18px;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .proj-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .proj-grid, .blog-grid { grid-template-columns: 1fr; }
  .space-grid { grid-template-columns: 1fr; }
  .proj-facts { grid-template-columns: 1fr; }
}

/* --- Stage: wide rounded rectangle once JS takes over --- */
.sphere-stage {
  position: relative;
  width: 100%;
}
.sphere-stage.sphere-live {
  width: 100%;
  aspect-ratio: 1.75 / 1;    /* rounded rectangle, still wide but tall enough for the globe */
  min-height: 340px;
  margin: 0 auto;
  border-radius: 22px;       /* clearly rounded corners, not a circle */
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  background: radial-gradient(ellipse 78% 94% at 50% 46%, #faf8f4 0%, #efece4 60%, #dcd8ce 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -24px 44px -34px rgba(20, 20, 20, 0.18),
    0 20px 44px -30px rgba(20, 20, 20, 0.24);
  /* photos drift in and out of the sides rather than being guillotined */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.sphere-stage.sphere-live.dragging { cursor: grabbing; }

/* --- Globe: static grid fallback, becomes a 3D origin point --- */
.sphere-globe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}
.sphere-stage.sphere-live .sphere-globe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  padding: 0;
  max-width: none;
  display: block;
  transform-style: preserve-3d;
}

/* --- Card --- */
.sphere-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #e7e4dc;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 10px 24px -12px rgba(20, 20, 20, 0.2);
  aspect-ratio: 5 / 6;
}
.sphere-stage.sphere-live .sphere-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 132px;
  height: 158px;
  margin-left: -66px;   /* centre the card on the globe origin */
  margin-top: -79px;
  aspect-ratio: auto;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 0;           /* JS fades it in once positioned */
}
.sphere-card picture { display: block; width: 100%; height: 100%; }
.sphere-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Photos are fetched on demand; fade each one in once it has arrived so the
   globe never flashes empty rectangles on a slow connection. */
.sphere-card.is-loaded img {
  animation: sphere-photo-in 0.55s var(--ease, ease) both;
}
@keyframes sphere-photo-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* No-JS fallback: the <noscript> block shows the photos as a plain grid. */
.sphere-fallback {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 0 6px;
}
.sphere-fallback img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 10px;
  background: #e7e4dc;
}

/* soft floor shadow so the band feels like it is floating in space */
.partners-sphere::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 64%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 20, 20, 0.13), rgba(20, 20, 20, 0) 72%);
  pointer-events: none;
  z-index: -1;
}

.partners-hint {
  margin: 26px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft, #888780);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .partners { padding: 72px 0 58px; }
  .sphere-stage.sphere-live { aspect-ratio: 1.6 / 1; min-height: 280px; }
  .sphere-stage.sphere-live .sphere-card { width: 104px; height: 125px; margin-left: -52px; margin-top: -62px; }
  .partners-sphere::after { width: 60%; }
}
@media (max-width: 600px) {
  .partners .section-head { margin-bottom: 32px; }
  .sphere-stage.sphere-live { aspect-ratio: 5 / 4; min-height: 210px; border-radius: 12px; }
  .sphere-stage.sphere-live .sphere-card { width: 76px; height: 91px; margin-left: -38px; margin-top: -45px; border-radius: 9px; }
  .partners-sphere::after { width: 56%; height: 18px; bottom: -4px; }
  .partners-hint { font-size: 10px; margin-top: 18px; letter-spacing: 0.14em; }
}

/* ---------- reduced motion: freeze gently, still show the globe ---------- */
@media (prefers-reduced-motion: reduce) {
  .partners-hint::after { content: " (auto-spin disabled)"; }
}

/* ===== Manufacturing Capabilities ===== */
.capabilities { background: var(--paper); padding: 100px 0 90px; }
.capabilities .section-head { text-align: center; margin-bottom: 40px; }
.capabilities .section-head h2 { font-style: italic; }
.capabilities .section-head .lede {
  max-width: 640px; margin: 18px auto 0; color: var(--ink-soft, #5a5a55);
  font-size: 15px; line-height: 1.7;
}

.cap-stats {
  display: flex; flex-wrap: wrap;
  max-width: 880px; margin: 0 auto 54px;
  background: #fff; border: 1px solid rgba(20,20,20,0.08); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(20,20,20,0.22);
}
.cap-stat { flex: 1 1 0; min-width: 150px; padding: 28px 18px; text-align: center; }
.cap-stat + .cap-stat { border-left: 1px solid rgba(20,20,20,0.08); }
.cap-stat .num {
  font-family: var(--serif, Georgia, serif); font-size: 30px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
}
.cap-stat .num span { font-size: 17px; font-weight: 500; }
.cap-stat .lbl { margin-top: 7px; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft, #888780); }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cap-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,20,0.05), 0 18px 40px -28px rgba(20,20,20,0.25);
  display: flex; flex-direction: column;
}
.cap-card .media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #e7e4dc; }
.cap-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease, ease); }
.cap-card:hover .media img { transform: scale(1.05); }
.cap-card .tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.cap-card .body { padding: 20px 20px 24px; }
.cap-card .body h3 { font-family: var(--serif, Georgia, serif); font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.cap-card .body p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft, #5a5a55); }

@media (max-width: 980px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .capabilities { padding: 72px 0 60px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-stat { min-width: 50%; flex-basis: 50%; }
  .cap-stat:nth-child(odd) { border-left: none; }
  .cap-stat:nth-child(n+3) { border-top: 1px solid rgba(20,20,20,0.08); }
}

/* ===== Unified content: filter tabs + article + faq (Projects == Blog) ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.filter-tabs button {
  font: inherit; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem 1.15rem; border: 1px solid var(--line, #e3ded3); background: transparent;
  color: var(--ink); border-radius: 999px; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.filter-tabs button:hover { border-color: var(--brass, #b08d57); }
.filter-tabs button.active { background: var(--brass, #b08d57); border-color: var(--brass, #b08d57); color: #fff; }

.proj-type {
  display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass, #b08d57); font-weight: 600; margin: .1rem 0 .35rem;
}

.container.narrow { max-width: 760px; }
.blog-tag { display: inline-block; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brass, #b08d57); margin-bottom: .6rem; }
.blog-content { font-size: 1.02rem; line-height: 1.8; color: var(--ink); }
.blog-content h2 { font-family: var(--serif, Georgia, serif); font-size: 1.55rem; margin: 2rem 0 .8rem; }
.blog-content p { margin: 0 0 1.1rem; }
.blog-content ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.blog-content li { margin: .3rem 0; }

.faq { margin: 2.5rem 0 1rem; border-top: 1px solid var(--line, #e3ded3); padding-top: 1.5rem; }
.faq h2 { font-family: var(--serif, Georgia, serif); font-size: 1.5rem; margin-bottom: 1rem; }
.faq-item { border-bottom: 1px solid var(--line, #e3ded3); padding: .9rem 0; }
.faq-item h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.faq-item p { margin: 0; color: var(--ink-soft, #5a5a55); }

/* ===== Brand-education block (injected into every case study) ===== */
.brand-block {
  background: #faf8f4;
  border-top: 1px solid var(--line, #e3ded3);
  border-bottom: 1px solid var(--line, #e3ded3);
  padding: 72px 0;
  margin: 54px 0;
}
.brand-block .container { max-width: 920px; }
.brand-block h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  color: var(--ink);
}
.brand-block h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 30px 0 10px;
  color: var(--ink);
}
.brand-block p { color: var(--ink-soft, #5a5a55); line-height: 1.75; }

.why-list {
  list-style: none; padding: 0; margin: 16px 0 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px;
}
.why-list li { position: relative; padding-left: 0; line-height: 1.6; }
.why-list strong {
  display: block; color: var(--ink);
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 3px;
}

.vet-list { columns: 2; column-gap: 30px; margin: 6px 0 0; padding-left: 18px; }
.vet-list li { break-inside: avoid; margin-bottom: 8px; color: var(--ink-soft, #5a5a55); }

.brand-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 1.3rem; line-height: 1.5; color: var(--brass, #b08d57);
  margin: 8px 0 22px;
}

.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.adv-card {
  background: #fff; border: 1px solid var(--line, #e3ded3);
  border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(20,20,20,.04), 0 18px 40px -30px rgba(20,20,20,.22);
}
.adv-card h4 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 6px; color: var(--ink); }
.adv-card p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--ink-soft, #5a5a55); }

/* editorial tweaks for case-study media */
.space { border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(20,20,20,.05), 0 18px 40px -28px rgba(20,20,20,.25); }
.space-thumb { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #e7e4dc; }
.space figcaption { padding: 12px 14px; font-size: .85rem; color: var(--ink-soft, #5a5a55); }
.prod-list { columns: 2; column-gap: 28px; }

@media (max-width: 860px) {
  .why-list { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-block { padding: 52px 0; margin: 40px 0; }
  .vet-list { columns: 1; }
  .prod-list { columns: 1; }
}

/* ---------- Editorial figures + byline (case studies & articles) ---------- */
.blog-figure { margin: 2rem 0; }
.blog-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #e7e4dc;
  box-shadow: 0 1px 2px rgba(20,20,20,.05), 0 18px 40px -28px rgba(20,20,20,.25);
}
.blog-figure figcaption {
  margin-top: .7rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-soft, #5a5a55);
  text-align: center;
  font-style: italic;
}
.byline {
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brass, #b08d57);
  margin: .3rem 0 1.5rem;
}
@media (max-width: 640px) {
  .blog-figure { margin: 1.4rem 0; }
}

/* ============================================================
   CHAT-FIRST UPGRADE — WhatsApp CTA / chat card / floating button
   Added 2026-09-16
   ============================================================ */

/* ---------- WhatsApp button ---------- */
.btn-wa { background: #25d366; color: #0b2016; }
.btn-wa:hover { background: #1ebe5b; color: #0b2016; }
.btn-wa .wa-ico { width: 19px; height: 19px; flex: 0 0 auto; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Chat card (contact section, left column) ---------- */
.chat-card {
  margin: 30px 0 34px;
  background: var(--white);
  color: var(--ink); /* 卡片在深色 Contact 板块内，必须显式回黑，否则白字看不见 */
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 44px rgba(26, 26, 26, 0.07);
}
.chat-card__head { display: flex; align-items: center; gap: 12px; }
.chat-card__avatar {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
}
.chat-card__who { display: flex; flex-direction: column; line-height: 1.35; }
.chat-card__who strong { font-size: 15px; font-weight: 600; }
.chat-card__status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #1d9e75; }
.chat-card__status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1d9e75; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.55);
  animation: waPulse 2.4s infinite;
}
.chat-card.is-away .chat-card__status { color: var(--stone); }
.chat-card.is-away .chat-card__status i { background: var(--stone); animation: none; box-shadow: none; }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(29, 158, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0); }
}
.chat-card__msg {
  margin: 16px 0 18px;
  background: var(--paper-2);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
/* 服务承诺条：6 小时必回 + 5 年以上资深设计师，紧贴 CTA 上方 */
.chat-card__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 11px;
  margin: 13px 0 15px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone-dark); /* 卡片在深色板块里，必须显式设色 */
}
.chat-card__trust-item { white-space: nowrap; }
.chat-card__trust-sep {
  width: 3px; height: 3px; flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}
/* 聊天卡片位于深色的 .contact-info 内，那里的 `.contact-info p` 会把白字
   强加给卡片里的段落（同权重但顺序在前），这里用同级选择器反超 */
.contact-info .chat-card,
.contact-info .chat-card p { color: var(--ink); }
.contact-info .chat-card__msg { color: var(--ink-soft); margin-bottom: 0; }
.contact-info .chat-card__who strong { color: var(--ink); }
.contact-info .chat-card__status { color: #1d9e75; }
.contact-info .chat-card__alt { color: var(--stone-dark); }
.chat-card .btn-block { padding: 15px 22px; letter-spacing: 0.1em; }
.chat-card__alt {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--stone-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.chat-card__alt:hover { color: var(--ink); }

/* ---------- Form: optional field hint ---------- */
.field .opt { opacity: 0.55; font-size: 11px; letter-spacing: 0.04em; text-transform: none; }

/* ---------- Success panel ---------- */
.submit-success { text-align: center; padding: 44px 32px; color: var(--ink); background: var(--white); }
.submit-success__tick {
  width: 58px; height: 58px; margin: 0 auto 20px;
  border-radius: 50%;
  background: #1d9e75; color: #fff;
  font-size: 29px; line-height: 58px;
}
.submit-success h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 12px; }
.submit-success p { opacity: 0.78; line-height: 1.65; margin: 0 0 26px; }
.submit-success .btn-block { padding: 17px 22px; }
.submit-success__alt { font-size: 13px; opacity: 0.55; margin: 16px 0 0; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 11px;
  background: #25d366;
  color: #0b2016;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(11, 32, 22, 0.26);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease), visibility 0.34s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wa-float:hover { background: #1ebe5b; }
.wa-float__icon { width: 40px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.wa-float__icon svg { width: 30px; height: 30px; }
.wa-float__text { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.wa-float__text strong { font-size: 14px; font-weight: 600; }
.wa-float__text em { font-size: 11.5px; font-style: normal; opacity: 0.72; }

/* ---------- Mobile: full-width bottom bar ---------- */
@media (max-width: 720px) {
  .wa-float {
    left: 12px; right: 12px; bottom: 12px;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
  }
  .wa-float__text { flex-direction: row; gap: 8px; align-items: baseline; }
  .wa-float__text em { font-size: 11px; }
  body { padding-bottom: 0; }
  .submit-success { padding: 34px 20px; }
  .chat-card { padding: 18px 16px 16px; }
}

/* ============================================================
   Leave-details modal（"Not on WhatsApp?" 弹出的表单）
   —— 表单默认不出现在页面上，避免分流本该走 WhatsApp 的客户
   ============================================================ */
/* 触发器：聊天卡里的次要链接，用 button 而不是 a（它执行动作，不是跳转） */
button.chat-card__alt {
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
button.chat-card__alt:hover { text-decoration: underline; }

.enq-modal {
  position: fixed;
  inset: 0;
  z-index: 205; /* 高于 lightbox(200)、高于浮动 WhatsApp 按钮(90) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  opacity: 0;
  /* visibility（而不是只靠 opacity）→ 关闭时表单不会进入 Tab 焦点序列 */
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.enq-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.enq-modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.66);
  backdrop-filter: blur(3px);
}
.enq-modal__box {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.34s var(--ease);
}
.enq-modal.active .enq-modal__box { transform: none; }
.enq-modal__x {
  position: absolute;
  top: 12px; right: 14px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--stone-dark);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.enq-modal__x:hover { background: var(--paper-2); color: var(--ink); }
.enq-modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  margin: 0 44px 10px 0;
}
.enq-modal__sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--stone-dark);
  margin: 0 0 28px;
  max-width: 52ch;
}
/* 弹窗里的表单不需要自己的底色和内边距（弹窗本体已经是纸色卡片） */
.enq-modal .contact-form { background: transparent; padding: 0; }
/* 提交成功后隐藏弹窗标题，只留成功面板 + WhatsApp 大按钮 */
.enq-modal__box.is-success .enq-modal__title,
.enq-modal__box.is-success .enq-modal__sub { display: none; }
.enq-modal .submit-success { background: transparent; padding: 8px 0 0; }
body.enq-locked { overflow: hidden; }

@media (max-width: 720px) {
  /* 手机端做成底部抽屉 */
  .enq-modal { padding: 0; align-items: flex-end; }
  .enq-modal__box {
    max-width: none;
    max-height: 92vh;
    padding: 26px 20px 32px;
    border-radius: 14px 14px 0 0;
    transform: translateY(24px);
  }
  .enq-modal.active .enq-modal__box { transform: none; }
  .enq-modal__title { font-size: 23px; }
  .enq-modal__sub { font-size: 14px; margin-bottom: 22px; }
}
