/* ── Zentanee homepage: the Tibeb Band hero and sections ───────────────
   Homepage-only layout on top of the site system in zent-tibeb.css (tokens,
   type, bands, buttons, modules, rails, steps). Loaded only by
   templates/store/index.html on body.zent-home-page. Prefix: .zh-  */

.zh-home { padding-bottom: 0; }

/* The hero headline's emphasised phrase carries the indigo thread. */
.zh-hero h1 em {
  font-style: normal;
  color: var(--zh-ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--zh-indigo);
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: none;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
/* Phone: headline, then the three pieces, then the truth + actions + ruler,
   so a product photo and the primary action are on screen before anyone scrolls. */
.zh-hero { position: relative; isolation: isolate; padding: 0 0 36px; }

/* The loom: loose indigo threads (Vanta NET, zent-motion.js) behind the
   swatches on wide screens with a fine pointer. The canvas paints cotton
   white, so the mask fades it into the page with no seam; the headline and
   the ruler keep plain cotton behind them. */
.zh-hero__loom { display: none; }
@media (min-width: 992px) {
  .zh-hero__loom {
    display: block;
    position: absolute;
    top: var(--zh-band-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1800ms var(--zh-ease);
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 74%), linear-gradient(180deg, transparent 6%, #000 40%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 30%, #000 74%), linear-gradient(180deg, transparent 6%, #000 40%);
    mask-composite: intersect;
  }
  .zh-hero__loom.is-live { opacity: 1; }
}
.zh-hero__inner {
  display: grid;
  grid-template-areas: "head" "swatches" "body";
  gap: 18px;
  padding-top: 22px;
}
.zh-hero__head { grid-area: head; }
.zh-hero__swatches { grid-area: swatches; }
.zh-hero__body { grid-area: body; display: flex; flex-direction: column; }
.zh-hero__body .zh-truth { order: 0; }
.zh-hero__body .zh-actions { order: 1; }
.zh-hero__body .zh-ruler { order: 2; }

.zh-hero h1 {
  margin: 0;
  font-family: var(--zh-display);
  font-weight: 700;
  font-size: clamp(27px, 7.3vw, 82px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 20ch;
}

.zh-truth {
  margin: 0;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--zh-ink-2);
}
.zh-hero .zh-ruler { margin-top: 18px; }
.zh-hero .zh-actions { margin-top: 14px; }
.zh-hero .zh-actions .zh-btn { flex: 1 1 0; min-width: 0; }

/* Swatches: three real pieces, cut cloth laid over the woven thread. */
.zh-swatches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px 0 0;
}
/* Scoped: the product page's colour chips share the .zh-swatch name
   (zent-tibeb-pages.css sets a 64px grid there). */
.zh-swatches .zh-swatch {
  position: relative;
  display: block;
  width: auto;
  aspect-ratio: 4 / 5;
}
.zh-swatches .zh-swatch__label { text-align: left; line-height: 1.4; overflow-wrap: normal; }
.zh-swatch::before {
  /* the under-layer is the thin band tile: cloth under cloth, colour stays in the weave */
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  background-repeat: repeat;
  background-size: auto 10px;
  z-index: 0;
}
.zh-swatch:nth-child(1) { z-index: 3; transform: translateY(14px); }
.zh-swatch:nth-child(2) { z-index: 2; margin-left: -22px; }
.zh-swatch:nth-child(3) { z-index: 1; margin-left: -22px; transform: translateY(26px); }
.zh-swatch img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--zh-ink);
  background: var(--zh-paper);
}
.zh-swatch__label {
  position: absolute;
  right: 0;
  bottom: -24px;
  z-index: 2;
  max-width: 100%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--zh-ink);
  color: var(--zh-paper);
}
.zh-swatch:hover img, .zh-swatch:focus-visible img { border-width: 3px; }
.zh-swatches__caption {
  margin: 34px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--zh-ink-2);
}
.zh-swatches__caption strong { color: var(--zh-ink); font-weight: 600; }
.zh-swatches--empty {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 2px dashed var(--zh-ink);
  color: var(--zh-ink-2);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* Collections: a list, not a grid of cards. */
.zh-collections { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--zh-ink); }
.zh-collections li { border-bottom: 2px solid var(--zh-ink); }
.zh-collection {
  display: grid;
  grid-template-columns: 1fr auto 56px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  color: var(--zh-ink);
}
.zh-collection__name {
  font-family: var(--zh-display);
  font-weight: 700;
  font-size: clamp(20px, 5vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.zh-collection__count { font-size: 13px; color: var(--zh-ink-2); white-space: nowrap; }
.zh-collection__swatch { width: 56px; height: 56px; object-fit: cover; border: 2px solid var(--zh-ink); background: var(--zh-paper); display: block; }
.zh-collection__swatch--empty { display: block; width: 56px; height: 56px; border: 2px solid var(--zh-ink); background: transparent; }
.zh-collection:hover .zh-collection__name { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.12em; }

/* Brands: one line of names, ink diamonds between. */
.zh-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.zh-brands li { display: inline-flex; align-items: center; gap: 14px; }
.zh-brands a { font-family: var(--zh-display); font-weight: 600; font-size: 15px; color: var(--zh-ink); letter-spacing: -0.01em; }
.zh-brands a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--zh-indigo); text-underline-offset: 0.14em; }
.zh-brands li + li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--zh-ink);
  transform: rotate(45deg);
  display: inline-block;
}

/* Telegram: one honest row. */
.zh-channel {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 26px 0 36px;
}
.zh-channel h2 { margin: 0 0 6px; font-family: var(--zh-display); font-weight: 700; font-size: clamp(20px, 4vw, 30px); letter-spacing: -0.02em; }
.zh-channel p { margin: 0; color: var(--zh-ink-2); font-size: 15px; line-height: 1.5; max-width: 52ch; }
.zh-channel .zh-btn { justify-self: start; }

/* ── Tablet and up ─────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .zh-hero { padding-bottom: 48px; }
  .zh-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head head" "body swatches";
    column-gap: 48px;
    row-gap: 28px;
    align-items: start;
    padding-top: 40px;
  }
  .zh-hero__body { display: block; }
  .zh-hero h1 { font-size: clamp(44px, 5.6vw, 82px); }
  .zh-truth { font-size: 18px; }
  .zh-hero .zh-ruler { margin-top: 20px; }
  .zh-hero .zh-actions { margin-top: 22px; }
  .zh-hero .zh-actions .zh-btn { flex: 0 0 auto; }
  .zh-swatches { padding-top: 6px; }
  .zh-swatch:nth-child(1) { transform: translateY(28px); }
  .zh-swatch:nth-child(3) { transform: translateY(56px); }
  .zh-swatches__caption { margin-top: 92px; }
  .zh-collection { grid-template-columns: 1fr auto 72px; padding: 18px 0; }
  .zh-collection__swatch, .zh-collection__swatch--empty { width: 72px; height: 72px; }
  .zh-channel { grid-template-columns: 1fr auto; }
}

@media (min-width: 1200px) {
  .zh-hero__inner { column-gap: 72px; padding-top: 48px; }
}

/* Amharic: the display headline needs more leading in Ethiopic. */
html[lang="am"] body.zent-home-page .zh-hero h1 { line-height: 1.15; letter-spacing: 0; }
