/* The home page's top four sections (30 Nov 2026): his five category banners, the product row, his six
   label features and his six feature videos. Loaded on index.html only, after site.css and clean.css. */

/* ---------- category banners: his finished artwork, shown whole, one at a time ---------- */
.hban { background: #1C1E25; color: var(--on-dark); position: relative; }
.hban__track {
  list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 1983px;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.hban__track::-webkit-scrollbar { display: none; }
.hban__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; }
.hban__link { display: block; }
.hban__link img { display: block; width: 100%; height: auto; aspect-ratio: 1983 / 793; }
.hban__bar {
  margin: 0; padding: 14px var(--gutter) 0;
  max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto;
}
.hban__go {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border: 1.5px solid var(--on-dark); border-radius: 999px; color: var(--on-dark); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.02em;
  transition: background-color .2s ease, color .2s ease;
}
.hban__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hban__go:hover { background: var(--on-dark); color: var(--ink); }
.hban__bar { padding-bottom: 22px; }
.hban__controls {
  display: flex; align-items: center; gap: 8px;
  position: absolute; bottom: 24px; right: max(var(--gutter), calc((100vw - var(--content)) / 2));
}
.hban__controls[hidden] { display: none; }
.hban__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(245, 244, 240, 0.55);
  background: transparent; color: var(--on-dark); display: inline-grid; place-items: center; cursor: pointer;
}
.hban__btn:hover { border-color: var(--on-dark); background: rgba(245, 244, 240, 0.1); }
.hban__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hban__btn--play .hban__i-play { display: none; }
.hban__btn--play[aria-pressed="true"] .hban__i-pause { display: none; }
.hban__btn--play[aria-pressed="true"] .hban__i-play { display: block; fill: currentColor; }
.hban__dots { display: flex; gap: 2px; margin-inline: 4px; }
.hban__dot {
  width: 28px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  display: inline-grid; place-items: center;
}
.hban__dot::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: rgba(245, 244, 240, 0.4); transition: background-color .3s ease, width .3s ease; }
.hban__dot[aria-current="true"]::before { background: var(--yellow); width: 26px; }
@media (max-width: 640px) {
  .hban__bar { padding-top: 12px; }
  .hban__go { font-size: 1rem; padding: 8px 16px; }
  .hban__bar { padding-bottom: 8px; }
  .hban__controls { position: static; justify-content: center; padding: 0 var(--gutter) 14px; }
}

/* ---------- the product row: each whole card opens its page ---------- */
.prods { background: var(--tag-white); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.prods__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.prods__head h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; }
.prods__arrows { display: flex; gap: 8px; }
.prods__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
  color: var(--ink); display: inline-grid; place-items: center; cursor: pointer;
}
.prods__btn:hover { background: var(--ink); color: var(--tag-white); }
.prods__btn:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--ink); }
.prods__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.prods__btn--dark { border-color: var(--on-dark); color: var(--on-dark); }
.prods__btn--dark:hover { background: var(--on-dark); color: var(--ink); }
.prods__btn--dark:disabled { color: var(--on-dark); }
.prods__row, .vids__row {
  list-style: none; margin: 0; display: flex; gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  /* the row starts on the content edge and runs off the right of the screen */
  padding: 4px max(var(--gutter), calc((100vw - var(--content)) / 2)) 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--content)) / 2));
}
.prods__row::-webkit-scrollbar, .vids__row::-webkit-scrollbar { display: none; }
.prods__row > li { flex: 0 0 min(80vw, 400px); scroll-snap-align: start; }
.prod {
  display: block; text-decoration: none; color: var(--ink); border-radius: var(--cl-radius); overflow: hidden;
  background: #D9D9E0;
}
.prod img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.prod__name {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--face); padding: 16px 18px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.1;
}
.prod__name::after {
  content: ""; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); flex: 0 0 auto; margin-right: 4px; transition: transform .3s ease;
}
.prod:hover img { transform: scale(1.035); }
.prod:hover .prod__name { color: var(--teal); }
.prod:hover .prod__name::after { transform: translateX(4px) rotate(45deg); }

/* ---------- label features: his photograph, his heading beneath ---------- */
.feats { background: var(--lifted); padding: clamp(48px, 7vw, 88px) 0; }
.feats h2 { margin: 0 0 24px; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1; }
.feats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.feat { margin: 0; background: var(--face); border-radius: var(--cl-radius); overflow: hidden; }
.feat img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* his custom sizes photo is wider than 3:2: shown whole (his name on it stays), on the cloth's own greys */
.feat img[src*="custom-sizes"] { object-fit: contain; background: linear-gradient(#323133, #444243); }
.feat h3 { margin: 0; padding: 14px 18px 16px; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.15; }
@media (max-width: 639.98px) {
  .feats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feat h3 { padding: 10px 12px 12px; font-size: 1.08rem; }
}

/* ---------- feature videos: large stills; with JavaScript an auto-advancing carousel (2 Dec 2026) ---------- */
.vids { background: var(--graphite); color: var(--on-dark); padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); }
.vids h2 { color: var(--on-dark); }
.vids__row > li { flex: 0 0 min(62vw, 280px); scroll-snap-align: start; }
.vid { margin: 0; }
.vid__frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--cl-radius); overflow: hidden; background: #0E2F3B;
}
.vid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__play { position: absolute; inset: 0; display: block; }
.vid__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.vid__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); }
.vid__icon {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: var(--yellow); z-index: 1; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .25s ease;
}
.vid__icon::before { content: ""; position: absolute; left: 27px; top: 22px; border-left: 19px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vid__play:hover img { transform: scale(1.04); }
.vid__play:hover .vid__icon, .vid__play:focus-visible .vid__icon { transform: scale(1.08); }
.vid__t { margin: 14px 2px 0; font-size: 1.3rem; line-height: 1.15; color: var(--on-dark); }


/* the carousel: the centred video is the active one, its neighbours wait either side */
.vids--carousel .vids__row {
  padding-inline: calc(50% - min(62vw, 300px) / 2); scroll-padding-inline: 0; align-items: start;
}
.vids--carousel .vids__row > li { flex: 0 0 min(62vw, 300px); scroll-snap-align: center; }
.vids--carousel .vid { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); opacity: .45; transform: scale(.9); transform-origin: 50% 40%; }
.vids--carousel .vid.is-active { opacity: 1; transform: none; }
.vids--carousel .vid__t { text-align: center; }
.vid__preview {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity .6s ease;
}
.vid__preview.is-on { opacity: 1; }
.vids--carousel .vid.is-active .vid__icon { z-index: 3; opacity: 0; transition: opacity .3s ease, transform .25s ease; }
.vids--carousel .vid.is-active .vid__play:hover .vid__icon,
.vids--carousel .vid.is-active .vid__play:focus-visible .vid__icon,
.vids--carousel.is-paused .vid.is-active .vid__icon,
.vids--still .vid .vid__icon { opacity: 1; }
.vids--carousel .vid__play { z-index: 1; }
.vids--carousel .vid__play::after { z-index: 2; }
.vids__pause .vids__i-play { display: none; }
.vids__pause[aria-pressed="true"] .vids__i-pause { display: none; }
.vids__pause[aria-pressed="true"] .vids__i-play { display: block; fill: currentColor; }
.vids__pause[hidden] { display: none; }

/* one line per video under the row; the active one fills as its preview runs */
.vids__dots { display: flex; justify-content: center; gap: 6px; margin-top: 22px; padding: 0 var(--gutter); }
.vids__dots[hidden] { display: none; }
.vids__dot { width: 40px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; display: inline-grid; align-items: center; }
.vids__dot::before, .vids__fill { grid-area: 1 / 1; height: 3px; border-radius: 2px; }
.vids__dot::before { content: ""; background: rgba(245, 244, 240, 0.3); }
.vids__fill { width: 0; background: var(--yellow); }
.vids__dot[aria-current="true"] .vids__fill { width: 100%; }
.vids__dot.is-running .vids__fill { width: 0; animation: vids-fill 9s linear forwards; }
.vids.is-paused .vids__dot.is-running .vids__fill { animation-play-state: paused; }
@keyframes vids-fill { from { width: 0; } to { width: 100%; } }

/* the whole video, with sound */
.vplay { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.vplay::backdrop { background: rgba(10, 12, 16, .88); }
.vplay__box { position: relative; height: 100%; display: grid; place-items: center; padding: 56px 16px 24px; box-sizing: border-box; }
.vplay__frame { width: min(100%, calc((100vh - 96px) * 9 / 16)); aspect-ratio: 9 / 16; }
.vplay__frame iframe { width: 100%; height: 100%; border: 0; border-radius: var(--cl-radius); background: #000; }
.vplay__close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(245, 244, 240, .6); background: transparent; color: var(--on-dark); cursor: pointer;
  display: inline-grid; place-items: center;
}
.vplay__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (prefers-reduced-motion: reduce) {
  .hban__track, .prods__row, .vids__row { scroll-behavior: auto; }
  .prod img, .vid__play img, .prod__name::after, .vid__icon { transition: none; }
  .prod:hover img, .vid__play:hover img { transform: none; }
  .vids--carousel .vid { transition: none; }
}
