/* ==========================================================================
   PUNING HESHENG GARMENT CO., LTD
   Design tokens: greige ground / mulberry dye / brass thread
   Display: Bodoni Moda  |  Body: Archivo  |  Spec: IBM Plex Mono
   ========================================================================== */

:root {
  --greige:   #E3DFD8;
  --greige-2: #D8D2C8;
  --paper:    #F7F5F1;
  --ink:      #231D26;
  --ink-2:    #574C58;
  --ink-3:    #877C88;
  --dye:      #A73D31;   /* brand red, from the logo */
  --dye-2:    #7C2B22;
  --brass:    #B08D3F;
  --seam:     #C6BFB4;

  --display: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --spec: "IBM Plex Mono", "Courier New", monospace;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --rule: 1px solid var(--seam);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Chinese pages swap the families, keep every other token identical */
html[lang|="zh"] {
  --display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--greige);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--dye);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--dye); color: #fff; padding: 12px 18px;
  font: 500 13px/1 var(--spec); letter-spacing: .08em;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* --------------------------------------------------------- type system -- */
.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  letter-spacing: -.015em;
}
h1.display { font-size: clamp(2.3rem, 4.3vw, 3.7rem); line-height: 1.05; }
h2.display { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; }
h3.display { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.display em { font-style: italic; color: var(--dye); }

html[lang|="zh"] h1.display { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: .01em; line-height: 1.3; }
html[lang|="zh"] h2.display { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: .01em; line-height: 1.35; }
html[lang|="zh"] h3.display { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; }
html[lang|="zh"] .display em { font-style: normal; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }

/* Care-label eyebrow — the site's structural device, borrowed from the
   woven label sewn into every garment we make. */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--spec); font-size: 11.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--dye);
  margin: 0 0 18px;
}
.label::before {
  content: ""; width: 26px; height: 0;
  border-top: 2px dashed currentColor; opacity: .55;
}
html[lang|="zh"] .label { letter-spacing: .14em; font-family: var(--spec); }

/* Stitched divider */
.seam-rule {
  border: 0; border-top: 1px dashed var(--seam); margin: 0;
}

/* ------------------------------------------------------------- topbar -- */
.topbar {
  background: var(--dye-2); color: #F2DED8;
  font-family: var(--spec); font-size: 12px; letter-spacing: .04em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { text-decoration: none; opacity: .88; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-meta { display: flex; gap: 22px; flex-wrap: wrap; }

.lang {
  display: inline-flex; border: 1px solid rgba(255,255,255,.28);
}
.lang a, .lang span {
  padding: 3px 11px; text-decoration: none; font-size: 11.5px;
  letter-spacing: .1em;
}
.lang .on { background: var(--brass); color: #241A0A; font-weight: 500; }

/* ----------------------------------------------------------- masthead -- */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: rgba(227, 223, 216, .93);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px;
}
.brand { text-decoration: none; display: block; line-height: 1; }
.brand b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 2.1vw, 1.32rem); letter-spacing: .01em;
}
.brand span {
  display: block; font-family: var(--spec); font-size: 10px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 6px;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  text-decoration: none; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; position: relative;
}
html[lang|="zh"] .nav a { letter-spacing: .08em; font-size: 14px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  border-bottom: 1px dashed var(--dye); opacity: 0;
  transition: opacity .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { opacity: 1; }
.nav a[aria-current="page"] { color: var(--dye); }

.burger {
  display: none; background: none; border: 1px solid var(--seam);
  width: 44px; height: 40px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 1.5px;
  background: var(--ink); transition: transform .3s var(--ease), opacity .2s;
}
.burger span::before { transform: translateY(-6px); }
.burger span::after { transform: translateY(4.5px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(0); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--gut) 22px; border-bottom: var(--rule);
    box-shadow: 0 22px 40px -28px rgba(35,29,38,.55);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px dashed var(--seam); font-size: 14px; }
  .nav a::after { display: none; }
}

/* --------------------------------------------------------------- hero -- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { max-width: 46ch; }
html[lang|="zh"] .hero-copy { max-width: 26em; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }

/* Signature: the dye-lot swatch wall.
   Drop product photography into .swatch img later — tiles fall back to the
   dyed colour if an image is absent. */
.swatchwall {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.swatch {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--tone, var(--dye));
  display: flex; align-items: flex-end;
  opacity: 0; transform: translateY(14px);
  animation: lift .8s var(--ease) forwards;
}
.swatch:nth-child(3n+2) { aspect-ratio: 3 / 5; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch b {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--spec); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; color: rgba(255,255,255,.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.swatch--light b { color: rgba(35, 29, 38, .66); text-shadow: none; }
.tone-ink b { color: rgba(255, 255, 255, .82); }

/* Dye lots sitting between the product tiles. Swap the hex values freely. */
.tone-pearl { --tone: #E4DCD2; }
.tone-sand  { --tone: #C9B8A6; }
.tone-ink   { --tone: #6E2620; }
.swatch--photo { background: var(--greige-2); }
.swatch--photo::after { border-color: rgba(35, 29, 38, .10); }

.swatch:nth-child(1) { animation-delay:   0ms; }
.swatch:nth-child(2) { animation-delay:  90ms; }
.swatch:nth-child(3) { animation-delay: 180ms; }
.swatch:nth-child(4) { animation-delay: 270ms; }
.swatch:nth-child(5) { animation-delay: 360ms; }
.swatch:nth-child(6) { animation-delay: 450ms; }
.swatch::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.16);
  transition: background .4s var(--ease);
}
.swatch:hover::after { background: rgba(35,29,38,.14); }
@keyframes lift { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
}

/* -------------------------------------------------------------- pagehead */
.pagehead { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 46px); }
.pagehead h1 { max-width: 18ch; margin-bottom: 20px; }
.pagehead .lead { margin-bottom: 0; }

/* ------------------------------------------------------------ buttons -- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; text-decoration: none; cursor: pointer;
  font-family: var(--spec); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--dye); background: var(--dye); color: #fff;
  transition: background .28s var(--ease), color .28s var(--ease), transform .28s var(--ease);
}
.btn:hover { background: var(--dye-2); border-color: var(--dye-2); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--dye); }
.btn.ghost:hover { background: var(--dye); color: #fff; }
.btn.light { background: var(--brass); border-color: var(--brass); color: #241A0A; }
.btn.light:hover { background: #C79E48; border-color: #C79E48; }
html[lang|="zh"] .btn { letter-spacing: .1em; font-size: 13px; }

/* ------------------------------------------------------------ sections -- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--rule { border-top: 1px dashed var(--seam); }
.section-head { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h2 { margin-bottom: 18px; }

/* --------------------------------------------------------------- strip -- */
.strip { background: var(--ink); color: var(--paper); }
.strip .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px 0;
}
.strip div {
  padding: 30px 26px 30px 0; border-right: 1px dashed rgba(247,245,241,.22);
}
.strip div:last-child { border-right: 0; }
.strip dt {
  font-family: var(--spec); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 10px;
}
.strip dd {
  margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}
html[lang|="zh"] .strip dd { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.4; }
@media (max-width: 820px) {
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip div { padding: 22px 20px 22px 0; }
  .strip div:nth-child(2n) { border-right: 0; }
  .strip div:nth-child(-n+2) { border-bottom: 1px dashed rgba(247,245,241,.22); }
}
@media (max-width: 460px) { .strip .wrap { grid-template-columns: 1fr; }
  .strip div { border-right: 0; border-bottom: 1px dashed rgba(247,245,241,.22); }
  .strip div:last-child { border-bottom: 0; } }

/* ---------------------------------------------------------------- grid -- */
.grid { display: grid; gap: clamp(18px, 2.6vw, 30px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Split layout: sticky spec column + content */
.split { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); }
.split-aside { position: sticky; top: 110px; align-self: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-aside { position: static; }
}

/* ---------------------------------------------------------------- card -- */
.card {
  background: var(--paper); border: var(--rule); padding: 30px 28px 32px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.section--paper .card { background: #fff; }
.card:hover { border-color: var(--dye); transform: translateY(-3px); }
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card .spec-key {
  font-family: var(--spec); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}

/* Product card with image */
.prod { background: var(--paper); border: var(--rule); overflow: hidden; }
.section--paper .prod { background: #fff; }
.prod-fig { margin: 0; aspect-ratio: 4 / 5; background: var(--greige-2); overflow: hidden; }
.prod-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod:hover .prod-fig img { transform: scale(1.04); }
.prod-body { padding: 22px 24px 26px; }
.prod-body h3 { margin-bottom: 10px; }
.prod-body p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--spec); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dye);
  border: 1px dashed var(--seam); padding: 4px 9px;
}

/* --------------------------------------------------------------- steps -- */
/* Numbered because production genuinely is a sequence. */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 86px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: 30px 0; border-top: 1px dashed var(--seam);
}
.step:last-child { border-bottom: 1px dashed var(--seam); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--spec); font-size: 13px; letter-spacing: .1em;
  color: var(--dye); padding-top: 6px;
}
.step h3 { margin-bottom: 10px; }
.step p { margin-bottom: 0; color: var(--ink-2); }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* ---------------------------------------------------------------- spec -- */
.spectable { width: 100%; border-collapse: collapse; font-size: 15px; }
.spectable th, .spectable td {
  text-align: left; padding: 15px 16px 15px 0; border-bottom: 1px dashed var(--seam);
  vertical-align: top;
}
.spectable th {
  font-family: var(--spec); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  width: 34%;
}
html[lang|="zh"] .spectable th { letter-spacing: .08em; }

/* checklist */
.ticks li {
  position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 14px; border-top: 1px solid var(--dye);
}

/* --------------------------------------------------------------- quote -- */
.pull {
  border-left: 2px solid var(--dye); padding: 4px 0 4px 26px;
  font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.35; max-width: 30ch;
}

/* ----------------------------------------------------------------- cta -- */
.cta { background: var(--dye); color: #FCEFEB; }
.cta .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px; padding-top: clamp(44px, 5vw, 66px); padding-bottom: clamp(44px, 5vw, 66px);
  flex-wrap: wrap;
}
.cta h2 { max-width: 20ch; }
.cta .label { color: var(--brass); }
.cta p { color: rgba(252,239,235,.82); max-width: 46ch; margin-bottom: 0; }

/* -------------------------------------------------------------- contact */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--spec); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2);
}
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--paper); border: var(--rule); border-radius: 0;
  padding: 13px 14px; width: 100%;
  transition: border-color .25s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--dye); outline: none;
}
.field .hint { font-size: 13px; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.note {
  padding: 15px 18px; border-left: 2px solid var(--dye);
  background: var(--paper); font-size: 15px; margin-bottom: 26px;
}
.note--ok { border-color: #2F6B4F; }
.note--bad { border-color: #97331F; }

.contact-list { display: grid; gap: 22px; }
.contact-list dt {
  font-family: var(--spec); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dye); margin-bottom: 6px;
}
.contact-list dd { margin: 0; }
.contact-list a { color: var(--ink); text-decoration-color: var(--seam); text-underline-offset: 3px; }
.contact-list a:hover { color: var(--dye); }

/* -------------------------------------------------------------- footer -- */
.footer { background: var(--ink); color: rgba(247,245,241,.72); padding: clamp(50px, 6vw, 76px) 0 0; font-size: 15px; }
.footer a { color: rgba(247,245,241,.72); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(24px, 3vw, 44px); padding-bottom: 46px; }
.footer h4 {
  font-family: var(--spec); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 16px;
}
.footer li { margin-bottom: 10px; }
.footer .brand b { color: var(--paper); }
.footer .brand span { color: rgba(247,245,241,.45); }
.footer-note { max-width: 34ch; margin-top: 18px; font-size: 14.5px; line-height: 1.6; }
.colophon {
  border-top: 1px dashed rgba(247,245,241,.2); padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--spec); font-size: 11.5px; letter-spacing: .06em;
  color: rgba(247,245,241,.55);
}
.colophon a { color: var(--brass); text-decoration: none; }
.colophon a:hover { text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ 404 */
.mid { min-height: 52vh; display: flex; align-items: center; }

/* ------------------------------------------------------------- utilities */
.mb-m { margin-bottom: 22px; }
.mb-l { margin-bottom: 28px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 26px; }
.small { font-size: 15px; }
.card-link { align-self: flex-start; margin-top: 10px; }
.stack-lg { margin: 44px 0 22px; }
.pull--spaced { margin: 40px 0; }
.h1-tight { max-width: 16ch; margin-bottom: 20px; }
.btn--outline {
  border-color: rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
}
.btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ------------------------------------------------- factory photographs -- */
.shot { margin: 0 0 clamp(20px, 3vw, 34px); }
.shot img {
  width: 100%; height: auto; display: block;
  border: var(--rule); background: var(--greige-2);
}
.grid .shot { margin-bottom: 0; }
.grid .shot img { aspect-ratio: 3 / 4; object-fit: cover; }
.shot figcaption {
  margin-top: 10px;
  font-family: var(--spec); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.grid .shot figcaption { letter-spacing: .12em; }
html[lang|="zh"] .shot figcaption { letter-spacing: .08em; font-size: 12px; }

/* product gallery on the home page — portrait crops, not the 3:4 factory ratio */
.shots .shot img { aspect-ratio: 4 / 5; }


/* ------------------------------------------------------------ brand logo -- */
.brand--logo { display: flex; align-items: center; }
.brand--logo img { height: 58px; width: auto; display: block; }
@media (max-width: 900px) { .brand--logo img { height: 46px; } }
@media (max-width: 420px) { .brand--logo img { height: 40px; } }
