/* =========================================================================
   Home — same vocabulary as the About page (labels, ab-h2 headings, rounded
   26px cards: amber / ink / surface, stage + list, dark tabbed card) plus
   extra motion and gimmicks. Loaded last.
   ========================================================================= */
.hm-sec { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hm-head { display: grid; gap: .9rem; margin-bottom: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem); }
.hm-head .ab-h2 { max-width: 22ch; }
/* amber underline sweeps in under the emphasised word */
.hm-sec .ab-h2 em { background: linear-gradient(var(--amber), var(--amber)) 0 94% / 0 .12em no-repeat; transition: background-size 1s cubic-bezier(.16,1,.3,1) .6s; }
.hm-sec .ab-h2.is-inview em { background-size: 100% .12em; }

/* ---------- hero extras ---------- */
.hm-badge { position: absolute; z-index: 4; right: max(var(--gutter), calc((100vw - var(--container)) / 2)); top: calc(var(--dh-h, 60px) + var(--dh-inset, 20px) + 1.75rem); width: clamp(88px, 8vw, 128px); }
@media (max-width: 767.98px) { .hm-badge { display: none; } }

/* ---------- WHY ---------- */
.hm-why__grid { display: grid; gap: 1.25rem; }
.hm-why__img { margin: 0; border-radius: 26px; overflow: hidden; background: var(--surface-2); box-shadow: 0 40px 80px -50px rgba(0,0,0,.45); }
.hm-why__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease); }
.hm-why__img:hover img { transform: scale(1.05); }
.hm-why__cards { display: grid; gap: 1.25rem; }
.hm-card { position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 2.5rem; min-height: 15rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 26px; transition: transform .6s var(--ease), box-shadow .6s; }
.hm-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(0,0,0,.5); }
.hm-card--amber { background: var(--amber); }
.hm-card--ink { background: var(--ink); }
.hm-card--surface { background: var(--surface); border: 1px solid var(--line); }
.hm-card--amber::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.45), transparent 65%) !important; }
.hm-card__n { position: absolute; right: -.04em; bottom: -.2em; font-weight: 700; font-size: clamp(8rem, 6rem + 8vw, 14rem); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(34,34,34,.2); pointer-events: none; transition: transform .8s var(--ease); }
.hm-card--ink .hm-card__n { -webkit-text-stroke-color: rgba(255,255,255,.18); }
.hm-card:hover .hm-card__n { transform: translate(-.6rem, -.6rem) scale(1.04); }
.hm-card__body { position: relative; z-index: 1; display: grid; gap: .75rem; align-content: end; max-width: 34ch; }
.hm-card h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem) !important; letter-spacing: -.035em; line-height: 1.12; font-weight: 600; }
.hm-card p { margin: 0; font-size: .98rem; line-height: 1.65; }
.hm-card__sub { font-weight: 600; letter-spacing: -.02em; }
.hm-card--amber h3, .hm-card--amber p { color: var(--ink); }
.hm-card--ink h3 { color: #fff; }
.hm-card--ink p { color: var(--on-dark); }
.hm-card--surface h3 { color: var(--ink); }
@media (min-width: 900px) {
  .hm-why__grid { grid-template-columns: .75fr 1.25fr; gap: 1.25rem; align-items: start; }
  .hm-why__img { position: sticky; top: calc(var(--header-h) + 40px); }
  .hm-why__img img { aspect-ratio: 4 / 5; }
  .hm-why__cards { grid-template-columns: 1fr 1fr; }
}

/* ---------- PRODUCTS (stage + list, same as About › Brands) ---------- */
.hm-prod { background: var(--surface); }
.hm-prod .ab2-br__fig { padding: 0; }
.hm-prod .ab2-br__fig img { width: 100%; height: 100%; object-fit: cover; }
.hm-prod .ab2-br__cap { z-index: 2; padding: .45rem .75rem; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); left: 1rem; right: 1rem; bottom: 1rem; }

/* ---------- TESTIMONIAL (dark card + tabs, same as About › Philosophy) ---------- */
.hm-t__card { position: relative; isolation: isolate; overflow: hidden; display: grid; border-radius: 26px; background: var(--ink); color: var(--on-dark); }
.hm-t__photos { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.hm-t__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 1s cubic-bezier(.16,1,.3,1), transform 1.6s cubic-bezier(.16,1,.3,1); transform: scale(1.12); }
.hm-t__photos img.is-on { clip-path: inset(0); transform: scale(1); z-index: 1; }
.hm-t__main { display: grid; gap: 1.5rem; align-content: start; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.hm-t__tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.hm-t__tabs button { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 1rem .35rem .35rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.78); font-size: .9rem; transition: background .3s, color .3s, border-color .3s; }
.hm-t__tabs img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
.hm-t__tabs button:hover { border-color: var(--amber); color: #fff; }
.hm-t__tabs button[aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.hm-t__tabs button[aria-selected="true"] img { filter: none; }
.hm-t__panels { display: grid; }
.hm-t__panel { grid-area: 1 / 1; margin: 0; display: grid; gap: 1.5rem; align-content: start; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .5s, transform .7s var(--ease), visibility 0s .5s; }
.hm-t__panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s .1s, transform .9s var(--ease) .1s, visibility 0s; }
.hm-t__panel blockquote { margin: 0; }
.hm-t__panel blockquote p { margin: 0 0 .8em; color: rgba(255,255,255,.88); font-size: clamp(1rem, .92rem + .4vw, 1.2rem); line-height: 1.7; letter-spacing: -.01em; }
.hm-t__panel blockquote mark { background: none; color: var(--amber); font-weight: 600; }
.hm-t__panel em { font-style: normal; color: #fff; font-weight: 600; }
.hm-t__panel figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.16); }
.hm-t__panel figcaption strong { color: #fff; font-size: 1.1rem; letter-spacing: -.02em; }
.hm-t__panel figcaption span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hm-t__timer { height: 2px; background: rgba(255,255,255,.14); overflow: hidden; border-radius: 2px; }
.hm-t__timer i { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.hm-t__timer.run i { animation: hmtimer 10s linear forwards; }
@keyframes hmtimer { to { transform: scaleX(1); } }
@media (min-width: 900px) {
  .hm-t__card { grid-template-columns: 340px 1fr; }
  .hm-t__photos { aspect-ratio: auto; min-height: 100%; }
}

/* ---------- difference / calculator keep their original look; spotlight ---------- */
.hq__panel, .cx__panel { isolation: isolate; }
.hq__panel[data-spot]::after, .cx__panel[data-spot]::after { display: block !important; }

/* ---------- gimmicks: cursor ring ---------- */
.hm-ring { position: fixed; left: 0; top: 0; z-index: 300; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid #fff; border-radius: 50%; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s; will-change: transform; }
.hm-ring.on { opacity: 1; }
.hm-ring.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: #fff; }
@media (hover: none) { .hm-ring { display: none; } }
@media (prefers-reduced-motion: reduce) { .hm-t__timer.run i { animation: none; } .hm-card, .hm-card__n { transition: none; } }

/* =========================================================================
   TESTIMONIAL — open layout (no card), kept on request.
   ========================================================================= */

/* ---------- TESTIMONIAL: open, no card ---------- */
.hm-t__card { background: none; color: var(--text); border-radius: 0; overflow: visible; gap: clamp(1.5rem, 3vw, 3.5rem); }
.hm-t__photos { aspect-ratio: 4 / 3; border-radius: 4px; background: var(--surface-2); }
.hm-t__main { padding: 0; gap: 1.25rem; }
.hm-t__tabs { gap: clamp(1rem, 2.5vw, 2rem); border-bottom: 1px solid var(--line-strong); }
.hm-t__tabs button { padding: 0 0 .85rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; color: var(--muted); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; background: none; }
.hm-t__tabs button:hover { color: var(--ink); border-color: var(--ink); }
.hm-t__tabs button[aria-selected="true"] { background: none; color: var(--ink); border-color: var(--amber); }
.hm-t__tabs img { width: 28px; height: 28px; }
.hm-t__panel blockquote p { color: var(--text); font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.7; }
.hm-t__panel blockquote mark { color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--amber) 60%, transparent) 62%); font-weight: 600; }
.hm-t__panel em { color: var(--ink); }
.hm-t__panel figcaption { border-top-color: var(--line-strong); }
.hm-t__panel figcaption strong { color: var(--ink); }
.hm-t__panel figcaption span { color: var(--muted); }
.hm-t__timer { background: var(--line-strong); }
@media (min-width: 900px) { .hm-t__card { grid-template-columns: 320px 1fr; align-items: start; } .hm-t__photos { aspect-ratio: 4 / 5; min-height: 0; } }

/* ---------- Hero slide card: compact, no dead space ---------- */
.hx .hx__card { width: auto; max-width: min(400px, calc(100vw - 2.5rem)); padding: .5rem; gap: .75rem; align-items: stretch; }
.hx .hx__next { flex: 0 0 150px; aspect-ratio: 4 / 3; border-radius: 8px; }
.hx .hx__card-body { flex: 0 1 auto; justify-content: center; gap: .6rem; padding: .35rem .5rem .35rem .25rem; min-width: 0; }
.hx .hx__card .xcount { font-size: 1.5rem; line-height: 1; }
.hx .hx__card .hero__progress { height: 2px; }
.hx .hx__card .hero__controls { gap: .4rem; }
.hx .hx__card .icon-btn { width: 36px; height: 36px; }
@media (max-width: 480px) { .hx .hx__card { max-width: calc(100vw - 2rem); } .hx .hx__next { flex-basis: 120px; } }

/* ---------- Why: photo spans exactly the height of the 4 cards ---------- */
@media (min-width: 900px) {
  .hm-why__grid { align-items: stretch; }
  .hm-why__img { position: relative; top: auto; height: 100%; min-height: 0; }
  .hm-why__img img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}
@media (min-width: 900px) { .hm-why__img { background: var(--surface); border: 1px solid var(--line); box-shadow: none; } .hm-why__img img { mix-blend-mode: multiply; } }
