/* ============================================================
   JIUWEN — Custom Apparel
   Minimal Gallery Style: white + light gray + black, big whitespace
   ============================================================ */

:root {
  --bg:        #FAFAF8;
  --bg-alt:    #F2F1ED;
  --ink:       #0A0A0A;
  --ink-soft:  #3A3A3A;
  --muted:     #8A8A8A;
  --line:      #E5E4DF;
  --accent:    #0A0A0A;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1280px;
  --gutter:    clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius:    2px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.section          { padding: var(--section-y) 0; }
.section--alt     { background: var(--bg-alt); }

.section__head    { max-width: 720px; margin: 0 auto var(--section-y); text-align: center; }
.section__head .eyebrow { margin-bottom: 12px; }
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.section__title em {
  font-style: italic;
  color: var(--ink-soft);
}
.section__lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .25s var(--ease);
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #2c2c2c; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; padding: 18px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  color: #fff;            /* over hero by default */
  transition: background .3s var(--ease), padding .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav--scrolled {
  background: rgba(250, 250, 248, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.nav__logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .12em;
}
.nav__sub {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-top: 4px;
  transition: color .3s var(--ease);
}
.nav--scrolled .nav__sub { color: var(--muted); }

.nav__links {
  display: flex; align-items: center; gap: 36px;
}
.nav__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  padding: 10px 22px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav--scrolled .nav__cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.nav__toggle {
  display: none;
  background: none; border: 0; padding: 6px;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; gap: 5px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
  transition: all .25s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.62);
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.5) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  padding-top: 100px;
  max-width: 980px;
}
.hero__content .eyebrow { color: rgba(255,255,255,.75); }
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 28px;
}
.hero__title em { font-style: italic; font-weight: 400; }
.hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  max-width: 540px;
  color: rgba(255,255,255,.88);
  margin: 0 0 44px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__actions .btn--solid { background: #fff; color: var(--ink); }
.hero__actions .btn--solid:hover { background: rgba(255,255,255,.88); }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero__actions .btn--ghost:hover { background: #fff; color: var(--ink); }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding-bottom: 28px;
}
.hero__scroll::after {
  content: '';
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 1px; height: 20px;
  background: rgba(255,255,255,.5);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateX(-50%) scaleY(.3); opacity: .3; }
  50%      { transform: translateX(-50%) scaleY(1);  opacity: 1;  }
}

/* ============================================================
   VALUES (3-col)
   ============================================================ */
.values { padding: var(--section-y) 0 0; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: var(--section-y);
  border-bottom: 1px solid var(--line);
}
.values__item h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 14px 0 12px;
}
.values__item p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}
.values__num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  min-width: 60px;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px) clamp(20px, 3vw, 40px);
}
.product { display: block; transition: transform .4s var(--ease); }
.product__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ECEAE3;
  margin-bottom: 18px;
}
.product__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.product:hover .product__img img { transform: scale(1.04); filter: brightness(.95); }
.product__meta h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
}
.product__meta p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.product__from {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2vw, 32px);
  counter-reset: step;
}
.steps li {
  padding: 32px 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.steps__num {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 32px;
}
.steps h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -.005em;
}
.steps p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cap {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.cap:hover { background: var(--bg-alt); }
.cap h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 14px;
}
.cap p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: var(--section-y) 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about__text p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.about__text .btn { margin-top: 12px; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 36px 28px;
  text-align: left;
}
.stat span {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.stat p {
  margin: 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
}
.contact__intro .section__title { text-align: left; }
.contact__intro .section__lede { text-align: left; margin-bottom: 40px; }

.contact__list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.contact__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.contact__list span {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
  padding-top: 2px;
}
.contact__list a { color: var(--ink); }

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  transition: border-color .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.contact__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  min-height: 18px;
}
.contact__note--ok { color: #1f7a3a; }
.contact__note--err { color: #b3261e; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0A0A0A;
  color: #B5B4AE;
  padding: clamp(60px, 8vw, 100px) 0 28px;
  margin-top: 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  margin-bottom: 60px;
}
.footer__brand .nav__logo { color: #fff; font-size: 28px; }
.footer__brand p {
  margin: 16px 0 0;
  font-size: 13px;
  color: #888782;
  max-width: 280px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  color: #B5B4AE;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.footer__cols a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid #1f1f1d;
  font-size: 12px;
  color: #7a7975;
  letter-spacing: .04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .values__grid     { grid-template-columns: 1fr; gap: 40px; }
  .products         { grid-template-columns: repeat(2, 1fr); }
  .steps            { grid-template-columns: repeat(2, 1fr); }
  .caps             { grid-template-columns: repeat(2, 1fr); }
  .about__grid      { grid-template-columns: 1fr; }
  .contact__grid    { grid-template-columns: 1fr; }
  .footer__inner    { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Compact nav on mobile */
  .nav            { padding: 14px 0; }
  .nav--scrolled  { padding: 10px 0; }
  .nav__logo      { font-size: 18px; letter-spacing: .08em; }
  .nav__sub       { font-size: 9px; margin-top: 3px; letter-spacing: .1em; }

  /* Mobile menu dropdown — anchored to bottom of nav, not a fixed pixel offset */
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(250, 250, 248, .98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
    color: var(--ink);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s var(--ease), opacity .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__links a {
    padding: 14px var(--gutter);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta {
    margin: 10px var(--gutter) 0;
    text-align: center;
    border-color: var(--ink);
    color: var(--ink);
  }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Hero compact on mobile */
  .hero__content   { padding-top: 72px; }
  .hero .eyebrow   { font-size: 10px; letter-spacing: .14em; }
  .hero__title     { font-size: clamp(38px, 11vw, 56px); margin-bottom: 22px; }
  .hero__title br  { display: none; }   /* let title flow naturally */
  .hero__title em  { display: inline; }
  .hero__lede      { font-size: 15px; margin-bottom: 32px; }
  .hero__actions   { gap: 10px; }
  .hero__actions .btn { padding: 12px 20px; font-size: 12px; flex: 1; min-width: 0; }
  .hero__scroll    { bottom: 20px; }

  /* Grid collapse */
  .products         { grid-template-columns: 1fr; }
  .steps            { grid-template-columns: 1fr; }
  .caps             { grid-template-columns: 1fr; }
  .about__stats     { grid-template-columns: 1fr; }
  .contact__form    { grid-template-columns: 1fr; }
  .footer__cols     { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom   { flex-direction: column; gap: 8px; text-align: center; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   FADE-IN ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
