/* Home page (front-page.php). Scoped to .hx (hero) and .hm-* sections only.
   Direction: Spec Sheet. Hairline rules, mono labels, one blue accent, real garments. */

/* ---------- hero: the 5-second screen ---------- */
.hx { position: relative; padding-block: clamp(20px, 3.4vw, 44px) clamp(36px, 4.4vw, 60px); background: var(--bg); border-bottom: 1px solid var(--rule); }
.hx-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 4.4vw, 64px); align-items: center; }
.hx-copy { min-width: 0; }

.hx-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 18px; font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.hx-sep { color: var(--rule-strong); }
.hx-where { white-space: nowrap; }
.hx-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }

.hx-title { font-size: clamp(2rem, 3.35vw, 3.05rem); line-height: 1.03; letter-spacing: -0.03em; max-width: 20ch; }
.hx-lede { margin: 18px 0 0; max-width: 50ch; font-size: clamp(1.02rem, 1.25vw, 1.12rem); line-height: 1.55; color: var(--ink-2); }

.hx-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* how it works, as a spec row */
.hx-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.hx-spec > div { padding: 12px 12px 12px 0; min-width: 0; }
.hx-spec > div + div { padding-left: 12px; border-left: 1px solid var(--rule); }
.hx-spec dt { font: 600 clamp(1.12rem, 1.6vw, 1.4rem)/1.05 var(--f-display); letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.hx-spec dd { margin: 5px 0 0; font-size: .8rem; line-height: 1.35; color: var(--ink-2); }

.hx-proof { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hx-proof a { display: inline-flex; align-items: center; gap: 5px; font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.hx-proof a:hover { color: var(--accent-ink); }
.hx-proof .icon { color: var(--ok); }

/* what items: a line sheet of real catalog garments */
.hx-board { min-width: 0; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.hx-board-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule-strong); font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); }
.hx-board-head > span:first-child { color: var(--ink); }
.hx-board-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); }
.hx-board-grid li { background: var(--surface); min-width: 0; }
.hx-board-grid a { position: relative; display: block; aspect-ratio: 1 / 1.08; text-decoration: none; color: var(--ink); outline-offset: -2px; }
.hx-board-grid img { position: absolute; left: 10%; top: 6%; width: 80%; height: 72%; object-fit: contain; transition: transform .45s var(--ease); }
.hx-cell-meta { position: absolute; left: 8px; right: 8px; bottom: 7px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.hx-cell-meta b { font: 600 .8rem/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-cell-meta small { font: 500 .6rem/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-2); flex: none; }
.hx-board-grid a:hover img { transform: translateY(-3px) scale(1.04); }
.hx-board-grid a:hover b { color: var(--accent-ink); }
.hx-board-foot { margin: 0; padding: 9px 14px; border-top: 1px solid var(--rule-strong); font-size: .78rem; color: var(--ink-2); }

/* 901 to 1080: narrower board column; the 4 x 3 sheet sizing lives in 30-home.css. */
@media (max-width: 1080px) {
  .hx-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
}

/* Phone and small tablet: copy flows around a one-row garment strip so items show above the fold. */
@media (max-width: 900px) {
  .hx-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hx-copy { display: contents; }
  .hx-kicker { order: 1; }
  .hx-title { order: 2; max-width: 20ch; }
  .hx-lede { order: 3; }
  .hx-board { order: 4; margin-top: 20px; border-radius: 10px; box-shadow: none; }
  .hx-cta { order: 5; }
  .hx-spec { order: 6; }
  .hx-proof { order: 7; }
  .hx-board-head, .hx-board-foot { display: none; }
  .hx-board-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hx-board-grid::-webkit-scrollbar { display: none; }
  .hx-board-grid li { display: block; flex: 0 0 clamp(96px, 26vw, 150px); scroll-snap-align: start; }
  .hx-board-grid a { aspect-ratio: 1 / 1.12; }
  .hx-cell-meta small { display: none; }
}
@media (max-width: 560px) {
  /* Two deliberate lines (who / where + since) instead of a slash orphaned at the line end. */
  .hx-kicker { font-size: .66rem; gap: 4px 7px; margin-bottom: 12px; }
  .hx-sep-1 { display: none; }
  .hx-where { flex-basis: 100%; padding-left: 15px; }
  .hx-title { font-size: clamp(1.8rem, 8.2vw, 2.2rem); }
  .hx-lede { margin-top: 12px; font-size: 1rem; }
  .hx-board { margin-top: 16px; }
  .hx-cta { margin-top: 16px; }
  .hx-cta .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; white-space: nowrap; }
  .hx-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
  .hx-spec > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hx-spec > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .hx-spec dd { font-size: .76rem; }
}
/* ---------- shared section head ---------- */
.hm-head { display: grid; gap: 0; max-width: 820px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.hm-head .display { font-size: clamp(1.65rem, 3.1vw, 2.5rem); }
.hm-head .lede { margin-top: 12px; }
.hm-num { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.hm-num > span { color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--rule-strong); }
.hm-certs .hm-num > span { padding-left: 0; border-left: 0; }

/* ---------- 01 what we make ---------- */
.hm-sports .sport { aspect-ratio: 3 / 3.4; border-radius: 10px; }
.hm-custom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; margin-top: 20px; padding: clamp(18px, 2.6vw, 28px); background: var(--surface); border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent); border-radius: 10px; }
.hm-custom h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.hm-custom p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }
.hm-strip { margin: 0; }
.hm-custom-cta { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1080px) {
  .hm-custom { grid-template-columns: minmax(0, 1fr) auto; }
  .hm-strip { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .hm-custom { grid-template-columns: minmax(0, 1fr); }
  .hm-strip { grid-row: auto; }
  .hm-custom-cta { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- 01b most ordered garment types ---------- */
.hm-top { margin-top: clamp(24px, 3.2vw, 36px); }
.hm-top-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.hm-top-head h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.hm-top-head p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.hm-top-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.hm-top-grid li { background: var(--surface); min-width: 0; }
.hm-top-grid a { position: relative; display: block; aspect-ratio: 1 / 1.1; overflow: hidden; text-decoration: none; color: var(--ink); outline-offset: -2px; }
.hm-top-grid img { position: absolute; left: 10%; top: 6%; width: 80%; height: 72%; object-fit: contain; transition: transform .45s var(--ease); -webkit-user-drag: none; user-select: none; }
.hm-top-meta { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.hm-top-meta b { font: 600 .92rem/1.15 var(--f-display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-top-meta svg { flex: none; color: var(--accent-ink); transition: transform .3s var(--ease); }
.hm-top-grid a:hover b, .hm-top-grid a:focus-visible b { color: var(--accent-ink); }
.hm-top-grid a:hover img { transform: translateY(-3px) scale(1.04); }
.hm-top-grid a:hover svg { transform: translateX(3px); }
@media (max-width: 900px) { .hm-top-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hm-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-top-meta { left: 10px; right: 10px; bottom: 8px; }
  .hm-top-meta b { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-top-grid img, .hm-top-meta svg { transition: none; }
  .hm-top-grid a:hover img, .hm-top-grid a:hover svg { transform: none; }
}

/* ---------- 02 how it works ---------- */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.hm-steps li { min-width: 0; padding: 18px 20px 4px 0; }
.hm-steps li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.hm-steps img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: var(--surface-2); margin-bottom: 14px; }
.hm-step-n { display: block; font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.hm-steps h3 { font-size: 1.12rem; }
.hm-steps p { margin: 8px 0 0; font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
.hm-terms { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--ink-2); }
.hm-terms b { font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-right: 10px; }
@media (max-width: 960px) {
  .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hm-steps li:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 8px; }
}
@media (max-width: 560px) {
  .hm-steps { grid-template-columns: minmax(0, 1fr); }
  .hm-steps li, .hm-steps li + li { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-left: 0; margin-top: 0; }
  .hm-steps li + li { border-top: 1px solid var(--rule); }
  .hm-steps img { grid-row: 1 / span 3; margin: 0; aspect-ratio: 1; }
  .hm-step-n { margin-bottom: 4px; }
  .hm-steps p { margin-top: 4px; }
}

/* ---------- 03 pricing basis ---------- */
.hm-basis { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-basis li { display: grid; align-content: start; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 8px; min-width: 0; }
.hm-basis b { font: 600 1rem/1.2 var(--f-display); }
.hm-basis span { font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
/* The sitewide tier tip (.tier-tip) already explains the clickable rows; hide the home duplicate. */
#pricing .hm-tier-tip { display: none; }
.hm-demo-label { margin: 0 0 10px; font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 960px) { .hm-basis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hm-basis { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 04 why our factory ---------- */
.hm-factory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.hm-chain table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.hm-chain thead th { padding: 10px 0; text-align: left; font: 500 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); }
.hm-chain thead th:last-child, .hm-chain td { text-align: right; }
.hm-chain tbody th, .hm-chain td { padding: 11px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.hm-chain tbody th { text-align: left; font-weight: 600; }
.hm-chain tbody th span { display: inline-block; width: 30px; font: 500 .72rem/1 var(--f-mono); color: var(--ink-2); }
.hm-chain tbody th a { color: var(--ink); text-decoration: none; }
.hm-chain tbody th a:hover { color: var(--accent-ink); text-decoration: underline; }
.hm-chain td { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding-left: 12px; }
.hm-chain tr.is-in td { color: var(--ink); }
.hm-chain tr.is-out td { color: var(--accent-ink); }
.hm-why { display: grid; gap: 20px; min-width: 0; }
.hm-why .media { box-shadow: none; border: 1px solid var(--rule); border-radius: 10px; }
.hm-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.hm-points li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.hm-points b { font: 600 .98rem/1.3 var(--f-display); }
.hm-points span { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.hm-certs { margin-top: clamp(28px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--rule); }
.hm-certs .hm-num { margin-bottom: 0; }
@media (max-width: 860px) { .hm-factory { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .hm-points li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hm-chain td { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-board-grid img { transition: none; }
  .hx-board-grid a:hover img { transform: none; }
}
