/* Material pages — spacious editorial layout (inspired by re-bag.com/materials) */
.vb-mat { --mat-ink: #111; --mat-soft: #5f574d; --mat-sand: #efe7da; --mat-paper: #f7f2ea; --mat-green: #3c6954; --mat-pad: clamp(20px, 5vw, 72px); color: var(--mat-ink); }
.vb-mat p { margin: 0; }
.vb-mat p + p { margin-top: 1.2em; }

/* Photos */
.mat-ph { margin: 0; border-radius: 22px; overflow: hidden; background: var(--mat-sand); }
.mat-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mat-ph--sq { aspect-ratio: 1; }
.mat-ph--sq img, .mat-ph--tall img, .mat-ph--land img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.mat-ph--tall { aspect-ratio: 4 / 5; }
.mat-ph--land { aspect-ratio: 4 / 3; }

/* Hero — title + material icon, big picture */
.mat-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; padding: clamp(150px, 16vw, 200px) var(--mat-pad) clamp(40px, 6vw, 90px); max-width: 1480px; margin: 0 auto; }
.mat-hero__in { padding-bottom: 12px; }
.mat-hero__ico { display: inline-flex; gap: 10px; margin-bottom: 28px; color: var(--mat-green); }
.mat-hero__ico svg { width: 84px; height: 84px; fill: currentColor; }
.mat-hero__t { font-family: var(--font); font-weight: 700; text-transform: uppercase; font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -.02em; margin: 0; max-width: 11ch; }
.mat-hero__ph { aspect-ratio: 1; max-height: 640px; width: 100%; }
.mat-hero__ph img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
/* With a full-width photo (featured image set on the page) */
.mat-hero--photo { position: relative; display: block; max-width: none; min-height: min(86vh, 820px); padding: 0; color: #fff; overflow: hidden; }
.mat-hero--photo .mat-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mat-hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); }
.mat-hero--photo .mat-hero__in { position: absolute; z-index: 1; left: var(--mat-pad); right: var(--mat-pad); bottom: clamp(32px, 6vw, 80px); }
.mat-hero--photo .mat-hero__ico { color: #fff; }

/* Lead paragraph — large, airy */
.mat-lead { padding: clamp(60px, 9vw, 140px) var(--mat-pad); }
.mat-lead__in { max-width: 980px; margin: 0 auto; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.6; font-weight: 500; letter-spacing: -.005em; }

/* Photo grid */
.mat-grid { display: grid; gap: clamp(12px, 1.6vw, 22px); padding: 0 var(--mat-pad); max-width: 1480px; margin: 0 auto; }
.mat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mat-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Body paragraphs — one idea per block, lots of space */
.mat-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); padding: clamp(80px, 11vw, 170px) var(--mat-pad); max-width: 1480px; margin: 0 auto; align-items: start; }
.mat-body--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.mat-body__txt { display: grid; gap: clamp(48px, 6vw, 88px); max-width: 720px; }
.mat-body:not(.mat-body--split) .mat-body__txt { margin: 0 auto; }
.mat-para { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.mat-para__n { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--mat-green); padding-top: .35em; }
.mat-para__t { font-size: 1.0625rem; line-height: 1.85; color: #2a2621; }
.mat-body__ph { position: sticky; top: 120px; }

/* Two landscape photos */
.mat-duo { display: grid; gap: clamp(12px, 1.6vw, 22px); padding: 0 var(--mat-pad); max-width: 1480px; margin: 0 auto; }
.mat-duo--2 { grid-template-columns: 1fr 1fr; }

/* Closing paragraph */
.mat-close { padding: clamp(80px, 11vw, 170px) var(--mat-pad); text-align: center; }
.mat-close__in { max-width: 860px; margin: 0 auto; font-family: var(--font); font-size: clamp(1.375rem, 2.6vw, 2.125rem); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.mat-close__cta { margin-top: 44px; }

/* Bags in this material */
.mat-bags { padding: clamp(60px, 8vw, 110px) var(--mat-pad) clamp(80px, 10vw, 140px); background: var(--mat-sand); }
.mat-bags__head { max-width: 1480px; margin: 0 auto 36px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mat-bags__t { margin: 0; font-family: var(--font); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.1; }
.mat-bags__all { color: var(--mat-ink); font-weight: 600; font-size: .9375rem; text-underline-offset: 4px; }
.mat-bags__row { list-style: none; margin: 0 auto; padding: 0; max-width: 1480px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.mat-bag { display: block; color: inherit; text-decoration: none; }
.mat-bag__img { display: block; aspect-ratio: 1; border-radius: 18px; background: var(--mat-paper); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.mat-bag__img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.mat-bag:hover .mat-bag__img { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(40, 28, 10, .4); }
.mat-bag__n { display: block; margin-top: 14px; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.mat-bag__c { display: block; margin-top: 4px; font-size: .8125rem; color: var(--mat-soft); }

@media (max-width: 900px) {
  .mat-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .mat-hero__ico svg { width: 64px; height: 64px; }
  .mat-body--split { grid-template-columns: 1fr; }
  .mat-body__ph { position: static; }
  .mat-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .mat-bags__row { grid-template-columns: repeat(2, 1fr); }
  .mat-para { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .mat-grid--3 { grid-template-columns: 1fr 1fr; }
  .mat-grid--3 .mat-ph:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .mat-duo--2 { grid-template-columns: 1fr; }
}
