@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root {
  --brand-ink: #141513;
  --brand-muted: #666760;
  --brand-paper: #f6f4ef;
  --brand-white: #ffffff;
  --brand-line: #ddd9cf;
  --brand-soft: #ebe7dd;
  --brand-accent: #1d5b4d;
  --brand-dark: #10110f;
}

html { scroll-behavior: smooth; }
body.brand-home {
  margin: 0;
  background: var(--brand-paper);
  color: var(--brand-ink);
  font-family: 'DM Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.brand-home *, .journal-page * { box-sizing: border-box; }
.brand-home a, .journal-page a { color: inherit; text-decoration: none; }
.brand-home h1, .brand-home h2, .brand-home h3, .journal-page h1, .journal-page h2, .journal-page h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.brand-home p, .journal-page p { line-height: 1.7; }

.brand-topbar {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--brand-line);
  background: #f0eee8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-topbar span { display: inline-flex; gap: 14px; align-items: center; }

.brand-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(221,217,207,.9);
  background: rgba(246,244,239,.96);
  backdrop-filter: blur(16px);
}
.brand-wordmark { font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.brand-nav-links { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.brand-nav-actions { justify-self: end; }
.brand-nav-cta, .brand-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--brand-ink);
  border-radius: 0;
  background: transparent;
  color: var(--brand-ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: .2s ease;
}
.brand-nav-cta, .brand-btn.dark { background: var(--brand-dark); color: white; }
.brand-btn:hover, .brand-nav-cta:hover { transform: translateY(-1px); }

.brand-shell { width: min(1460px, calc(100vw - 40px)); margin: 0 auto; }
.brand-hero {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  min-height: 630px;
  border-bottom: 1px solid var(--brand-line);
  background: var(--brand-white);
}
.brand-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 112px) clamp(28px, 5vw, 86px);
}
.brand-kicker {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(64px, 7vw, 118px);
  line-height: .88;
}
.brand-hero .lead { max-width: 520px; margin: 0; color: var(--brand-muted); font-size: 17px; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.brand-hero-media { min-height: 630px; position: relative; overflow: hidden; }
.brand-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-hero-media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); pointer-events: none; }

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--brand-white);
  border-bottom: 1px solid var(--brand-line);
}
.brand-stat { min-height: 132px; display: grid; place-items: center; align-content: center; border-right: 1px solid var(--brand-line); }
.brand-stat:last-child { border-right: 0; }
.brand-stat strong { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(42px, 4vw, 68px); font-weight: 500; line-height: 1; }
.brand-stat span { margin-top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.brand-section { padding: clamp(72px, 8vw, 124px) 0; border-bottom: 1px solid var(--brand-line); }
.brand-section.white { background: var(--brand-white); }
.brand-section.dark { background: var(--brand-dark); color: white; }
.brand-section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, .45fr); gap: 70px; align-items: end; margin-bottom: 44px; }
.brand-section-head h2 { margin: 0; max-width: 900px; font-size: clamp(48px, 6vw, 88px); line-height: .96; }
.brand-section-head p { margin: 0; color: var(--brand-muted); font-size: 15px; }
.brand-section.dark .brand-section-head p { color: #b8b8b3; }

.visual-search-stage { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 540px; background: #eeeae1; }
.visual-search-intro { padding: clamp(38px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.visual-search-intro h2 { margin: 0 0 22px; font-size: clamp(52px, 6vw, 94px); line-height: .92; }
.visual-search-intro p { max-width: 430px; color: var(--brand-muted); }
.image-search-card { margin-top: 28px; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.image-drop { display: block; border: 1px dashed #aaa69c !important; background: rgba(255,255,255,.55) !important; min-height: 180px; cursor: pointer; }
.image-drop input { display: none; }
.image-drop-preview { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px; text-align: center; }
.image-drop-preview img { width: 100%; height: 220px; object-fit: cover; }
.image-search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.image-search-fields label { grid-column: auto; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.image-search-fields select, .image-search-fields textarea { border-radius: 0 !important; background: white !important; }
.image-search-actions { display: flex; gap: 10px; margin-top: 14px; }
.image-search-results { padding: clamp(34px, 4vw, 64px); background: var(--brand-white); }
.image-search-results h3 { font-size: 34px; margin: 6px 0 20px; }
.image-insight { margin: 0 0 22px; padding: 16px; border: 1px solid var(--brand-line); background: #faf9f6; font-size: 13px; }
.image-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

.brand-arrivals-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 30px; }
.brand-arrivals-head h2 { margin: 0; font-size: clamp(46px, 5vw, 76px); }
#heroLatestGrid.hero-latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.hero-latest-card { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; text-align: left; cursor: pointer; }
.hero-latest-card img { aspect-ratio: 4/5 !important; width: 100%; height: auto !important; object-fit: cover; display: block; }
.hero-latest-card > span:last-child { display: block; padding: 12px 0; }
.hero-latest-card b { display: block; font-size: 11px; letter-spacing: .06em; }
.hero-latest-card small { display: block; margin-top: 4px; color: var(--brand-muted); font-size: 12px; line-height: 1.35; }

.fabric-family-strip { display: grid; grid-template-columns: repeat(6, 1fr); min-height: 360px; }
.collection-card.brand-family { position: relative; min-height: 360px; padding: 0; border: 0; border-right: 2px solid var(--brand-paper); border-radius: 0; overflow: hidden; background: #ddd; }
.collection-card.brand-family:last-child { border-right: 0; }
.brand-family img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.brand-family:hover img { transform: scale(1.035); }
.brand-family::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72)); }
.brand-family-copy { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; color: white; }
.brand-family-copy h3 { margin: 0; font-family: 'DM Sans', Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand-family-copy span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); font-size: 11px; }

.event-feature { display: grid; grid-template-columns: .38fr .62fr; min-height: 520px; background: #1a1d36; color: white; }
.event-copy { padding: clamp(42px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.event-copy .brand-kicker { color: #d9d7ce; }
.event-copy h2 { margin: 0 0 22px; font-size: clamp(48px, 5.4vw, 86px); line-height: .94; }
.event-copy p { color: #d5d7df; max-width: 430px; }
.event-copy .brand-btn { margin-top: 18px; border-color: white; color: white; align-self: flex-start; }
.event-media { position: relative; min-height: 520px; }
.event-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fabricai-minimal { display: grid; grid-template-columns: .55fr 1fr; gap: 50px; align-items: start; }
.fabricai-minimal h2 { margin: 0; font-size: clamp(48px, 5vw, 78px); line-height: .96; }
.assistant-card.brand-assistant { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.brand-assistant label { margin-top: 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.brand-assistant select, .brand-assistant input, .brand-assistant textarea { border-radius: 0 !important; background: white !important; }
.brand-assistant textarea, .brand-assistant .assistant-actions, .brand-assistant .ai-status { grid-column: 1 / -1; }
.assistant-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.recommendation-section.brand-recommendations { width: min(1460px, calc(100vw - 40px)); margin: 0 auto; padding: 54px 0 90px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.recommendation-head h2 { font-family: 'Playfair Display', Georgia, serif; }
.result-grid, .fabric-grid { gap: 16px !important; }
.result-card, .fabric-item { border-radius: 0 !important; border-color: var(--brand-line) !important; box-shadow: none !important; background: white !important; }
.fabric-photo { aspect-ratio: 4/5 !important; }
.inquire-fabric { border-radius: 0 !important; }

.browser-tools { display: grid; grid-template-columns: minmax(240px,1fr) 220px 220px 160px; gap: 10px; }
.browser-tools input, .browser-tools select { border-radius: 0 !important; background: white !important; }
.browser-meta { border-radius: 0 !important; }
.fabric-grid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
.pagination .button { border-radius: 0 !important; }

.showroom-editorial { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.showroom-editorial figure { margin: 0; position: relative; overflow: hidden; background: #ddd; }
.showroom-editorial img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; display: block; }
.showroom-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.showroom-side img { min-height: 251px; }
.showroom-editorial figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; color: white; text-shadow: 0 1px 18px rgba(0,0,0,.4); }
.showroom-editorial figcaption span { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.showroom-editorial figcaption strong { display: block; margin-top: 5px; font-size: 17px; }

.inquiry.brand-inquiry { padding: 0; }
.inquiry-form { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea { border-radius: 0 !important; background: white !important; }
.form-wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.brand-footer { padding: 58px clamp(20px,4vw,64px); background: #0f100e; color: white; }
.brand-footer-grid { width: min(1460px,100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.brand-footer h2 { margin: 0; font-size: clamp(46px,5vw,78px); line-height: .96; }
.brand-footer p { max-width: 520px; color: #aaa; }
.brand-footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; }

.quick-contact { border-radius: 0 !important; }
.modal-panel { border-radius: 0 !important; }
.modal-photo { border-radius: 0 !important; }

/* Journal */
body.journal-page { margin: 0; background: var(--brand-paper); color: var(--brand-ink); font-family: 'DM Sans', Arial, sans-serif; }
.journal-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px,4vw,64px); border-bottom: 1px solid var(--brand-line); background: var(--brand-white); }
.journal-main { width: min(1200px, calc(100vw - 40px)); margin: 0 auto; }
.journal-hero { padding: 90px 0 48px; }
.journal-hero .brand-kicker { color: var(--brand-muted); }
.journal-hero h1 { max-width: 1050px; margin: 0 0 24px; font-size: clamp(52px,7vw,100px); line-height: .95; }
.journal-hero p { max-width: 700px; color: var(--brand-muted); font-size: 18px; }
.journal-cover { margin: 0 0 72px; }
.journal-cover img { width: 100%; height: auto; display: block; }
.journal-article { max-width: 820px; margin: 0 auto; padding-bottom: 100px; }
.journal-article h2 { margin: 70px 0 18px; font-size: clamp(34px,4vw,56px); line-height: 1.03; }
.journal-article p, .journal-article li { color: #454640; font-size: 17px; line-height: 1.8; }
.journal-article figure { margin: 48px -100px; }
.journal-article figure img { width: 100%; height: auto; display: block; }
.journal-article figcaption { margin-top: 8px; color: var(--brand-muted); font-size: 11px; }
.journal-cta { margin-top: 70px; padding: 38px; background: var(--brand-dark); color: white; }
.journal-cta h2 { margin-top: 0; }
.journal-cta p { color: #c7c7c2; }

@media (max-width: 980px) {
  .brand-nav { grid-template-columns: 1fr auto; }
  .brand-nav-links { display: none; }
  .brand-hero, .visual-search-stage, .event-feature, .fabricai-minimal, .showroom-editorial { grid-template-columns: 1fr; }
  .brand-hero-media { order: -1; min-height: 52vw; }
  .brand-hero-copy { padding: 52px 26px 64px; }
  .brand-section-head { grid-template-columns: 1fr; gap: 20px; }
  .fabric-family-strip { grid-template-columns: repeat(3,1fr); }
  .collection-card.brand-family { min-height: 300px; }
  .event-media { min-height: 58vw; }
  .assistant-card.brand-assistant { grid-template-columns: 1fr; }
  .brand-assistant textarea, .brand-assistant .assistant-actions, .brand-assistant .ai-status { grid-column: auto; }
  .browser-tools { grid-template-columns: 1fr 1fr; }
  .fabric-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .journal-article figure { margin-left: 0; margin-right: 0; }
}

@media (max-width: 640px) {
  .brand-topbar { display: none; }
  .brand-nav { min-height: 62px; padding: 0 16px; }
  .brand-wordmark { font-size: 18px; }
  .brand-nav-cta { min-height: 38px; padding: 0 12px; font-size: 9px; }
  .brand-shell, .recommendation-section.brand-recommendations, .journal-main { width: calc(100vw - 28px); }
  .brand-hero { min-height: auto; }
  .brand-hero-media { min-height: 68vw; }
  .brand-hero h1 { font-size: clamp(54px,17vw,78px); }
  .brand-stats { grid-template-columns: 1fr; }
  .brand-stat { min-height: 105px; border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .brand-stat:last-child { border-bottom: 0; }
  .brand-section { padding: 68px 0; }
  .brand-section-head h2, .visual-search-intro h2, .event-copy h2, .fabricai-minimal h2 { font-size: 48px; }
  .image-search-fields, .image-result-grid, #heroLatestGrid.hero-latest-grid, .fabric-family-strip, .browser-tools, .fabric-grid, .inquiry-form { grid-template-columns: 1fr !important; }
  .collection-card.brand-family { min-height: 360px; border-right: 0; border-bottom: 2px solid var(--brand-paper); }
  .assistant-actions { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .showroom-side { grid-template-rows: auto; }
  .showroom-editorial img, .showroom-side img { min-height: 70vw; }
  .brand-footer-grid { grid-template-columns: 1fr; }
  .journal-hero { padding-top: 58px; }
  .journal-hero h1 { font-size: 52px; }
  .journal-article p, .journal-article li { font-size: 16px; }
}

/* Editorial layer: intentionally last in the cascade. */
body.brand-home { background:#fbfaf7; }
.brand-topbar { min-height:27px; padding-inline:clamp(24px,4vw,72px); border:0; background:#171814; color:rgba(255,255,255,.72); font-size:9px; letter-spacing:.18em; }
.brand-nav { min-height:82px; padding-inline:clamp(24px,4vw,72px); background:rgba(251,250,247,.92); border-color:rgba(23,24,20,.1); backdrop-filter:blur(22px) saturate(130%); }
.brand-wordmark { font-family:'Playfair Display',Georgia,serif; font-size:22px; font-weight:600; letter-spacing:-.025em; }
.brand-nav-links { gap:clamp(20px,2.2vw,34px); font-size:11px; letter-spacing:.055em; }
.brand-nav-cta { min-height:46px; padding-inline:24px; border:0; background:#171814; color:#fff !important; }
.brand-shell { width:min(100%,1500px); padding-inline:clamp(24px,4vw,72px); }
.brand-hero { width:100%; max-width:none; min-height:calc(100svh - 109px); grid-template-columns:minmax(390px,.82fr) minmax(0,1.45fr); gap:0; padding:0; background:#f3f0e9; }
.brand-hero-copy { display:flex; flex-direction:column; justify-content:center; padding:clamp(70px,9vw,140px) clamp(40px,6vw,104px); background:#f3f0e9; }
.brand-hero h1 { max-width:690px; margin:22px 0 28px; font-size:clamp(76px,8.1vw,142px); line-height:.82; letter-spacing:-.065em; }
.brand-hero .lead { max-width:510px; margin:0; color:#5e5e57; font-size:clamp(16px,1.25vw,20px); line-height:1.7; }
.brand-actions { margin-top:39px; gap:10px; }
.brand-btn,.brand-nav-cta { transition:background .22s ease,color .22s ease,transform .22s ease; }
.brand-btn:hover,.brand-nav-cta:hover { transform:translateY(-2px); }
.brand-btn.dark { background:#171814; color:#fff; }
.brand-btn.dark:hover,.brand-nav-cta:hover { background:#315f52; }
.brand-hero-media { position:relative; min-height:720px; overflow:hidden; background:linear-gradient(180deg,rgba(20,22,18,.02),rgba(20,22,18,.20)),url('./assets/company-photos-beautified/showroom-main-beautified.png') center center/cover no-repeat; }
.brand-hero-media img { opacity:0; }
.brand-hero-media::before { content:'FROM MATERIAL TO SILHOUETTE'; position:absolute; top:32px; left:34px; color:rgba(255,255,255,.82); font-size:9px; font-weight:700; letter-spacing:.2em; }
.brand-hero-media::after { content:'Zhongwei Textile  /  Shaoxing'; position:absolute; right:34px; bottom:30px; color:rgba(255,255,255,.84); font-family:'Playfair Display',Georgia,serif; font-size:14px; }
.brand-stats { width:100%; max-width:none; padding:0 clamp(24px,4vw,72px); background:#171814; color:#fff; }
.brand-stat { min-height:126px; padding:26px clamp(20px,3vw,52px); border-color:rgba(255,255,255,.15); }
.brand-stat:first-child { padding-left:0; }
.brand-stat strong { font-family:'Playfair Display',Georgia,serif; font-size:clamp(32px,3vw,50px); font-weight:500; }
.brand-stat span { color:rgba(255,255,255,.55); font-size:9px; letter-spacing:.16em; text-transform:uppercase; }
.brand-section { padding-block:clamp(92px,10vw,160px); }
.brand-section.white { background:#fbfaf7; }
.brand-section:not(.white):not(.dark) { background:#f3f0e9; }
.brand-section h2,.visual-search-intro h2,.event-copy h2,.fabricai-minimal h2 { font-size:clamp(52px,6vw,94px); line-height:.96; letter-spacing:-.055em; }
.image-search-card,.brand-assistant { border:1px solid rgba(23,24,20,.12); box-shadow:0 30px 80px rgba(42,39,31,.08); }
.hero-latest-card img { aspect-ratio:4/5; object-fit:cover; filter:saturate(.86); transition:transform .55s ease,filter .35s ease; }
.hero-latest-card:hover img { transform:scale(1.025); filter:saturate(1); }
.brand-family { min-height:520px; overflow:hidden; }
.brand-family img { filter:saturate(.75) contrast(.96); transition:transform .7s cubic-bezier(.2,.7,.2,1),filter .35s; }
.brand-family:hover img { transform:scale(1.045); filter:saturate(.95); }
.event-feature { min-height:720px; grid-template-columns:.74fr 1.36fr; gap:0; }
.event-copy { display:flex; flex-direction:column; justify-content:center; padding:clamp(45px,6vw,94px); background:#171814; color:#fff; }
.event-copy p { color:rgba(255,255,255,.64); }
.event-media img { min-height:720px; object-fit:cover; }
.showroom-editorial figure { overflow:hidden; }
.showroom-editorial img { transition:transform .8s cubic-bezier(.2,.7,.2,1); }
.showroom-editorial figure:hover img { transform:scale(1.025); }
.application { min-height:110px; font-family:'Playfair Display',Georgia,serif; font-size:18px; }
.brand-section.dark { background:#171814; }
.quick-contact { right:20px; bottom:20px; box-shadow:0 12px 40px rgba(0,0,0,.22); }
@media(max-width:1050px){.brand-hero{grid-template-columns:1fr}.brand-hero-copy{min-height:610px;padding:86px clamp(28px,8vw,80px)}.brand-hero h1{font-size:clamp(76px,14vw,120px)}.brand-hero-media{min-height:72svh;background-position:center 20%}.event-feature{grid-template-columns:1fr}}
@media(max-width:680px){.brand-nav{min-height:68px;padding-inline:18px}.brand-wordmark{font-size:17px}.brand-nav-cta{min-height:40px;padding-inline:14px;font-size:9px}.brand-hero-copy{min-height:510px;padding:68px 24px 62px}.brand-hero h1{font-size:clamp(60px,19vw,88px)}.brand-hero-media{min-height:68svh}.brand-stats{grid-template-columns:1fr 1fr;padding-inline:20px}.brand-stat{min-height:100px;padding:20px 14px}.brand-stat:last-child{grid-column:1/-1}.brand-section{padding-block:84px}.brand-family{min-height:420px}.event-copy{padding:70px 26px}.quick-contact{left:12px;right:12px;bottom:10px}}


/* Image quality and sizing safeguards */
.hero-latest-card,
.fabric-item > .open-detail:first-child,
.result-card > .open-detail:first-child { display:block; width:100%; overflow:hidden; background:#e9e7e0; }
.hero-latest-card img,
.fabric-item > .open-detail:first-child,
.result-card > .open-detail:first-child { aspect-ratio:4/5; }
.fabric-item > .open-detail:first-child .fabric-photo,
.result-card > .open-detail:first-child .fabric-photo,
.hero-latest-card img { width:100%; height:100%!important; object-fit:cover; object-position:center; display:block; }
.fabric-item > .fabric-photo.placeholder,
.result-card > .fabric-photo.placeholder { width:100%; aspect-ratio:4/5!important; display:grid; place-items:center; }
.modal-body > div:first-child { min-width:0; overflow:hidden; background:#e9e7e0; }
.modal-photo { display:block; width:100%; height:min(72vh,760px)!important; object-fit:cover; object-position:center; }
.event-media { overflow:hidden; background:#171814; }
.event-media img { width:100%; height:100%; min-height:720px; object-fit:cover; object-position:center; }
@media(max-width:680px){.modal-photo{height:min(62vh,560px)!important}.event-media img{min-height:56vh}}


/* Editorial textile house direction */
:root { --brand-ink:#101612; --brand-paper:#f3f0e8; --brand-white:#fff; --brand-line:rgba(16,22,18,.16); }
.brand-home { background:var(--brand-paper); color:var(--brand-ink); font-size:16px; }
.brand-shell { width:min(100%,1560px); }
.brand-topbar { min-height:32px; padding-inline:clamp(24px,4vw,72px); background:#0d1511; color:rgba(255,255,255,.72); }
.brand-nav { min-height:94px; padding-inline:clamp(24px,4vw,72px); background:rgba(243,240,232,.94); border-bottom:1px solid var(--brand-line); }
.brand-wordmark { font-size:25px; letter-spacing:-.045em; }
.brand-nav-links { gap:34px; }
.brand-nav-links a { font-size:12px; letter-spacing:.08em; }
.brand-nav-cta { min-height:46px; padding:0 22px; background:var(--brand-ink); color:#fff; border-color:var(--brand-ink); }

.brand-hero { grid-template-columns:minmax(600px,.98fr) minmax(0,1.22fr); min-height:820px; max-width:none; overflow:hidden; }
.brand-hero-copy { min-width:0; min-height:820px; padding:clamp(88px,8vw,132px) clamp(42px,4.6vw,78px); background:var(--brand-ink); color:#f7f3e9; }
.brand-hero-copy .brand-kicker { color:rgba(255,255,255,.62); }
.brand-hero h1 { max-width:7ch; margin:32px 0 28px; color:#f7f3e9; font-size:clamp(72px,6.2vw,112px); line-height:.82; letter-spacing:-.072em; }
.brand-hero-copy > p:not(.brand-kicker) { max-width:34rem; color:rgba(255,255,255,.68); font-size:18px; line-height:1.7; }
.brand-hero-copy .brand-btn { border-color:rgba(255,255,255,.55); color:#fff; }
.brand-hero-copy .brand-btn.dark { background:#f7f3e9; color:var(--brand-ink); border-color:#f7f3e9; }
.brand-hero-media { min-height:820px; background-image:linear-gradient(180deg,rgba(16,22,18,.02),rgba(16,22,18,.24)),url('./assets/company-photos-beautified/showroom-main-beautified.png'); background-position:center 45%; }
.brand-hero-media::after { content:"SHAOXING · TEXTILE SOURCING"; position:absolute; right:28px; bottom:24px; padding:10px 14px; color:#fff; background:rgba(10,15,12,.72); font-size:11px; letter-spacing:.13em; }
.brand-stats { max-width:none; padding:0 clamp(24px,4vw,72px); background:#fff; border-bottom:1px solid var(--brand-line); }
.brand-stat { min-height:150px; padding:35px clamp(20px,3vw,54px); border-color:var(--brand-line); }
.brand-stat strong { font-size:clamp(38px,4vw,62px); letter-spacing:-.05em; }
.brand-stat span { font-size:12px; letter-spacing:.11em; text-transform:uppercase; }

.brand-section { padding-block:clamp(104px,10vw,164px); }
.brand-section.white { background:#fff; }
.brand-section-head,.brand-arrivals-head { align-items:end; margin-bottom:54px; }
.brand-section-head h2,.brand-arrivals-head h2 { max-width:11ch; font-size:clamp(54px,6.2vw,96px); line-height:.92; letter-spacing:-.055em; }
.brand-section-head > p { max-width:31rem; font-size:17px; line-height:1.75; }
#heroLatestGrid.hero-latest-grid { gap:18px; }
.hero-latest-card { position:relative; }
.hero-latest-card img { filter:none; }
.hero-latest-card > span:last-child { padding:16px 0 0; border-top:1px solid var(--brand-line); }
.hero-latest-card small { font-size:14px; }

.fabric-family-strip { grid-template-columns:repeat(12,1fr); gap:16px; }
.brand-family { min-height:560px; }
.brand-family:nth-child(1),.brand-family:nth-child(4) { grid-column:span 5; }
.brand-family:nth-child(2),.brand-family:nth-child(5) { grid-column:span 3; }
.brand-family:nth-child(3),.brand-family:nth-child(6) { grid-column:span 4; }
.brand-family::after { background:linear-gradient(180deg,transparent 35%,rgba(5,10,8,.82)); }
.brand-family-copy { padding:30px; }
.brand-family-copy h3 { font-size:clamp(34px,3vw,52px); }
.brand-family-copy span { font-size:12px; letter-spacing:.1em; text-transform:uppercase; }

.event-feature { grid-template-columns:minmax(390px,.72fr) minmax(0,1.35fr); max-width:none; }
.event-copy { min-height:760px; padding:clamp(72px,8vw,132px); }
.event-copy h2 { font-size:clamp(70px,7vw,120px); line-height:.84; }
.event-media,.event-media img { min-height:760px; }
.event-media img { filter:saturate(.72) contrast(1.04); }

.visual-search-stage,.fabricai-minimal { gap:clamp(44px,7vw,110px); }
.visual-search-copy h2,.fabricai-minimal h2 { font-size:clamp(54px,5.6vw,88px); line-height:.93; }
.image-search-card,.brand-assistant { padding:clamp(30px,4vw,56px); border:1px solid var(--brand-line); box-shadow:none; }
.fabric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:42px 24px; }
.fabric-item { border:0; background:transparent; padding:0; }
.fabric-item > small,.fabric-item > .fabric-title-button,.fabric-item > p,.fabric-item > .spec-line,.fabric-item > .inquire-fabric { margin-inline:14px; }
.fabric-item > small { display:block; margin-top:18px; }
.fabric-item h3 { font-size:23px; }
.fabric-item p { font-size:15px; line-height:1.7; }
.fabric-item .spec-line { font-size:13px; }
.fabric-item > .inquire-fabric { width:calc(100% - 28px); }
.showroom-editorial { gap:18px; }
.showroom-editorial figure { min-height:560px; }
.brand-inquiry { padding-block:20px; }
.brand-footer { padding-block:90px; }

@media(max-width:1050px){
  .brand-hero{grid-template-columns:1fr;min-height:0}.brand-hero-copy{min-height:620px}.brand-hero-media{min-height:72svh}
  .fabric-family-strip{grid-template-columns:repeat(2,1fr)}.brand-family:nth-child(n){grid-column:span 1}.brand-family{min-height:460px}
  .fabric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.event-feature{grid-template-columns:1fr}.event-copy{min-height:auto}
}
@media(max-width:680px){
  .brand-nav{min-height:72px}.brand-hero-copy{min-height:540px;padding:72px 24px}.brand-hero h1{font-size:clamp(58px,19vw,82px)}
  .brand-hero-media{min-height:62svh}.brand-stats{grid-template-columns:1fr;padding-inline:22px}.brand-stat,.brand-stat:last-child{grid-column:auto;min-height:110px}
  .brand-section{padding-block:84px}.brand-section-head h2,.brand-arrivals-head h2{font-size:clamp(48px,14vw,66px)}
  .fabric-family-strip,.fabric-grid{grid-template-columns:1fr}.brand-family{min-height:430px}.event-copy{padding:74px 24px}.event-copy h2{font-size:clamp(58px,17vw,82px)}
  .event-media,.event-media img{min-height:62svh}.showroom-editorial figure{min-height:430px}
}


/* Stats visibility correction */
.brand-stat { color:#101612 !important; }
.brand-stat strong { display:block; color:#101612 !important; opacity:1 !important; visibility:visible !important; }
.brand-stat span { display:block; color:#58605a !important; opacity:1 !important; visibility:visible !important; }


/* In-stock suede and faux leather launch */
.suede-launch { background: #c8b18f; color: #171512; }
.suede-launch-grid { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 620px; }
.suede-launch-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px,6vw,86px); }
.suede-launch-copy h2 { margin: 0 0 24px; font-size: clamp(58px,6.7vw,104px); line-height: .9; }
.suede-launch-copy > p:not(.brand-kicker) { max-width: 540px; margin: 0; color: #4f473b; font-size: 16px; }
.suede-specs { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 32px 0; border: 1px solid rgba(23,21,18,.3); }
.suede-specs span { padding: 16px 12px; border-right: 1px solid rgba(23,21,18,.3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.suede-specs span:last-child { border-right: 0; }
.suede-specs strong { display: block; margin-bottom: 3px; font-family: 'Playfair Display',Georgia,serif; font-size: 25px; letter-spacing: -.03em; }
.suede-launch-copy .brand-btn { align-self: flex-start; }
.suede-launch-gallery { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 8px; background: #171512; }
.suede-launch-gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.suede-launch-gallery img:first-child { grid-row: 1 / 3; }
@media (max-width: 980px) {
  .suede-launch-grid { grid-template-columns: 1fr; }
  .suede-launch-gallery { min-height: 520px; }
}
@media (max-width: 620px) {
  .suede-launch-copy { padding: 52px 24px; }
  .suede-specs { grid-template-columns: 1fr; }
  .suede-specs span { border-right: 0; border-bottom: 1px solid rgba(23,21,18,.3); }
  .suede-specs span:last-child { border-bottom: 0; }
  .suede-launch-gallery { min-height: 430px; }
}


/* Fabric-to-fashion homepage preview */
.fashion-preview { background: #171815; color: #f4f2ed; }
.fashion-preview .brand-kicker { color: #bca37d; }
.fashion-preview-head { align-items: end; }
.fashion-preview-head h2 { margin: 0; color: #f4f2ed; font-size: clamp(48px, 6vw, 88px); line-height: .92; }
.fashion-preview-head > p { color: #b9bcb5; }
.fashion-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 42px; }
.fashion-preview-card { color: inherit; text-decoration: none; background: #23241f; }
.fashion-preview-card figure { position: relative; margin: 0; overflow: hidden; }
.fashion-preview-card img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .45s ease; }
.fashion-preview-card figcaption { position: absolute; inset: auto 0 0; display: grid; gap: 5px; padding: 54px 20px 20px; background: linear-gradient(transparent, rgba(10,11,9,.92)); }
.fashion-preview-card span { color: #d3bea0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.fashion-preview-card strong { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(20px, 2vw, 29px); line-height: 1.05; }
.fashion-preview-card small { color: #d8dad4; font-size: 13px; }
.fashion-preview-card:hover img, .fashion-preview-card:focus-visible img { transform: scale(1.025); }
.fashion-preview-card:focus-visible { outline: 2px solid #d3bea0; outline-offset: 3px; }
.fashion-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(244,242,237,.18); }
.fashion-preview-foot p { max-width: 650px; margin: 0; color: #aeb1aa; font-size: 14px; }
.fashion-preview-foot .brand-btn { flex: 0 0 auto; border-color: rgba(244,242,237,.35); color: #f4f2ed; }
@media (max-width: 900px) {
  .fashion-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .fashion-preview-head { align-items: start; }
  .fashion-preview-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(78vw, 1fr); gap: 10px; margin-inline: -24px; padding-inline: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fashion-preview-grid::-webkit-scrollbar { display: none; }
  .fashion-preview-card { scroll-snap-align: start; }
  .fashion-preview-foot { align-items: flex-start; flex-direction: column; }
}
