:root {
  --ref-ink: #111713;
  --ref-paper: #f2efe7;
  --ref-white: #fbfaf6;
  --ref-sand: #d8c9b5;
  --ref-sage: #7c8778;
  --ref-acid: #ced878;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--ref-paper); }
::selection { background: var(--ref-acid); color: var(--ref-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.utility { display: none; }
body > header {
  position: sticky;
  top: 0;
  z-index: 24;
  height: 82px;
  background: color-mix(in srgb, var(--ref-paper) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: height .28s ease, box-shadow .28s ease;
}
body > header.is-compact { height: 68px; box-shadow: 0 8px 30px rgba(17,23,19,.08); }
body > header nav { align-items: center; }
body > header nav a,
body > header nav button { font-size: 12px; font-weight: 600; }
.header-icons { gap: 2px; }
.header-icons button,
.menu { display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; }
.header-icons svg,
.menu svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.header-icons button:hover { background: rgba(17,23,19,.06); border-radius: 50%; }

#search { width: min(520px, 100vw); padding: 72px clamp(28px, 4vw, 58px); background: var(--ref-white); }
#search .panel-eyebrow { margin: 0 0 14px; color: var(--ref-sage); font: 9px "DM Mono", monospace; letter-spacing: .16em; }
#search h2 { max-width: 390px; margin: 0 0 36px; font-size: clamp(34px, 4vw, 51px); line-height: 1; letter-spacing: -.055em; }
.search-field { position: relative; display: block; margin: 0; }
.search-field input { width: 100%; padding: 16px 42px 13px 0; border-bottom: 1px solid var(--ref-ink); font-size: 15px; }
.search-field svg { position: absolute; right: 4px; bottom: 14px; width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search-hint { margin: 11px 0 30px; color: #717970; font-size: 11px; }
.search-results { border-top: 1px solid #d6d2c8; }
.search-results a { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 15px; padding: 14px 0; border-bottom: 1px solid #d6d2c8; }
.search-results img { width: 66px; height: 66px; object-fit: cover; background: #d4d2cc; }
.search-results b { display: block; margin-bottom: 4px; font-size: 13px; }
.search-results small { color: #697269; font: 9px "DM Mono", monospace; letter-spacing: .06em; }
.search-results i { font-style: normal; }
.search-empty { padding: 24px 0; color: #697269; font-size: 12px; line-height: 1.6; }

.hero {
  min-height: min(790px, calc(100svh - 112px));
  height: auto;
  padding: clamp(120px, 13vh, 170px) 8% 90px;
  background-position: center 56%;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,15,12,.02) 45%, rgba(10,15,12,.5) 100%);
}
.hero-copy { max-width: 760px; }
.hero h1 { max-width: 760px; text-wrap: balance; }
.hero .intro { max-width: 430px; }
.hero .button,
.hero .text-link { transition: transform .25s ease, background .25s ease, color .25s ease; }
.hero .button:hover { transform: translateY(-2px); background: #fff; }
.hero .text-link:hover { color: var(--ref-acid); }

.marquee { overflow: hidden; gap: 40px; white-space: nowrap; }
.marquee span { flex: 0 0 auto; }

.intro-section { padding-top: 150px; }
.intro-section h2 { max-width: 900px; text-wrap: balance; }
.proof { background: #cac4b7; }
.proof article { transition: background .25s ease, transform .25s ease; }
.proof article:hover { background: #f8f5ee; transform: translateY(-4px); }

.field-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr);
  min-height: 790px;
  background: var(--ref-white);
}
.field-editorial-media { overflow: hidden; min-height: 680px; }
.field-editorial-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.field-editorial:hover .field-editorial-media img { transform: scale(1.025); }
.field-editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(45px, 6vw, 105px); }
.field-editorial-copy h2,
.lookbook-head h2 {
  margin: 0;
  font-size: clamp(48px, 5.6vw, 82px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 500;
}
.field-editorial-copy h2 em,
.lookbook-head h2 em { font-family: "Playfair Display", serif; font-weight: 500; }
html[lang="zh"] .field-editorial-copy h2,
html[lang="ja"] .field-editorial-copy h2 { font-size: clamp(48px, 4.9vw, 70px); line-height: 1.02; letter-spacing: -.055em; }
.field-editorial-copy > p:not(.eyebrow) { max-width: 470px; margin: 34px 0 27px; color: #4f5a50; font-size: 15px; line-height: 1.75; }
.field-editorial-copy > a { align-self: flex-start; border-bottom: 1px solid; padding-bottom: 5px; font-size: 12px; font-weight: 700; }
.field-principles { margin-top: 70px; border-top: 1px solid #c9c7bf; }
.field-principles span { display: grid; grid-template-columns: 45px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid #c9c7bf; }
.field-principles b { font: 9px "DM Mono", monospace; color: var(--ref-sage); }
.field-principles i { font-size: 12px; font-style: normal; }

.products-showcase,
.materials,
.series,
.service-promises,
.fit { position: relative; }
.products-showcase { padding-top: 120px; padding-bottom: 120px; }
.product-preview-card h3 { letter-spacing: -.03em; }
.product-preview-image { border-radius: 4px; }
.product-preview-image::after,
.series-art::after,
.lookbook-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(17,23,19,.05);
}

.materials { background: #f7f5ef; }
.material-grid article { cursor: default; }
.material-art { border-radius: 4px; filter: saturate(.82) contrast(1.02); }
.series { background: #dfd7c9; }
.series-art { position: relative; border-radius: 4px; }

.social-lookbook { padding: 125px 5% 110px; background: var(--ref-paper); }
.lookbook-head { display: grid; grid-template-columns: .7fr 1.4fr .8fr; align-items: end; gap: 45px; margin-bottom: 54px; }
.lookbook-head h2 { font-size: clamp(47px, 5.2vw, 76px); }
.lookbook-head > p:last-child { max-width: 360px; margin: 0 0 4px; color: #596359; font-size: 13px; line-height: 1.75; }
.lookbook-grid { display: grid; grid-template-columns: 1.35fr .72fr .72fr; grid-template-rows: 1fr 1fr; gap: 16px; height: min(780px, 70vw); }
.lookbook-grid figure { position: relative; overflow: hidden; margin: 0; background: #cbc7bd; }
.lookbook-grid .lookbook-main { grid-row: 1 / 3; }
.lookbook-grid figure:last-child { grid-column: 2 / 4; }
.lookbook-grid img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.88); transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.lookbook-grid figure:hover img { transform: scale(1.035); filter: saturate(1); }
.lookbook-grid figcaption { position: absolute; z-index: 2; left: 18px; bottom: 16px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); font: 9px "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
.lookbook-note { margin: 18px 0 0; color: #727b72; font: 9px "DM Mono", monospace; letter-spacing: .1em; }

.fit { background: #cfc1aa; }
.fit input:focus { border-color: var(--ref-ink); }
.site-footer { border-top: 1px solid rgba(255,255,255,.12); }
.social-links button { transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.social-links button:hover { border-color: var(--ref-acid); color: var(--ref-acid); transform: translateY(-2px); }

.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal-ready.is-visible { opacity: 1; transform: none; }

/* Product detail refinement */
body:has(.product) > header { position: sticky; top: 0; background: rgba(250,248,242,.94); backdrop-filter: blur(16px); }
body:has(.product) .main-image { border-radius: 4px; }
body:has(.product) .details { position: sticky; top: 108px; }
body:has(.product) .details h1 { text-wrap: balance; }
body:has(.product) .tagline { max-width: 560px; }
body:has(.product) .add-to-bag,
body:has(.product) .checkout-now { border-radius: 2px; transition: transform .2s ease, background .2s ease; }
body:has(.product) .add-to-bag:hover,
body:has(.product) .checkout-now:hover { transform: translateY(-2px); }
body:has(.product) .feature-row img,
body:has(.product) .recommend-grid article img { border-radius: 4px; }

@media (max-width: 1050px) {
  .field-editorial { grid-template-columns: 1fr; }
  .field-editorial-media { min-height: 62vw; }
  body:has(.product) .details { position: static; }
}

@media (max-width: 700px) {
  .top { height: 30px; padding: 10px 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  body > header,
  body > header.is-compact { height: 68px; padding: 0 14px; gap: 3px; justify-content: flex-start; }
  body > header .logo { flex: 0 0 auto; font-size: 18px; }
  body > header .language { margin-left: auto; display: flex; flex: 0 0 58px; align-items: center; }
  body > header .language span { display: none; }
  body > header .language select { width: 58px; max-width: 58px; margin: 0; font-size: 9px; }
  .header-icons { flex: 0 0 auto; }
  .header-icons button { width: 31px; height: 36px; padding: 6px; }
  .header-icons button[data-panel="account"] { display: none; }
  .header-icons svg { width: 19px; height: 19px; }
  .menu { display: grid; width: 31px; height: 36px; padding: 6px; }
  .menu svg { width: 20px; }
  .mobile-drawer.open { position: fixed; top: 98px; }

  .hero { min-height: 700px; height: calc(100svh - 98px); padding: 210px 24px 48px; background-position: 61% center; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,13,10,.75), rgba(8,13,10,.12) 90%); }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero h1 { max-width: 100%; font-size: clamp(40px, 10.9vw, 48px); line-height: .94; letter-spacing: -.075em; overflow-wrap: anywhere; }
  .hero h1 em { display: block; max-width: 100%; font-size: .82em; line-height: 1.02; letter-spacing: -.065em; }
  .hero .intro { width: 100%; max-width: 330px; margin: 26px 0; font-size: 14px; line-height: 1.55; }
  .hero .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 19px; }
  .hero .button { padding: 15px 17px; }
  .hero .text-link { margin-left: 0; }
  .hero .concept { left: 24px; right: auto; bottom: 22px; max-width: calc(100% - 80px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .marquee { justify-content: flex-start; padding-inline: 20px; gap: 28px; }

  .intro-section { padding: 88px 24px 45px; }
  .intro-section h2 { font-size: 44px; line-height: .96; }
  .proof { padding: 0 18px 70px; }
  .proof article { min-height: auto; padding: 27px 23px 31px; }
  .proof h3 { margin-top: 32px; }

  .field-editorial { display: flex; flex-direction: column; min-height: 0; }
  .field-editorial-media { min-height: 0; aspect-ratio: 4 / 5; }
  .field-editorial-media img { object-position: 67% center; }
  .field-editorial-copy { padding: 65px 24px 75px; }
  .field-editorial-copy h2,
  .lookbook-head h2 { font-size: 49px; }
  html[lang="zh"] .field-editorial-copy h2,
  html[lang="ja"] .field-editorial-copy h2 { font-size: 43px; }
  .field-editorial-copy > p:not(.eyebrow) { margin: 27px 0 24px; font-size: 14px; }
  .field-principles { margin-top: 50px; }

  .products-showcase,
  .materials,
  .series,
  .social-lookbook { padding: 72px 24px; }
  .products-showcase-head { gap: 20px; }
  .products-showcase h2,
  .material-head h2,
  .series h2 { font-size: 41px; }
  .product-preview-card { flex-basis: 88%; }
  .product-preview-image { border-radius: 3px; }
  .materials .material-art { height: auto; aspect-ratio: 4 / 5; }
  .series-row a { flex-basis: 82%; }

  .lookbook-head { display: block; margin-bottom: 34px; }
  .lookbook-head > p:last-child { margin-top: 24px; }
  .lookbook-grid { display: flex; height: auto; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .lookbook-grid figure,
  .lookbook-grid .lookbook-main,
  .lookbook-grid figure:last-child { flex: 0 0 86%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .lookbook-grid img { object-position: center; }

  .fit { padding: 78px 24px; }
  .service-promises { padding: 55px 24px; }
  .site-footer { padding-inline: 24px; }
  .chat-fab { width: 52px; height: 52px; }
  #search { padding: 58px 24px 30px; }
  #search h2 { font-size: 38px; }

  body:has(.product) > header { padding-inline: 16px; gap: 8px; }
  body:has(.product) .product-language { max-width: 78px; padding-inline: 7px; }
  body:has(.product) .product-cart-link { padding-inline: 8px; }
  body:has(.product) main { padding-inline: 16px; }
  body:has(.product) .details h1 { font-size: 48px; }
  body:has(.product) .tagline { font-size: 22px; }
}

.signup-status { min-height: 1.4em; margin: -12px 0 14px; font-size: 12px; line-height: 1.4; opacity: .82; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 11px 15px; background: #fff; color: #151a16; border: 2px solid #151a16; transform: translateY(-160%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }
.side-panel[aria-hidden="true"] { visibility: hidden; }
:focus-visible { outline: 3px solid #9aaa42; outline-offset: 3px; }
.social-links button:disabled { cursor: default; opacity: .55; }
.hero { background-image: linear-gradient(90deg,rgba(12,17,14,.73) 0%,rgba(12,17,14,.4) 45%,rgba(12,17,14,.04)),url('assets/muye-hero-concept-v2.webp'); }
.material-art.shell { background-image: url('assets/muye-material-shell-v1.webp'); }
.material-art.fabric { background-image: url('assets/muye-material-fabric-v1.webp'); }
.material-art.base { background-image: url('assets/muye-material-base-v1.webp'); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
