/* Home page (index.html) — sections in design order. Mobile below 768px. */
.hm { display: block; }

.hm-title {
  margin: 0;
  padding: 80px 16px;
  text-align: center;
  font: 700 var(--fs-h1)/1 var(--font-serif);
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* Shared primary CTA used over photos (78px, Lato 20 regular) */
.hm-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 78px;
  padding: 0 32px;
  border-radius: var(--radius-control);
  background: var(--brand-red);
  color: #fff;
  font: 400 20px/1.5 var(--font-sans);
  text-align: center;
  text-decoration: none;
  pointer-events: auto;
}
.hm-cta:hover { background: var(--brand-red-light); color: #fff; }
.hm-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 1 · Hero */
.hm-hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.hm-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }
.hm-hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 24px; color: #fff; }
.hm-hero__copy[hidden] { display: none; }
.hm-hero__title { margin: 0; font: 700 var(--fs-h1)/1.2 var(--font-serif); }

/* 2 + 4 · Carousels */
.hm-apps { position: relative; padding: 16px 16px 0; }
.hm-carousel { position: relative; }
.hm-tees { padding: 0 16px 16px; }
.hm-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.hm-row::-webkit-scrollbar { display: none; }
.hm-row.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.hm-tile { position: relative; flex: 0 0 500px; width: 500px; height: 500px; display: block; overflow: hidden; }
.hm-tile img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.hm-apps .hm-tile::after { content: ""; position: absolute; inset: 0; background: var(--thumb-gradient); }
.hm-tile__label {
  position: absolute; left: 0; right: 0; bottom: 60px; z-index: 1;
  text-align: center; color: #fff;
  font: 600 40px/1.2 var(--font-serif);
}
.hm-next {
  position: absolute; right: 16px; top: calc(50% + 8px); transform: translateY(-50%);
  width: 40px; height: 80px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hm-carousel .hm-next { right: 0; top: 50%; }
.hm-next:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }

/* 3 · #brand */
.hm-brand__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-feature { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; }
.hm-feature > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-feature::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(93, 112, 84, 0) 63%, rgba(93, 112, 84, 0.8) 100%);
}
.hm-feature__cover { position: absolute; inset: 0; z-index: 2; display: block; }
.hm-feature__body {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  padding: 40px 24px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
}
.hm-feature__title { margin: 0; color: #fff; font: 700 var(--fs-h2)/1.2 var(--font-serif); }

/* 5 · Ritual */
.hm-ritual {
  position: relative; margin-top: 4px; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 40px 24px; box-sizing: border-box; text-align: center;
}
.hm-ritual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-ritual__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); }
.hm-ritual .hm-feature__cover { z-index: 1; }
.hm-ritual__title {
  position: relative; z-index: 2; pointer-events: none; margin: 0; max-width: 720px;
  color: #fff; font: 700 var(--fs-h1)/1.2 var(--font-serif);
}
.hm-ritual .hm-cta { z-index: 2; }

/* 6 · Shop by colour */
.hm-colors { padding: 0 16px 65px; }
.hm-colors__switch { display: flex; gap: 24px; justify-content: center; align-items: center; margin-bottom: 40px; }
.hm-grid { display: grid; gap: 16px; }
.hm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
span.pc__swatch { cursor: default; }

/* 7 · Sets */
.hm-sets { padding: 0 16px 64px; }

/* Tablet: 4 cards get tight under ~1100px */
@media (max-width: 1100px) {
  .hm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}

/* Mobile (design system › Update 2026-11-08) */
@media (max-width: 767px) {
  .hm-title { padding: 48px 16px 40px; font-size: 40px; }
  .hm-tile { flex-basis: 280px; width: 280px; height: 280px; }
  .hm-tile__label { font-size: 28px; bottom: 32px; }
  .hm-brand__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-feature__title { font-size: 30px; }
  .hm-ritual__title { font-size: 40px; line-height: 1; }
  .hm-cta { min-height: 60px; padding: 0 20px; font-size: 18px; }
  .hm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .hm-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hm-sets { padding-bottom: 64px; }
  .hm .pc__name { font-size: 24px; padding-top: 12px; }
}
