/* ==========================================================================
   HOME (#/) — pages/home.js. Every class is prefixed .hm-   (v2 · product-first)
   Tokens only (see css/nt.css). --signal is used for small marks only.
   Product photos always sit on #fff tiles (made for white), in both themes —
   the same exception nt.css makes for .prod-card__media and logo plates.
   ========================================================================== */

/* ---------------- hero ---------------- */
.hm-hero { position: relative; isolation: isolate; padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 84px); }
.hm-hero::before {
  /* drafting-paper grid, fading out toward the copy */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(221,227,242,.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221,227,242,.7) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 70%);
          mask-image: linear-gradient(100deg, transparent 18%, #000 70%);
}
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hm-hero__copy { display: grid; gap: 22px; align-content: start; }
.hm-hero__title { font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: .92; margin-top: 4px; }
.hm-hero__title .accent { display: block; }
.hm-hero__copy .lede { max-width: 50ch; }
.hm-hero__cta { margin-top: 4px; }

.hm-search {
  display: flex; align-items: center; gap: 6px; max-width: 580px;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--radius);
  padding: 4px 4px 4px 14px; transition: border-color .15s, box-shadow .15s;
}
.hm-search:hover { border-color: var(--ink-3); }
.hm-search:focus-within { border-color: var(--blue-text); box-shadow: 0 0 0 3px var(--blue-soft); }
.hm-search__icon { color: var(--ink-3); display: grid; }
.hm-search__icon svg { width: 20px; height: 20px; }
.hm-search__input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; color: var(--ink); font: 400 1rem/1.3 var(--font-body); padding: 0 4px; }
.hm-search__input:focus { outline: none; }
.hm-search__input::placeholder { color: var(--ink-4); }
.hm-search__input::-webkit-search-cancel-button { filter: grayscale(1); }
.hm-search__go { min-height: 44px; }

.hm-quick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: -8px; max-width: 600px; }
.hm-quick .mono { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.hm-quick__a { font: 500 .8rem/1.6 var(--font-mono); color: var(--ink-2); border-bottom: 1px dashed var(--line-2); transition: color .15s, border-color .15s; }
.hm-quick__a:hover { color: var(--blue-text); border-color: var(--blue-text); }

/* drawing sheet: view + title block */
.hm-sheet {
  margin: 0; position: relative; padding: 10px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  background-image:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 44px);
  background-size: 100% 6px, 100% 6px; background-position: 0 0, 0 100%; background-repeat: no-repeat;
}
.hm-sheet__view { position: relative; aspect-ratio: 1 / .92; border: 1.5px solid var(--ink-2); border-bottom: 0; overflow: hidden; background: var(--line-2); }

/* product mosaic inside the sheet: big tile + five around it, hairlines between */
.hm-mo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1px; height: 100%; }
.hm-mo.n3 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.hm-mo.n4 > :nth-child(4) { grid-column: 1 / -1; }
.hm-mo.n5 > :nth-child(5) { grid-column: span 2; }
.hm-mo.is-photo { display: block; }
.hm-mo.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.hm-mo__tile { position: relative; display: block; min-width: 0; min-height: 0; background: #fff; overflow: hidden; animation: hm-in .6s var(--ease) both; animation-delay: calc(.15s + var(--i, 0) * .06s); }
.hm-mo__tile.is-big { grid-column: span 2; grid-row: span 2; }
.hm-mo__tile img { position: absolute; inset: 8% 10% 24%; width: 80%; height: 68%; object-fit: contain; transition: transform .5s var(--ease); }
.hm-mo__tile.is-big img { inset: 6% 12% 16%; width: 76%; height: 78%; }
.hm-mo__tile:hover img { transform: scale(1.05); }
.hm-mo__tile:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
.hm-mo__cap {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  display: grid; gap: 1px; padding: 5px 8px 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 2px;
  box-shadow: 0 1px 0 var(--line);
}
.hm-mo__name { font: 600 .78rem/1.2 var(--font-body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-mo__n { font: 500 .6rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-mo__tile.is-big .hm-mo__cap { left: 14px; bottom: 14px; padding: 8px 12px 9px; }
.hm-mo__tile.is-big .hm-mo__name { font: 600 1.35rem/1 var(--font-display); text-transform: uppercase; }
.hm-mo__tile.is-big .hm-mo__n { font-size: .66rem; margin-top: 3px; }
.hm-mo__tile:hover .hm-mo__cap { border-color: var(--blue-text); }
.hm-mo__tile:hover .hm-mo__name { color: var(--blue-text); }
@keyframes hm-in { from { opacity: 0; transform: scale(.97); } }

/* title block */
.hm-tb { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1.5px solid var(--ink-2); }
.hm-tb__cell { grid-column: span 2; display: grid; gap: 3px; align-content: start; padding: 9px 12px 11px; background: var(--surface); min-width: 0; }
.hm-tb__cell.is-wide { grid-column: span 4; }
.hm-tb__cell.is-full { grid-column: 1 / -1; }
.hm-tb__k { font: 500 .64rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hm-tb__v { display: inline-flex; align-items: center; gap: 4px; font: 600 2.1rem/.95 var(--font-display); text-transform: uppercase; color: var(--ink); margin-top: 4px; }
.hm-tb__star { display: inline-grid; color: var(--signal); }
.hm-tb__star svg { width: .55em; height: .55em; }
.hm-tb__s { font-size: .78rem; line-height: 1.3; color: var(--ink-3); }
.hm-tb__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; background: var(--surface); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------------- pipe band ---------------- */
.hm-pipe .pipe { height: 50px; }

/* ---------------- what we sell ---------------- */
.hm-sell { padding-bottom: clamp(40px, 6vw, 80px); }
.hm-jump { display: flex; gap: 8px; margin-bottom: clamp(8px, 2vw, 16px); overflow-x: auto; scrollbar-width: none; }
.hm-jump::-webkit-scrollbar { display: none; }
.hm-jump__b {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 14px 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  font: 600 .95rem/1 var(--font-body); transition: border-color .15s, color .15s, background .15s;
}
.hm-jump__b:hover { border-color: var(--blue-text); color: var(--blue-text); }
.hm-jump__ic { display: grid; color: var(--blue-text); }
.hm-jump__ic svg { width: 20px; height: 20px; }
.hm-jump__n { font: 600 .68rem/1 var(--font-mono); padding: 4px 6px; border-radius: 2px; background: var(--blue-soft); color: var(--blue-text); }

.hm-dept { padding-top: clamp(28px, 3.5vw, 44px); scroll-margin-top: calc(var(--header-h) + 12px); }
.hm-dept + .hm-dept { margin-top: clamp(12px, 2vw, 24px); }
.hm-dept__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title nav" "cats nav";
  gap: 12px 24px; align-items: end; padding-top: 18px; margin-bottom: 20px; border-top: 1.5px solid var(--ink-2);
}
.hm-dept__title { grid-area: title; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.hm-dept__ic { display: grid; color: var(--blue-text); }
.hm-dept__ic svg { width: 34px; height: 34px; }
.hm-dept__title .h2 a { transition: color .15s; }
.hm-dept__title .h2 a:hover { color: var(--blue-text); }
.hm-dept__meta { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); padding-top: 6px; }
.hm-dept__cats { grid-area: cats; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hm-dept__cat { font-size: .92rem; color: var(--ink-2); border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.hm-dept__cat:hover { color: var(--blue-text); border-color: currentColor; }
.hm-dept__nav { grid-area: nav; display: flex; align-items: center; gap: 18px; }
.hm-dept__btns { display: flex; gap: 6px; }
.hm-dept__btn { border: 1px solid var(--line-2); background: var(--surface); }
.hm-dept__btn:hover:not(:disabled) { border-color: var(--ink); background: var(--surface); }
.hm-dept__btn:disabled { opacity: .35; cursor: default; }
.hm-dept.is-static .hm-dept__btns { display: none; }

.hm-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 4.6); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 14px; margin-inline: -2px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.hm-rail:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 4px; }
.hm-rail::-webkit-scrollbar { height: 6px; }
.hm-rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.hm-rail__item { display: grid; min-width: 0; scroll-snap-align: start; }
.hm-rail__item > .prod-card { height: 100%; grid-template-rows: auto 1fr; }
/* nt.css .prod-card__media relies on aspect-ratio; pin the img so a tall photo can't stretch the box */
.hm .prod-card { grid-template-columns: minmax(0, 1fr); } /* a wide logo strip must not widen the card's track */
.hm .prod-card__media { min-height: 0; }
.hm .prod-card__logos { overflow: hidden; }
.hm .prod-card__logo:nth-child(n+4), .hm .prod-card__more { display: none; }
.hm .prod-card__media img { position: absolute; inset: 0; }
.hm-rail__item > .prod-card:hover { transform: translateY(-2px); }

.hm-rail__end {
  display: grid; grid-template-rows: auto auto auto 1fr; gap: 6px; align-content: start; padding: 0 0 16px;
  background: var(--blue-soft); border: 1px solid transparent; border-radius: var(--radius-lg); overflow: hidden; color: var(--ink); transition: border-color .2s;
}
.hm-rail__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; aspect-ratio: 1; background: var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hm-rail__thumbs > img { min-height: 0; aspect-ratio: 1; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 10%; }
.hm-rail__end .mono { padding-inline: 16px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-text); }
.hm-rail__end b { padding-inline: 16px; font: 600 1.5rem/1 var(--font-display); text-transform: uppercase; }
.hm-rail__go { align-self: end; padding-inline: 16px; color: var(--blue-text); display: flex; }
.hm-rail__go svg { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.hm-rail__end:hover { border-color: var(--blue-text); }
.hm-rail__end:hover .hm-rail__go svg { transform: translateX(5px); }

/* category tile — fallback while a department's product photos land */
.hm-ctile { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: var(--ink); transition: border-color .2s, box-shadow .25s var(--ease); }
.hm-ctile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.hm-ctile__media { position: relative; min-height: 0; display: grid; place-items: center; aspect-ratio: 1; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); color: var(--ink-4); }
.hm-ctile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hm-ctile__media svg { width: 40%; height: 40%; }
.hm-ctile:hover .hm-ctile__media img { transform: scale(1.04); }
.hm-ctile__body { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }

/* ---------------- brand wall ---------------- */
.hm-bw__grid {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden;
}
.hm-bw__cell { position: relative; display: grid; grid-template-rows: 92px auto; background: var(--surface); min-width: 0; transition: box-shadow .15s; }
.hm-bw__plate { display: grid; place-items: center; background: #fff; padding: 14px 16px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hm-bw__plate img { max-height: 48px; max-width: 76%; object-fit: contain; transition: transform .3s var(--ease); }
.hm-bw__plate.is-lowres { padding: 4px; }
.hm-bw__plate.is-lowres img { height: 84px; width: auto; max-height: none; max-width: 100%; mix-blend-mode: multiply; }
.hm-bw__word { font: 700 1.5rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; color: #2b3f8f; }
.hm-bw__cap { display: grid; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.hm-bw__cap b { font-weight: 600; font-size: .94rem; line-height: 1.25; }
.hm-bw__cap span { font: 500 .64rem/1.45 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hm-bw__cap span.is-n { color: var(--blue-text); font-weight: 600; }
.hm-bw__cell:hover, .hm-bw__cell:focus-visible { z-index: 1; box-shadow: inset 0 0 0 2px var(--blue-text); outline: none; }
.hm-bw__cell:hover .hm-bw__plate img { transform: scale(1.05); }
.hm-bw__cell:hover .hm-bw__cap b { color: var(--blue-text); }
.hm-bw__ask { grid-column: span var(--r8, 1); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 20px; background: var(--blue-soft); color: var(--blue-text); transition: background .15s; min-width: 0; }
.hm-bw__ask .mono { text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; opacity: .85; }
.hm-bw__ask b { font: 600 1.35rem/1.05 var(--font-display); text-transform: uppercase; color: var(--ink); }
.hm-bw__askp { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; }
.hm-bw__askp svg { width: 18px; height: 18px; flex: none; }
.hm-bw__ask:hover { background: #f0f3fc; }
.hm-bw__ask:hover b { color: var(--blue-text); }
.hm-bw__ask:focus-visible { outline: 2px solid var(--blue-text); outline-offset: -2px; }

/* ---------------- Kerala water → product pointers ---------------- */
.hm-kl__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hm-kl__grid.no-fig { grid-template-columns: minmax(0, 1fr); }
.hm-kl__fig { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); padding: 12px 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hm-kl__fig figcaption { margin-top: 6px; font-size: .66rem; color: var(--ink-3); letter-spacing: .04em; }
.hm-head { width: 100%; max-width: 420px; display: block; margin-inline: auto; }
.hm-head__roof { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linejoin: round; }
.hm-head__slab { fill: none; stroke: var(--line-2); stroke-width: 3; }
.hm-head__tank { fill: var(--surface); stroke: var(--blue-text); stroke-width: 1.8; }
.hm-head__water { fill: var(--blue-soft); }
.hm-head__pipe { fill: none; stroke: var(--blue-text); stroke-width: 3; stroke-linejoin: round; }
.hm-head__rose { fill: var(--ink-2); }
.hm-head__spray { fill: none; stroke: var(--blue-text); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 2 3; }
.hm-head__dim { fill: none; stroke: var(--signal); stroke-width: 1.2; }
.hm-head__ext { fill: none; stroke: var(--signal); stroke-width: .8; stroke-dasharray: 3 3; opacity: .7; }
.hm-head__t { font: 500 12px var(--font-mono); fill: var(--signal); }
.hm-head__t.is-strong { font: 600 14px var(--font-mono); fill: var(--ink); }
.hm-head__n { font: 500 10px var(--font-mono); letter-spacing: .1em; fill: var(--ink-3); }

.hm-kps { border-top: 1.5px solid var(--ink-2); }
.hm-kp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 16px 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.hm-kp__q { display: grid; gap: 10px; }
.hm-kp__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hm-kp__k { text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-size: .68rem; }
.hm-kp__meta .dim { flex: 0 1 260px; }
.hm-kp__q p { color: var(--ink-2); max-width: 48ch; }
.hm-kp__to {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 8px 14px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .25s var(--ease);
}
.hm-kp__to::before { /* leader from the question to the product, like a drawing callout */
  content: ""; position: absolute; right: 100%; top: 50%; width: 24px; border-top: 1px dashed var(--signal);
}
.hm-kp__media { position: relative; display: block; aspect-ratio: 1; min-height: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hm-kp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .4s var(--ease); }
.hm-kp__media img.is-photo { object-fit: cover; padding: 0; }
.hm-kp__body { display: grid; gap: 3px; min-width: 0; }
.hm-kp__use { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hm-kp__body b { font-weight: 600; line-height: 1.25; }
.hm-kp__n { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--font-mono); color: var(--blue-text); margin-top: 4px; }
.hm-kp__n svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hm-kp__to:hover { border-color: var(--blue-text); box-shadow: var(--shadow); }
.hm-kp__to:hover img { transform: scale(1.06); }
.hm-kp__to:hover .hm-kp__n svg { transform: translateX(4px); }

/* ---------------- how an enquiry works ---------------- */
.hm-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.hm-flow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 12px; border-radius: 6px;
  background: linear-gradient(180deg, var(--pipe-lo) 0%, var(--pipe-mid) 22%, var(--pipe-hi) 45%, var(--pipe-mid) 72%, var(--pipe-lo) 100%);
  border: 1px solid var(--line-2);
}
.hm-flow__step { position: relative; display: grid; gap: 10px; align-content: start; }
.hm-flow__node { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink-2); box-shadow: 0 0 0 5px var(--bg-2); }
.hm-flow__node .mono { font-weight: 600; font-size: .82rem; color: var(--ink); }
.hm-flow__icon { display: grid; color: var(--blue-text); margin-top: 10px; }
.hm-flow__icon svg { width: 28px; height: 28px; }
.hm-flow__step p { color: var(--ink-2); font-size: .96rem; max-width: 30ch; }
.hm-how__cta { margin-top: clamp(28px, 4vw, 44px); align-items: center; }
.hm-how__note { display: inline-flex; align-items: center; gap: 8px; max-width: 44ch; }
.hm-how__note svg { width: 20px; height: 20px; flex: none; color: var(--blue-text); }
.hm-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--signal); color: #fff; font: 600 .72rem/1 var(--font-mono); }
.hm-count[data-n="0"] { display: none; }

/* ---------------- founder ---------------- */
.hm-founder { padding-block: clamp(48px, 6vw, 88px); background: var(--surface); border-block: 1px solid var(--line); }
.hm-founder__grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); grid-template-areas: "frame head" "frame copy"; gap: 20px clamp(32px, 6vw, 96px); align-items: end; }
.hm-founder__frame { grid-area: frame; align-self: center; margin: 0; display: grid; gap: 12px; width: 100%; }
.hm-founder__head { grid-area: head; display: grid; gap: 16px; max-width: 720px; }
.hm-founder__copy { grid-area: copy; align-self: start; display: grid; gap: 18px; align-content: start; max-width: 680px; }
.hm-founder__mat { padding: 12px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.hm-founder__mat img { display: block; width: 100%; height: auto; aspect-ratio: 744 / 1024; object-fit: cover; border: 1px solid var(--line); }
.hm-founder__frame figcaption { text-align: center; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hm-founder__copy .lede b { color: var(--ink); }

/* ---------------- contractors band ---------------- */
.hm-trade {
  background-color: var(--blue); color: var(--blue-ink);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hm-trade__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hm-trade__lead { display: grid; gap: 20px; align-content: start; }
.hm-trade__lead .eyebrow { color: inherit; opacity: .85; }
.hm-trade__lead .lede { color: inherit; opacity: .85; }
.hm-trade__hat { display: grid; }
.hm-trade__hat svg { width: 44px; height: 44px; }
.hm-trade :focus-visible { outline-color: #fff; }
.hm-trade__list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.22); }
.hm-trade__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.22); }
.hm-trade__ic svg { width: 30px; height: 30px; }
.hm-trade__list p { opacity: .82; margin-top: 6px; font-size: .96rem; }

/* ---------------- visit ---------------- */
.hm-visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.hm-visit__copy { display: grid; gap: 20px; align-content: start; }
.hm-visit__ml { font-size: 1.2rem; color: var(--ink-3); margin-top: -8px; }
.hm-visit__addr { font-style: normal; font-size: 1.22rem; line-height: 1.45; display: grid; }
.hm-visit__addr .mono { margin-top: 6px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.hm-visit__lines { border-bottom: 1px solid var(--line); }
.hm-visit__line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hm-visit__k { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--ink-3); }
.hm-visit__num { font: 600 1.55rem/1.1 var(--font-display); letter-spacing: .02em; color: var(--ink); user-select: text; overflow-wrap: anywhere; }
a.hm-visit__num:hover { color: var(--blue-text); }
.hm-visit__num.is-mail { font: 500 1rem/1.3 var(--font-body); letter-spacing: 0; }
.hm-copy { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font: 500 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); transition: border-color .15s, color .15s; }
.hm-copy svg { width: 16px; height: 16px; }
.hm-copy:hover { border-color: var(--ink); color: var(--ink); }
.hm-copy:active { transform: translateY(1px); }

.hm-visit__map { margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hm-visit__map figcaption { margin-top: 6px; text-align: right; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.hm-map { width: 100%; }
.hm-map__grid { fill: none; stroke: var(--line); stroke-width: 1; }
.hm-map__road { fill: none; stroke: var(--line-2); stroke-width: 8; stroke-linecap: round; }
.hm-map__road.is-major { stroke-width: 14; }
.hm-map__t { font: 500 11px var(--font-mono); letter-spacing: .12em; fill: var(--ink-3); }
.hm-map__t.is-dim { fill: var(--ink-4); }
.hm-map__t.is-strong { font-weight: 600; font-size: 12px; fill: var(--ink); }
.hm-map__jn { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.hm-map__lead { stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 3 3; }
.hm-map__pin rect { fill: #2b3f8f; }
.hm-map__pin text { font: 700 17px var(--font-display); fill: #fff; letter-spacing: .02em; }

.hm .section-head > .lede { max-width: 44ch; }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .hm-bw__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hm-bw__ask { grid-column: span var(--r6, 1); }
  .hm-rail { grid-auto-columns: calc((100% - 3 * 16px) / 3.6); }
}
@media (max-width: 960px) {
  .hm-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-sheet { max-width: 640px; }
  .hm-kl__grid, .hm-trade__grid, .hm-visit__grid { grid-template-columns: 1fr; }
  .hm-kl__fig { position: static; max-width: 520px; }
  .hm-kl__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-kl__fig { order: 2; }
  .hm-founder__grid { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .hm-rail { grid-auto-columns: calc((100% - 2 * 16px) / 3.3); }
  .hm-flow { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .hm-flow::before { display: none; }
}
@media (max-width: 720px) {
  .hm-hero { padding-top: 28px; }
  .hm-hero::before { -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 80%); mask-image: linear-gradient(180deg, transparent 40%, #000 80%); }
  .hm-hero__copy { gap: 18px; }
  .hm-hero__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hm-hero__cta .btn { flex: 1 1 100%; }
  .hm-search__go { padding: 0 14px; }
  .hm-sheet { padding: 7px; }
  .hm-sheet__view { aspect-ratio: 1 / 1; }
  .hm-mo__tile img { inset: 6% 8% 26%; width: 84%; height: 68%; }
  .hm-mo__cap { left: 5px; bottom: 5px; max-width: calc(100% - 10px); padding: 3px 5px 4px; }
  .hm-mo__name { font-size: .62rem; line-height: 1.15; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hm-mo__n { display: none; }
  .hm-mo__tile.is-big .hm-mo__cap { left: 8px; bottom: 8px; padding: 6px 9px 7px; }
  .hm-mo__tile.is-big .hm-mo__name { font-size: 1.1rem; }
  .hm-mo__tile.is-big .hm-mo__n { display: block; font-size: .6rem; }
  .hm-tb__v { font-size: 1.75rem; }
  .hm-tb__cell { padding: 8px 9px 9px; }
  .hm-tb__s { font-size: .72rem; }
  .hm-tb__foot span:nth-child(2) { display: none; }
  .hm-map__t { font-size: 14px; letter-spacing: .06em; }
  .hm-map__t.is-strong { font-size: 15px; }

  /* what we sell: rails bleed to the screen edge, two cards + a peek */
  .hm-jump { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .hm-jump__b { min-height: 40px; font-size: .88rem; }
  .hm-dept__head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "cats" "nav"; gap: 10px; margin-bottom: 14px; padding-top: 14px; }
  .hm-dept__ic svg { width: 28px; height: 28px; }
  .hm-dept__meta { flex-basis: 100%; padding-top: 0; }
  .hm-dept__cats { gap: 2px 14px; }
  .hm-dept__cat { font-size: .86rem; }
  .hm-dept__btns { display: none; }
  .hm-dept__nav .arrow-link { font-size: .92rem; }
  .hm-rail {
    grid-auto-columns: calc((100% - 12px) / 2 - 16px); gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .hm-rail::-webkit-scrollbar { display: none; }
  .hm-rail__end b { font-size: 1.2rem; padding-inline: 12px; }
  .hm-rail__end .mono, .hm-rail__go { padding-inline: 12px; }
  .hm-rail__end .mono { font-size: .58rem; }
  .hm-ctile__body { padding: 10px 12px 12px; }
  .hm-ctile .prod-card__name { font-size: .92rem; }

  .hm-bw__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-bw__ask { grid-column: span var(--r3, 1); padding: 14px 12px; }
  .hm-bw__ask b { font-size: 1.1rem; }
  .hm-bw__askp { font-size: .8rem; }
  .hm-bw__cell { grid-template-rows: 72px auto; }
  .hm-bw__plate { padding: 10px; }
  .hm-bw__plate img { max-height: 36px; max-width: 86%; }
  .hm-bw__plate.is-lowres { padding: 3px; }
  .hm-bw__plate.is-lowres img { height: 66px; max-height: none; max-width: 100%; }
  .hm-bw__word { font-size: 1.05rem; }
  .hm-bw__cap { padding: 8px 8px 10px; }
  .hm-bw__cap b { font-size: .84rem; }
  .hm-bw__cap span { font-size: .58rem; letter-spacing: .04em; }

  .hm-kl__fig { max-width: none; }
  .hm-kp { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .hm-kp__to::before { display: none; }
  .hm-kp__to { grid-template-columns: 76px minmax(0, 1fr); }
  .hm-kp__meta .dim { flex: 1 1 100%; order: 2; }

  .hm-founder__grid { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); grid-template-areas: "frame head" "copy copy"; gap: 22px 18px; align-items: center; }
  .hm-founder__mat { padding: 6px; }
  .hm-founder__frame figcaption { font-size: .54rem; letter-spacing: .08em; }
  .hm-founder__head .h1 { font-size: 2.1rem; }

  .hm-flow { grid-template-columns: 1fr; gap: 0; }
  .hm-flow::before { display: block; left: 18px; right: auto; top: 12px; bottom: 12px; width: 12px; height: auto;
    background: linear-gradient(90deg, var(--pipe-lo) 0%, var(--pipe-mid) 22%, var(--pipe-hi) 45%, var(--pipe-mid) 72%, var(--pipe-lo) 100%); }
  .hm-flow__step { grid-template-columns: 48px 1fr; gap: 4px 16px; padding-bottom: 24px; }
  .hm-flow__step:last-child { padding-bottom: 0; }
  .hm-flow__node { grid-row: 1 / 4; align-self: start; }
  .hm-flow__icon { display: none; }
  .hm-flow__step .h3 { align-self: center; padding-top: 12px; }
  .hm-how__cta .btn { flex: 1 1 100%; }

  .hm-trade__lead .row .btn { flex: 1 1 100%; }
  .hm-visit__line { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .hm-visit__k { grid-column: 1 / -1; }
  .hm-visit__copy .row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-mo__tile { animation: none; }
  .hm-rail { scroll-behavior: auto; }
}

/* Brand wall v3: logos only, centred rows (overrides the grid above). */
.hm-bw__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; background: none; border: 0; }
.hm-bw__cell { flex: 0 0 calc((100% - 7 * 12px) / 8); display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: none; }
.hm-bw__cell { transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.hm-bw__cell:hover, .hm-bw__cell:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); transform: translateY(-2px); outline: none; }
.hm-bw__plate { height: 96px; border-bottom: 0; }
@media (max-width: 1080px) { .hm-bw__cell { flex-basis: calc((100% - 5 * 12px) / 6); } }
@media (max-width: 720px) {
  .hm-bw__grid { gap: 8px; }
  .hm-bw__cell { flex-basis: calc((100% - 2 * 8px) / 3); }
  .hm-bw__plate { height: 72px; }
}

/* Visit: real shop-front photo (replaces the schematic map). */
.hm-visit__photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.hm-visit__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.hm-visit__photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; padding: 14px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.hm-visit__photo figcaption .mono { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); }
.hm-visit__photo figcaption b { font: 600 1.35rem/1.05 var(--font-display); text-transform: uppercase; }
.hm-visit__photo figcaption span:last-child { font-size: .86rem; color: var(--ink-3); }
@media (max-width: 720px) { .hm-visit__photo img { aspect-ratio: 3 / 4; } .hm-visit__photo figcaption { left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; } }
/* Rhythm after removing the Kerala notes: brand wall (tint) → how (white) → founder (tint). */
.hm-founder { background: var(--bg-2); }
@media (max-width: 720px), (pointer: coarse) {
  .hm-quick__a, .hm-dept__cat { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 720px), (pointer: coarse) { .hm-visit__num { display: inline-flex; align-items: center; min-height: 40px; } }
.hm-hero__copy { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.hm-copy { font-size: .75rem; }
