/* Firenze home page. Loaded after styles.css and products.css: the body carries .products-page (the shared fonts, colours
   and buttons) and .home-page (everything below). The sections themselves are the home page's own; none are shared with
   /products. The story runs through cloth: knitted words, a knitted logo, a picture re-knitted from Italy to Madagascar,
   woven labels, cut swatches and a sewn-on card. */

/* HERO: "Luxury knitwear" knitted live (knit() in home.js). Until the knit is ready, and on devices that don't get it,
   the hero is a red knit drawn in CSS with the heading set in the display font. */
.home-page main { position: relative; }
/* above the yarn (z-index 0), which shows through where the knit has unravelled (the canvas is see-through there) */
.hm-hero { position: relative; z-index: 1; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: #fff;
  --hm-knit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16'%3E%3Cg fill='none' stroke-linecap='round' stroke-width='3.4'%3E%3Cpath d='M3.5 1.5 10 13.5M18.5 1.5 12 13.5' stroke='%23941a2e'/%3E%3Cpath d='M4.5 2.5 9.6 12M17.5 2.5 12.4 12' stroke='%23a6283c' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(30, 2, 8, .45) 100%);
  background-color: #7c1022; background-image: var(--hm-knit); background-size: 22px 16px, 100% 100%; }
.hm-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s linear; }
.hm-hero__canvas.on { opacity: 1; }
.hm-hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(30, 3, 8, .38) 0, rgba(30, 3, 8, 0) 22%, rgba(30, 3, 8, 0) 58%, rgba(22, 2, 6, .72) 100%); }
.hm-hero__inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(30px, 6vh, 64px); max-width: 1680px; margin: 0 auto; }
.hm-hero__title { font-family: var(--display); font-size: clamp(3.4rem, 11vw, 11.5rem); line-height: .95; letter-spacing: -.025em; margin: 0 !important; }
/* while the knitted heading is on show, the text heading stays for screen readers and search but isn't drawn twice */
.knit-live .hm-hero__title { position: absolute; width: 1px; height: 1px; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* while the page loads, the hero is a dark CSS knit (not a flat maroon), matching the needle bed knit() draws under its
   knitting edge, so the live knit fades in over the same look. It sits on a layer of its own that stops above the
   unravelling edge (--hm-keep, set by knit() if the page is scrolled before the knitting is done), so the page and the
   yarn show where the cloth has unravelled, as before. Once fully knitted it goes (knit-done). */
.knit-live .hm-hero { background: transparent; }
/* dark, like the knitting machine's needle bed it used to be (#2a0510), but not plain: the same V stitches, faint, a shade off the ground,
   so the light needles under the knitting edge (drawn by knit()) stand out on it */
.knit-live .hm-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-color: #2a0510;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16'%3E%3Cg fill='none' stroke-linecap='round' stroke-width='3.4'%3E%3Cpath d='M3.5 1.5 10 13.5M18.5 1.5 12 13.5' stroke='%23300716'/%3E%3Cpath d='M4.5 2.5 9.6 12M17.5 2.5 12.4 12' stroke='%23380a1b' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(12, 1, 4, .5) 100%);
  background-size: 22px 16px, 100% 100%; clip-path: inset(0 0 calc(100% - var(--hm-keep, 100%)) 0); }
.knit-live .hm-hero.knit-done::before { display: none; }
/* no shade over the knit: it greyed the page showing through the unravelled rows and drew a line at the hero's foot */
.knit-live .hm-hero__shade { display: none; }
.fz-intro .hm-hero__title { visibility: hidden; animation: fz-show 0s 5s forwards; }

/* shared bits */
.hm-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5.6vw, 5.8rem); line-height: 1.02; letter-spacing: -.02em; }
.home-page strong { font-weight: 400; color: var(--ink); }
.hm-sew { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hm-sew .st { fill: none; stroke: var(--stitch, rgba(255, 255, 255, .75)); stroke-width: 1.6; stroke-dasharray: 7 5; stroke-linecap: round; }
.hm-sew .m { fill: none; stroke: #fff; stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s cubic-bezier(.45, .1, .2, 1); }
.sewn > .hm-sew .m { stroke-dashoffset: 0; }

/* ABOUT + SEAL */
.hm-about { position: relative; padding: clamp(80px, 13vh, 150px) 0 clamp(90px, 14vh, 170px); } /* no background of its own: the page's paper, so the yarn behind shows */
/* the yarn, behind the hero and the about text, running into the top of the logo film (yarn() in home.js) */
.hm-yarn { position: absolute; z-index: 0; top: 0; left: 0; width: 100%; pointer-events: none; overflow: visible; }
.hm-yarn path { fill: none; stroke: #9c1428; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hm-about__grid { position: relative; z-index: 2; }
.hm-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
.hm-seal { position: relative; margin: 0; aspect-ratio: 976 / 720; border-radius: 22px; overflow: hidden; background: #a39b8f url("../images/home/seal-first.webp?v=2") center / cover; box-shadow: 0 40px 70px -36px rgba(60, 40, 20, .5); }
.hm-seal video, .hm-seal__end { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-seal__end { opacity: 0; transition: opacity .6s linear; }
.hm-seal.ended .hm-seal__end { opacity: 1; }
.hm-about__title { font-family: var(--display); font-size: clamp(2.1rem, 3.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); margin: 0 0 1.2rem !important; }
.hm-about__sub { font: italic 400 clamp(1.1rem, 1.5vw, 1.35rem)/1.4 var(--display) !important; color: var(--red); margin-bottom: 1.6rem !important; }
.hm-about__body { font-size: 1rem; line-height: 1.85; color: var(--muted); max-width: 36em; }

/* TWO HERITAGES: a tall section whose stage stays on screen while the picture is re-knitted (intarsia() in home.js).
   Without the script (or with reduced motion) it is one screen showing the fresco, then the baobabs knitted half in. */
.hm-weave { position: relative; height: 270vh; background: #1a120c; color: #fff; }
.hm-weave__stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #1a120c url("../images/home/italy-fresco.webp") center / cover; }
.hm-weave__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s linear; }
.hm-weave__canvas.on { opacity: 1; }
.hm-weave__shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 50% 52%, rgba(14, 8, 4, .5) 0, rgba(14, 8, 4, .12) 70%), linear-gradient(180deg, rgba(14, 8, 4, .35) 0, transparent 22%, transparent 78%, rgba(14, 8, 4, .45) 100%); opacity: calc(.35 + var(--p, 0) * .65); }
.hm-weave__from, .hm-weave__to { position: absolute; margin: 0 !important; display: flex; align-items: center; gap: .8rem; font: 500 .74rem/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hm-weave__from::before, .hm-weave__to::after { content: ''; width: 42px; height: 1px; background: currentColor; }
.hm-weave__from { left: var(--gutter); top: clamp(92px, 14vh, 130px); opacity: calc(1 - var(--p, 0) * 2.2); }
.hm-weave__to { right: var(--gutter); bottom: clamp(30px, 6vh, 60px); opacity: calc(var(--p, 0) * 2.2 - .9); }
.hm-weave__sign { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; margin: 0 auto !important; max-width: 13em; transform: translateY(calc(-50% + (1 - var(--s, 1)) * 40px)); text-align: center; font: italic 400 clamp(2.2rem, 5.4vw, 5.6rem)/1.08 var(--display); letter-spacing: -.015em; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); opacity: var(--s, 1); }
.hm-weave__line { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; margin: 0 auto !important; max-width: 13em; transform: translateY(calc(-50% - (1 - var(--a, 1)) * 40px)); text-align: center; font: italic 400 clamp(2.4rem, 6vw, 6.2rem)/1.08 var(--display); letter-spacing: -.015em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); opacity: var(--a, 1); }
.weave-static .hm-weave__line { display: none; }
.weave-static .hm-weave { height: auto; }
.weave-static .hm-weave__from, .weave-static .hm-weave__to { opacity: 1; }
.weave-static .hm-weave__stage { position: relative; height: 86vh; height: 86svh; }

/* VISION, MISSION & VALUES: woven labels */
/* the garment the labels are sewn onto: a deep green knit (stockinette V stitches, drawn in CSS), lit softly from the
   upper left, with a ribbed band top and bottom like a sweater's hem */
.hm-vmv { position: relative; padding: clamp(130px, 18vh, 210px) 0; color: #fff; overflow: hidden; background-color: #0c3824;
  background-image:
    radial-gradient(70% 60% at 22% 18%, rgba(255, 245, 220, .13), transparent 70%),
    radial-gradient(60% 55% at 85% 95%, rgba(0, 12, 6, .45), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='13'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M3 .8 8.6 11.6M15 .8 9.4 11.6' stroke='%23092c1c' stroke-width='4.6'/%3E%3Cpath d='M3.3 1.3 8.5 11M14.7 1.3 9.5 11' stroke='%23175a3b' stroke-width='3'/%3E%3Cpath d='M3.9 2.2 7.9 9.6M14.1 2.2 10.1 9.6' stroke='%232a7651' stroke-opacity='.55' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 18px 13px; }
.hm-vmv::before, .hm-vmv::after { content: ''; position: absolute; left: 0; right: 0; height: clamp(34px, 5vh, 52px); pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%, transparent 70%, rgba(0, 0, 0, .3)),
    repeating-linear-gradient(90deg, #08281a 0 2px, #14503a 2px 6px, #1d6446 6px 7px, #0a2e1e 7px 9px); }
.hm-vmv::before { top: 0; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }
.hm-vmv::after { bottom: 0; box-shadow: 0 -6px 12px -6px rgba(0, 0, 0, .5); }
.hm-vmv__title { color: #fff; margin-bottom: clamp(50px, 8vh, 90px) !important; }
.hm-labels { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hm-label { position: relative; padding: clamp(2rem, 3.6vw, 3.6rem) clamp(2rem, 4vw, 4.4rem); border-radius: 3px; }
.hm-label__k { display: block; margin-bottom: 1.1rem; font: 500 .74rem/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.hm-label p { margin: 0 !important; }
/* the weave: fine weft lines and warp lines, and the folded ends of a sewn-in label */
.hm-label--vision, .hm-label--mission, .hm-tags li { background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 26px 40px -24px rgba(0, 0, 0, .7); }
.hm-label--vision::before, .hm-label--vision::after, .hm-label--mission::before, .hm-label--mission::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12px; background: rgba(0, 0, 0, .22); }
.hm-label--vision::before, .hm-label--mission::before { left: 0; clip-path: polygon(0 0, 100% 6px, 100% calc(100% - 6px), 0 100%); }
.hm-label--vision::after, .hm-label--mission::after { right: 0; clip-path: polygon(0 6px, 100% 0, 100% 100%, 0 calc(100% - 6px)); }
.hm-label--vision { grid-row: span 2; background-color: var(--red); --stitch: rgba(250, 236, 214, .72); rotate: -1.4deg; }
.hm-label--vision p { font: 400 clamp(2.2rem, 4.4vw, 4.6rem)/1.06 var(--display); letter-spacing: -.015em; color: #fbefdc; }
.hm-label--mission { background-color: #f3ecdd; color: var(--ink); --stitch: rgba(156, 20, 40, .55); rotate: 1.2deg; margin-top: clamp(0px, 4vw, 50px); }
.hm-label--mission p { font: 400 clamp(1.3rem, 1.9vw, 1.8rem)/1.4 var(--display); }
.hm-label--values { padding: 0; }
.hm-label--values .hm-label__k { color: #fff; }
.hm-tags { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.hm-tags li { position: relative; padding: 1rem 1.5rem; border-radius: 3px; font: 500 .82rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: transform .5s var(--ease); }
.hm-tags li:nth-child(1) { background-color: var(--brass); color: #2a1d08; --stitch: rgba(42, 29, 8, .5); rotate: -2deg; }
.hm-tags li:nth-child(2) { background-color: #f3ecdd; color: var(--ink); --stitch: rgba(156, 20, 40, .55); rotate: 1.5deg; }
.hm-tags li:nth-child(3) { background-color: var(--wine); color: #f6e4cd; --stitch: rgba(246, 228, 205, .6); rotate: -.8deg; }
.hm-tags li:nth-child(4) { background-color: #1d1712; color: #e9dcc4; --stitch: rgba(184, 151, 90, .8); rotate: 2.2deg; }
.hm-tags li:nth-child(5) { background-color: #e9dcc4; color: var(--green); --stitch: rgba(1, 79, 48, .5); rotate: -1.5deg; }
@media (hover: hover) { .hm-tags li:hover { transform: translateY(-4px) rotate(-1deg); } }

/* WHAT DEFINES US: swatches cut with pinking shears (zigzag top and bottom edges), each with a paper tag */
.hm-defines { padding: clamp(100px, 15vh, 180px) 0 clamp(110px, 16vh, 190px); background: var(--paper); overflow: hidden; }
.hm-defines__title { color: var(--ink); margin-bottom: clamp(50px, 8vh, 90px) !important; }
.hm-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 4.4rem); }
.hm-swatch { position: relative; }
.hm-swatch:nth-child(2) { margin-top: clamp(20px, 5vw, 70px); }
/* the tilt is on the cloth, not the swatch, which swatches() in home.js moves */
.hm-swatch__cloth { filter: drop-shadow(0 22px 22px rgba(60, 40, 20, .28)); }
.hm-swatch:nth-child(1) .hm-swatch__cloth { rotate: -2.4deg; }
.hm-swatch:nth-child(2) .hm-swatch__cloth { rotate: 1.6deg; }
.hm-swatch:nth-child(3) .hm-swatch__cloth { rotate: -1.2deg; }
.hm-swatch__cloth img { --z: 13px; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.08; object-fit: cover;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--z) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--z) 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--z) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / var(--z) 51% repeat-x; }
.hm-swatch:nth-child(1) .hm-swatch__cloth img { object-position: 50% 35%; }
.hm-swatch:nth-child(2) .hm-swatch__cloth img { object-position: 58% 50%; }
.hm-swatch:nth-child(3) .hm-swatch__cloth img { object-position: 50% 62%; }
.hm-swatch__tag { position: relative; z-index: 1; width: 80%; margin: -2.6rem 0 0 12% !important; padding: 1.4rem 1.6rem 1.1rem 2.6rem; border-radius: 4px 14px 14px 4px; background: #fffdf8; box-shadow: 0 16px 30px -18px rgba(60, 40, 20, .45); rotate: 2.4deg; }
.hm-swatch:nth-child(2) .hm-swatch__tag { rotate: -2deg; margin-left: 6% !important; }
.hm-swatch__tag::before { content: ''; position: absolute; left: 1rem; top: 1.6rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.hm-swatch__tag::after { content: ''; position: absolute; left: calc(1rem + 4px); bottom: calc(100% - 1.6rem - 4px); width: 1.5px; height: 4.2rem; background: var(--red); transform-origin: 50% 100%; rotate: 18deg; }
.hm-swatch__no { display: block; margin-bottom: .5rem; font: italic 400 2rem/1 var(--display); color: var(--red); }
.hm-swatch__tag li { position: relative; padding: .55rem 0 .55rem 1.3rem; border-top: 1px solid rgba(29, 23, 18, .12); font: 400 1rem/1.4 var(--sans); color: var(--ink); }
.hm-swatch__tag li::before { content: ''; position: absolute; left: 0; top: 1.2rem; width: .7rem; height: 2px; background: var(--red); }

/* KNITWEAR MADAGASCAR INDUSTRY: heading held on the left while the text scrolls; key phrases get a running stitch */
.hm-prose { padding: clamp(100px, 15vh, 180px) 0; background: var(--cream); }
.hm-prose__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem clamp(3rem, 7vw, 8rem); align-items: start; }
.hm-prose__title { position: sticky; top: 120px; font-family: var(--display); font-size: clamp(2.2rem, 3.9vw, 4.2rem); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); }
.hm-prose__text p { font-size: 1.05rem; line-height: 1.95; color: var(--muted); margin-bottom: 1.6rem !important; }
.hm-prose__text p:first-child::first-letter { float: left; font: 400 4.8rem/.82 var(--display); color: var(--red); padding: .34rem .7rem 0 0; }
.hm-prose__text strong, .hm-prose__text p a { text-decoration: underline dashed; text-decoration-thickness: 1.5px; text-underline-offset: .32em; text-decoration-color: transparent; transition: text-decoration-color 1.1s linear .2s; }
.hm-prose__text p a { color: var(--green); }
.hm-prose__text p.on strong, .hm-prose__text p.on a { text-decoration-color: var(--red); }
.js .hm-prose__text p[data-stitch] { opacity: 0; transform: translateY(22px); transition: opacity .9s linear, transform 1s var(--ease); }
.js .hm-prose__text p[data-stitch].on { opacity: 1; transform: none; }
.hm-btn--green { background: var(--green); color: #fff; box-shadow: 0 14px 28px -16px rgba(1, 79, 48, .7); }
.hm-btn--green:hover { background: #013d25; color: #fff; }
.hm-prose__text > .fz-btn { display: inline-flex; width: auto; max-width: 100%; padding: .9rem 2.2rem; }
.hm-prose .fz-btn, .hm-products .fz-btn, .hm-resp .fz-btn { min-height: 56px; text-align: center; line-height: 1.3; }

/* OUR PRODUCTS: four photo panels; the open one (.on) is wide (shelf() in home.js) */
.hm-products { padding: clamp(64px, 9vh, 110px) 0 clamp(100px, 15vh, 180px); background: var(--paper); }
.hm-products__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 5rem; align-items: end; margin-bottom: clamp(40px, 7vh, 70px); }
.hm-products__title { color: var(--ink); }
.hm-products__head h3 { font: italic 400 clamp(1.15rem, 1.6vw, 1.45rem)/1.4 var(--display); color: var(--red); margin-bottom: .9rem !important; }
.hm-products__head p { font-size: .98rem; line-height: 1.8; color: var(--muted); max-width: 34em; }
.hm-shelf { display: flex; gap: 12px; height: clamp(420px, 68vh, 700px); }
.hm-shelf li { position: relative; flex: 1 1 0; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--cream); cursor: pointer; transition: flex-grow .85s var(--ease); }
.hm-shelf li.on { flex-grow: 3.6; cursor: default; }
.hm-shelf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(.8) brightness(.8); transition: transform 1.3s var(--ease), filter .8s linear; }
.hm-shelf li:nth-child(2) img { object-position: 50% 25%; }
.hm-shelf li.on img { transform: none; filter: none; }
.hm-shelf li::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(20, 12, 6, .72)); pointer-events: none; }
.hm-shelf p { position: absolute; z-index: 1; left: 0; bottom: 0; width: min(24rem, 70vw); margin: 0 !important; padding: 1.6rem 1.7rem; font: 400 clamp(1.25rem, 1.8vw, 1.8rem)/1.25 var(--display); color: transparent; transition: color .5s linear; }
.hm-shelf li.on p { color: #fff; transition-delay: .3s; }
.hm-shelf p span { display: block; margin-bottom: .6rem; font: italic 400 1.6rem/1 var(--display); color: #fff; }
.hm-shelf li:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.hm-products__foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 4rem; flex-wrap: wrap; margin-top: clamp(36px, 6vh, 60px); }
.hm-products__foot p { font-size: .98rem; line-height: 1.8; color: var(--muted); max-width: 32em; }

/* RESPONSIBILITY: a paper card sewn onto the trees */
.hm-resp { position: relative; padding: clamp(110px, 17vh, 200px) 0; overflow: hidden; background: var(--forest); }
.hm-resp__bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; filter: brightness(.62) saturate(.95); }
.hm-resp__card { position: relative; z-index: 1; max-width: 720px; margin: 0 0 0 auto; padding: clamp(2.4rem, 5vw, 4.6rem); border-radius: 6px; background: #fbf7ef; color: var(--ink); --stitch: rgba(1, 79, 48, .55); rotate: -1deg; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); }
.hm-resp__title { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.015em; color: var(--green); margin-bottom: 1.4rem !important; }
.hm-resp__card > p { font-size: 1rem; line-height: 1.85; color: var(--muted); margin-bottom: 1.5rem !important; }
.hm-resp__card ul { border-top: 1px solid rgba(29, 23, 18, .14); margin-bottom: 1.6rem !important; }
.hm-resp__card li { position: relative; padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid rgba(29, 23, 18, .14); font: 400 1rem/1.45 var(--sans); }
.hm-resp__card li::before { content: ''; position: absolute; left: 2px; top: 1.45rem; width: .85rem; height: 2px; background: var(--green); }

/* CONTACT */
.hm-contact { padding: clamp(100px, 15vh, 180px) 0; background: var(--cream); }
.hm-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 7vw, 8rem); align-items: start; }
.hm-contact__title { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 6.2rem); line-height: 1; letter-spacing: -.01em; color: var(--ink); margin: 0 0 1.2rem !important; }
.hm-contact__sub { font: italic 400 clamp(1.2rem, 1.8vw, 1.6rem)/1.35 var(--display); color: var(--red); margin-bottom: 1.2rem !important; }
/* revealed from the top down behind a zigzag edge, like the hero's knitting edge (knitIn() in home.js) */
.hm-knitimg { margin: clamp(1.6rem, 3vh, 3rem) 0 0; aspect-ratio: 16 / 9; } /* phones: a short strip (head and shoulders), so the form isn't pushed far down */
.hm-knitimg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 18%; border-radius: 18px; } /* the rail, hooks and garments stay in frame when the photo is cropped */
/* wide screens: the photo fills the rest of the column, so the left side ends level with the form */
@media (min-width: 900px) {
  .hm-contact__grid { align-items: stretch; }
  .hm-contact__intro { display: flex; flex-direction: column; }
  .hm-knitimg { flex: 1 1 0; min-height: 240px; aspect-ratio: auto; }
}
.hm-contact__intro p:not(.hm-contact__sub) { font-size: 1rem; line-height: 1.8; color: var(--muted); max-width: 30em; }
.hm-form { padding: clamp(1.6rem, 3vw, 2.8rem); border-radius: 22px; background: var(--paper); box-shadow: 0 30px 60px -40px rgba(60, 40, 20, .45); }
.hm-form h2 { font-family: var(--display); font-size: 1.9rem; margin-bottom: 1.4rem !important; }
.hm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.hm-form label { display: block; margin-bottom: 1.3rem; }
.hm-form label span { display: block; font: 500 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hm-form input, .hm-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .35rem; padding: .6rem 0; border: 0; border-bottom: 1px solid rgba(29, 23, 18, .3); border-radius: 0; background: transparent; font: 400 1.02rem/1.4 var(--sans); color: var(--ink); transition: border-color .3s; }
.hm-form input::placeholder, .hm-form textarea::placeholder { color: rgba(111, 99, 85, .55); }
.hm-form textarea { resize: vertical; min-height: 7rem; }
.hm-form input:focus, .hm-form textarea:focus { outline: none; border-bottom-color: var(--red); }
.hm-form .fz-btn { border: 0; cursor: pointer; margin-top: .4rem; }

/* FOOTER */
.hm-footer { padding: 1.4rem var(--gutter) .8rem; background: var(--paper); }
.hm-footer__about { max-width: 62em; margin: 0 auto 1rem !important; font: 400 .78rem/1.7 var(--sans) !important; color: var(--paper) !important; text-align: center; } /* the same colour as the footer, as on the old page (the owner's choice) */
.hm-footer .social-icons { display: flex; gap: .4rem; }
.hm-footer .social-icons a { display: inline-flex; width: 36px; height: 36px; margin: 0; align-items: center; justify-content: center; color: var(--ink); }
.hm-footer .social-icons svg { width: 19px; height: 19px; }

/* RESPONSIVE */
@media (max-width: 899px) {
  .hm-about__grid, .hm-labels, .hm-prose__grid, .hm-products__head, .hm-contact__grid { grid-template-columns: 1fr; }
  .hm-about { padding-top: clamp(60px, 9vh, 90px); }
  .hm-label--vision { grid-row: auto; }
  .hm-label--mission { margin-top: 0; }
  .hm-prose__title { position: static; }
  .hm-swatches { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 3.4rem; }
  .hm-swatch:nth-child(2) { margin-top: 0; }
  .hm-swatch__cloth img { aspect-ratio: 5 / 4; }
  /* phones: the panels stack; closed ones are a strip with their line of text, the open one is tall */
  .hm-shelf { flex-direction: column; height: auto; gap: 10px; }
  .hm-shelf li { flex: none; height: 92px; transition: height .7s var(--ease); }
  .hm-shelf li.on { height: min(62svh, 520px); }
  .hm-shelf p { width: auto; right: 0; padding: 1.1rem 1.3rem; font-size: 1.2rem; color: #fff; }
  .hm-shelf li:not(.on) p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.05rem; line-height: 1.3; }
  .hm-shelf li:not(.on) p span { display: inline; margin: 0 .55rem 0 0; font-size: 1.05rem; }
  .hm-shelf li::after { inset: 0; background: linear-gradient(180deg, rgba(20, 12, 6, .1), rgba(20, 12, 6, .66)); }
  .hm-resp__card { margin: 0 auto; }
}
@media (max-width: 760px) {
  .hm-form__row { grid-template-columns: 1fr; }
  .hm-footer .footer-content { justify-content: center; }
  .hm-weave { height: 230vh; }
  .hm-weave__from { top: 84px; }
}
@media (max-width: 560px) {
  .home-page .logo-text { font-size: 1.12rem; }
  .hm-hero__title { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hm-prose__text p:first-child::first-letter { font-size: 3.9rem; }
  .hm-label { padding: 1.8rem 1.6rem; }
  .hm-tags li { padding: .85rem 1.1rem; font-size: .74rem; }
  .hm-swatch__tag { width: 86%; margin-left: 8% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-sew .m { transition: none; }
  .hm-shelf li, .hm-shelf img, .hm-shelf p, .hm-tags li { transition: none; }
  .js .hm-prose__text p[data-stitch] { opacity: 1; transform: none; transition: none; }
}
