/* Home. Page-specific pieces only; rhythm, cards and heads come from components.css. */

/* ---------- Hero ---------- */
.home-hero { grid-template-columns: minmax(0, 1fr) 520px; }
.home-hero .hero-head__lede { max-width: 704px; color: var(--ink-80); }
.home-hero__media { position: relative; display: flex; height: 456px; overflow: hidden; border-radius: var(--radius-card); }
.home-hero__photo { flex: 1; min-width: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.home-hero__weave { width: 56px; height: 100%; flex: none; object-fit: cover; }
/* Sewn-on brand label: the first place a visitor reads the name, as on a finished bag. */
.sewn-label {
  position: absolute;
  left: var(--sp-24);
  bottom: var(--sp-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-16) var(--sp-24);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(33, 36, 30, .25);
}
.sewn-label::before { content: ''; position: absolute; inset: 4px; border: 1.5px dashed rgba(245, 242, 234, .55); pointer-events: none; }
.sewn-label__name { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: 0.28em; text-indent: 0.28em; text-transform: uppercase; }
.sewn-label__line { font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

/* ---------- At a glance: one woven label, four facts ----------
 * Moss ground, a running stitch inside the edge, cells divided by stitched seams. */
.glance {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-card);
  background: var(--forest);
  color: var(--on-dark);
}
.glance::before { content: ''; position: absolute; inset: 8px; border: 1.5px dashed rgba(245, 242, 234, .35); border-radius: 2px; pointer-events: none; }
.glance__cell { display: flex; flex-direction: column; padding: var(--sp-48) var(--sp-40); }
.glance__cell + .glance__cell { border-left: 1.5px dashed rgba(245, 242, 234, .25); }
.glance__label { color: var(--on-dark-dim); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}
.glance__value { margin-top: var(--sp-16); color: var(--cream); }
.glance__text { margin-top: var(--sp-16); font-size: 14px; line-height: 22px; color: var(--on-dark-dim); }
.glance__link { display: inline-flex; align-items: center; gap: var(--sp-8); margin-top: auto; padding-top: var(--sp-16); font-size: 14px; font-weight: 600; color: var(--cream); }
.glance__link .icon { width: 12px; height: 10px; transition: transform .2s ease; }
.glance__link:hover .icon { transform: translateX(4px); }
/* The three fabrics, as swatches. */
.swatches { display: flex; gap: var(--sp-8); margin-top: var(--sp-16); }
.swatch { width: 32px; height: 32px; border: 2px solid rgba(245, 242, 234, .6); border-radius: 50%; }
.swatch--jute { background: url("../../images/home/weave-texture.jpg") center / cover; }
.swatch--cotton { background: var(--cream); }
.swatch--canvas { background: repeating-linear-gradient(45deg, var(--hairline) 0 2px, var(--white) 2px 4px); }

/* ---------- Range + process heads: title left, button right ---------- */
.range-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-32); margin-bottom: var(--head-gap); }
.range-head .btn { flex: none; }

/* ---------- Range cards ---------- */
.range-card .media-card__media { height: auto; aspect-ratio: 8 / 5; background: var(--white); }
.range-card .media-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 32px; }
.range-card .media-card__foot { padding-top: var(--sp-16); }
.range-card__count { font-size: 12px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--forest); }

/* ---------- How we make: production line ----------
 * A stitched thread runs through four numbered stations; each opens its step on About. */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.pipeline::before {                 /* the thread, from the first station to the last */
  content: '';
  position: absolute;
  top: 23px;
  left: 24px;
  right: 0;
  border-top: 2px dashed var(--gold);
}
.pipeline::after {                  /* arrowhead: the line carries on to the customer */
  content: '';
  position: absolute;
  top: 18px;
  right: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  transform: rotate(45deg);
}
.pipeline__stage { position: relative; display: flex; flex-direction: column; }
.pipeline__node { position: relative; z-index: 1; }
.pipeline__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: var(--sp-24);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--cream);
  transition: box-shadow .25s ease, transform .25s ease;
}
.pipeline__card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.pipeline__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.pipeline__card:hover .pipeline__img { transform: scale(1.03); }
.pipeline__body { display: flex; flex-direction: column; padding: var(--card-body-pad); }
.pipeline__title { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 30px; color: var(--ink); }
.pipeline__text { margin-top: var(--sp-8); font-size: 14px; line-height: 22px; color: var(--ink-80); }

/* ---------- Case study ---------- */
.case__eyebrow { color: var(--on-dark); }
.case__title { color: var(--cream); }
.case__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: start; }
.case__quote { max-width: 720px; font-family: var(--font-display); font-size: 24px; line-height: 36px; color: var(--on-dark); }
.case__meta { display: grid; gap: var(--sp-32); padding-left: var(--sp-48); border-left: 1px solid rgba(245, 242, 234, 0.3); color: var(--on-dark); }
.case__meta dt { color: var(--on-dark-dim); }
.case__meta dd { max-width: 360px; margin-top: var(--sp-8); font-size: 18px; line-height: 28px; }

/* ---------- Quote desk ---------- */
.quote-desk { grid-template-columns: minmax(0, 656px) minmax(0, 560px); justify-content: space-between; }
.quote-desk__title { color: var(--on-dark); }
.quote-desk__text { color: var(--on-dark); }
.quote-desk__sample { margin-top: var(--sp-32); padding: var(--sp-24); border-radius: var(--radius-card); background: var(--cream); }
.quote-desk__sample-title { font-size: 14px; color: var(--ink); }
.quote-desk__sample-text { margin-top: var(--sp-4); font-size: 12px; color: var(--ink-60); }
.quote-card { padding: var(--sp-40); border-radius: var(--radius-panel); background: var(--cream); color: var(--ink-80); }
.quote-card__title { font-size: 16px; font-weight: 400; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .glance__cell { padding: var(--sp-40) var(--sp-32); }
  .home-hero { grid-template-columns: minmax(0, 1fr) 440px; }
  .quote-desk { grid-template-columns: minmax(0, 1fr) 480px; }
}
@media (max-width: 960px) {
  .home-hero, .quote-desk { grid-template-columns: 1fr; }
  .range-head { flex-direction: column; align-items: flex-start; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance__cell:nth-child(3) { border-left: 0; }
  .glance__cell:nth-child(n+3) { border-top: 1.5px dashed rgba(245, 242, 234, .25); }
  /* The line turns vertical: thread down the left, stations stacked. */
  .pipeline { grid-template-columns: 1fr; gap: var(--sp-32); }
  .pipeline::before { top: 24px; bottom: 0; left: 23px; right: auto; border-top: 0; border-left: 2px dashed var(--gold); }
  .pipeline::after { display: none; }
  .pipeline__stage { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--sp-24); align-items: start; }
  .pipeline__card { margin-top: 0; flex-direction: row; }
  .pipeline__img { width: 40%; flex: none; aspect-ratio: auto; min-height: 160px; }
  .home-hero__media { height: 416px; }
  .case__body { grid-template-columns: 1fr; gap: var(--sp-32); }
  .case__meta { display: flex; flex-wrap: wrap; gap: var(--sp-24) var(--sp-48); padding-left: 0; padding-top: var(--sp-32); border-left: 0; border-top: 1px solid rgba(245, 242, 234, 0.3); }
}
@media (max-width: 640px) {
  .home-hero__media { height: 336px; }
  .sewn-label { left: var(--sp-16); bottom: var(--sp-16); padding: var(--sp-12) var(--sp-16); }
  .sewn-label__name { font-size: 20px; }
  .glance { grid-template-columns: 1fr; }
  .glance__cell { padding: var(--sp-32) var(--sp-24); }
  .glance__cell + .glance__cell { border-left: 0; border-top: 1.5px dashed rgba(245, 242, 234, .25); }
  .pipeline__stage { grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--sp-16); }
  .pipeline__card { flex-direction: column; }
  .pipeline__img { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .home-hero__weave { width: 40px; }
  .range-head .btn { width: 100%; }
  .quote-card { padding: var(--sp-24); }
}
