/* R81d (10 Oct 2026) · HOWE Home collection lockup. Shared by the homepage and The Way We Make.
   Design approved by Guy (design agent handover, 10 Oct). Re-implemented on the build: the section is the page's own
   lockup (.lockup, .lockup--right, .lockup-media / .lockup-text, .img--45 on the homepage, .img--43 on The Way We Make);
   only the inside of the media slot is new: a lead photograph and two square companions on a 20px gap (--space-5).
   No shared stylesheet is changed. Loads after howe-motion.css (page-family position). */

/* Anchor: html already carries scroll-padding-top 84px (60px at 1024 and below, howe.css). The margin tops it up so
   #howe-home lands 120px from the window top, below the 97px desktop / 88px phone sticky header. */
.hh-lockup{scroll-margin-top:36px;}
@media (max-width:1024px){.hh-lockup{scroll-margin-top:60px;}}

/* Laptop rule: the homepage's own short-window cap (howe-ui.css, max-height:820px) applied at every height for this
   module, so the whole lockup sits below the sticky header on any laptop window. */
@media (min-width:769px){.lockup.hh-lockup .lockup-media .img{min-height:0;max-height:calc(100svh - 176px);}
  /* When the cap narrows the slot, it keeps the column's outer edge (the window edge where the lockup bleeds, the page
     gutter where it does not), so the image never floats short of the edge its neighbours reach. */
  .lockup--right.hh-lockup .lockup-media .img{margin-inline-start:auto;}}
/* Narrower windows (below 1200px, both pages): the slot takes the portrait 4:5 ratio, still under the cap above.
   Measured (R81d, Chromium): a landscape slot at these widths leaves companions of 60 to 135px, too small to show their
   photograph or their name ("Cardamom Runner" truncated at 1024 x 768). A bounded change to the slot ratio only, so the
   lead-plus-two hierarchy holds at every size; at 1200px and wider each page keeps its own lockup ratio. */
@media (max-width:1199px){.lockup.hh-lockup .lockup-media .img{aspect-ratio:4/5;}}   /* .lockup.hh-lockup outranks the homepage short-window 4:3 rule (body.t-home .lockup-media .img) */


/* The slot. Its size comes from the lockup (aspect ratio and the cap above); the mosaic fills it. */
.hh-mosaic-host{background:none;box-shadow:none;container-type:size;}
.hh-mosaic-host::after{content:none !important;}
.hh-mosaic{--hh-cap:34px;position:absolute;inset:0;display:grid;gap:var(--space-5);
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:minmax(0,1fr) calc((100cqw - var(--space-5)) / 2 + var(--hh-cap));}
.hh-m{display:grid;grid-template-rows:minmax(0,1fr) var(--hh-cap);min-height:0;min-width:0;text-decoration:none;color:var(--ink);}
.hh-m-lead{grid-column:1 / -1;}
.hh-m-i{position:relative;display:block;min-height:0;overflow:hidden;background:var(--placeholder);}
.hh-m-i img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
/* Landscape slot (homepage short windows, The Way We Make): lead left, two companions stacked right.
   Companion column = (slot height - gap) / 2 - caption, so each companion image stays exactly square. */
@container (orientation:landscape){
  .hh-mosaic{grid-template-columns:minmax(0,1fr) calc((100cqh - var(--space-5)) / 2 - var(--hh-cap));grid-template-rows:repeat(2,minmax(0,1fr));}
  .hh-m-lead{grid-column:1;grid-row:1 / -1;}
}

/* Name and the locked CTA triangle (M0 0L7 5L0 10Z, 5.6 x 8) beneath each photograph: serif card name, 24px line, 10px above. */
.hh-m-n{display:flex;align-items:baseline;gap:8px;padding-top:10px;font:400 var(--fs-cardname-sm)/24px var(--ff-serif);color:var(--ink);white-space:nowrap;overflow:hidden;}
.hh-m-n > span{overflow:hidden;text-overflow:ellipsis;}
.hh-m-n .hc-caret{display:inline-block;width:5.6px;height:8px;fill:currentColor;flex:none;}
/* Hover: the canonical .img-tile treatment (howe.css: photograph scale 1.03 over .45s) plus the caption-name underline. */
.img-tile:hover .hh-m-n > span,.img-tile:focus-visible .hh-m-n > span{text-decoration:underline;text-underline-offset:3px;}
@media (hover:none){.img-tile:hover:not(:focus-visible) .hh-m-n > span{text-decoration:none;}}
/* Button standard: no ring on click or tap; keyboard ring only. */
.hh-m:focus{outline:none;}
.hh-m:focus-visible{outline:2px solid var(--ink);outline-offset:3px;}
/* Unbuilt destination (no product page yet): name shown, no link, no hover, no pointer. */
.hh-m-tbc{cursor:default;}
.hh-lockup .cta-inline{white-space:nowrap;}

/* R82f: the phone caption padding that only existed for the homepage bleed is removed with it. */


/* The Way We Make: the HOWE Home lockup and the Interior fittings strip share one parchment ground, with the homepage
   band's colour and padding (clamp(40px,4.5vw,56px) top, clamp(48px,5.5vw,64px) bottom). Paper rhythm gap above and
   below; inside, the rhythm interval between the two is padding, so the ground is unbroken.
   Guy (10 Oct): the ground spans the full window at every size, as the homepage bands do: since R81f that comes from
   the site-wide page model in howe-ui.css, not from this module. */
.hh-ground{background:var(--parchment);}   /* R81f: its full-width ground now comes from the site-wide page model (howe-ui.css) */
.hh-ground--start{padding-top:clamp(40px,4.5vw,56px);scroll-margin-top:calc(36px - clamp(40px,4.5vw,56px));}
@media (max-width:1024px){.hh-ground--start{scroll-margin-top:calc(60px - clamp(40px,4.5vw,56px));}}
.stack > .block.hh-ground--end{margin-top:0;padding-top:var(--rhythm);padding-bottom:clamp(48px,5.5vw,64px);}
/* Very narrow phones (below 360px): companion names may take two lines rather than being cut short. */
@media (max-width:359px){
  .lockup.hh-lockup .lockup-media .img{aspect-ratio:2/3;}   /* taller slot so the lead stays about 3:2 at 320px */
  .hh-mosaic{--hh-cap:58px;}
  .hh-m-lead{--hh-cap:34px;}   /* the lead's name keeps one line */
  .hh-m-n{display:block;white-space:normal;line-height:24px;}
  .hh-m-n > span{overflow:visible;}
  .hh-m-n .hc-caret{margin-left:8px;vertical-align:.08em;}
}
/* Very short windows (below 600px tall and below 1200px wide; the 924 x 540 stress case, where scrolling is allowed):
   the height cap is lifted, so the slot keeps its full 4:5 and the companions have room for their names on one line.
   Two-line names were tried (Guy, 10 Oct) and rejected on measurement: they shrink the lead to a strip that cuts off
   the product. */
@media (min-width:769px) and (max-width:1199px) and (max-height:599px){.lockup.hh-lockup .lockup-media .img{max-height:none;}}
