/* ==========================================================================
   Home of Wool — Homepage Redesign
   Design system: brand palette + typography per "Brand Design Reference"
   Mont BG stood in by Montserrat; Inter for reading; Lora italic as the
   defined editorial accent (a face the live site already loads).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colour system (Brand Design Reference, 2026-08-05) */
  --slate: #22333c;
  --slate-deep: #1a272e;
  --sage: #647a67;
  --sage-dark: #506653;
  --sage-soft: #c7d1c8;
  --sage-muted: #cbd2cb;
  --sage-pale: #dfe6e0;
  --ivory: #f3f1ee;
  --stone: #efede8;
  --beige: #eae8e2;
  --body: #444444;
  --line: #d8d8d8;
  --white: #ffffff;
  --black: #000000;

  /* Type */
  --font-display: "Montserrat", "Mont", "Avenir Next", "Segoe UI", sans-serif;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Lora", Georgia, serif;

  --size-display: clamp(2.75rem, 5.6vw + 1rem, 5rem);
  --size-h2: clamp(2rem, 2.8vw + .8rem, 3rem);
  --size-h3: clamp(1.2rem, .8vw + 1rem, 1.5rem);
  --size-lede: clamp(1.0625rem, .45vw + .95rem, 1.25rem);
  --size-body: 1.0625rem;
  --size-meta: .9375rem;
  --size-kicker: .8125rem;

  /* Rhythm */
  --container: 78rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius-card: 1.25rem;
  --radius-pill: 3.125rem;

  --shadow-card: 0 1px 2px rgba(34, 51, 60, .06), 0 12px 32px rgba(34, 51, 60, .08);
  --shadow-lift: 0 4px 8px rgba(34, 51, 60, .08), 0 22px 48px rgba(34, 51, 60, .14);
  --shadow-float: 0 10px 24px rgba(34, 51, 60, .16), 0 30px 60px rgba(34, 51, 60, .12);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--sage); color: var(--white); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--slate);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--size-display); line-height: 1.02; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: var(--size-h2); line-height: 1.12; letter-spacing: -.012em; font-weight: 700; }
h3 { font-size: var(--size-h3); line-height: 1.3; font-weight: 700; }

/* Editorial accent — the defined Lora role */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--sage-dark);
}

p { margin: 0 0 1em; max-width: 65ch; }

a { color: var(--sage-dark); text-underline-offset: .18em; }
a:hover { color: var(--slate); }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .btn--light:focus-visible, .btn--ghost-light:focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--slate);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: 0 0 .5rem 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--white); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--ivory { background: var(--ivory); }
.section--beige { background: var(--beige); }
.section--pale  { background: var(--sage-pale); }
.section--dark  { background: var(--sage-dark); }
.section--slate { background: var(--slate); }

.section-head { max-width: 47rem; margin-bottom: clamp(2.25rem, 4vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

.kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-size: var(--size-kicker);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--sage);
  flex-shrink: 0;
}
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::before { display: none; }

.lede { font-size: var(--size-lede); line-height: 1.6; }

/* ---------- Scroll reveal (JS-gated, motion-safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  html.js .reveal.in { opacity: 1; transform: none; }

  /* stagger within grids */
  html.js .stagger > *:nth-child(2).reveal { --d: .08s; }
  html.js .stagger > *:nth-child(3).reveal { --d: .16s; }
  html.js .stagger > *:nth-child(4).reveal { --d: .24s; }
  html.js .stagger > *:nth-child(5).reveal { --d: .32s; }
  html.js .stagger > *:nth-child(6).reveal { --d: .4s; }
}

/* Parallax frames */
.parallax { overflow: clip; }
.parallax img { will-change: transform; transform: translateY(var(--py, 0)) scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .parallax img { transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s var(--ease-out), box-shadow .25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(34,51,60,.14); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--sage); color: var(--white); }
.btn--primary:hover { background: var(--sage-dark); color: var(--white); }
.btn--secondary { background: var(--stone); color: var(--slate); }
.btn--secondary:hover { background: var(--sage-muted); color: var(--slate); }
.btn--dark { background: var(--slate); color: var(--white); }
.btn--dark:hover { background: var(--black); color: var(--white); }
.btn--light { background: var(--white); color: var(--slate); }
.btn--light:hover { background: var(--ivory); color: var(--slate); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}
.link-more:hover { text-decoration-color: var(--slate); }
.link-more .arrow { transition: transform .25s var(--ease-out); }
.link-more:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.is-stuck {
  border-color: var(--line);
  box-shadow: 0 2px 20px rgba(34,51,60,.07);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.header__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.header__logo img { height: 2.4rem; width: auto; }

.nav { display: flex; align-items: center; gap: .25rem; margin-inline: auto; }
.nav__item { position: relative; }

.nav__link,
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate);
  text-decoration: none;
  background: none;
  border: 0;
  padding: .65rem .9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.nav__link:hover, .nav__trigger:hover { background: var(--ivory); color: var(--slate); }

.nav__trigger::after {
  content: "";
  width: .5em; height: .5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .15s ease;
}
.nav__trigger[aria-expanded="true"]::after { transform: rotate(225deg) translateY(-1px); }

.nav__menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 16rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow-lift);
  padding: .6rem;
  display: none;
}
.nav__item.is-open .nav__menu { display: block; }

.nav__menu a {
  display: block;
  padding: .6rem .85rem;
  border-radius: .65rem;
  text-decoration: none;
  color: var(--slate);
  font-size: .9375rem;
  font-weight: 600;
}
.nav__menu a:hover { background: var(--ivory); }
.nav__menu a span {
  display: block;
  font-weight: 400;
  font-size: var(--size-meta);
  color: var(--body);
}

.header__utils { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.header__util {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .85rem;
  border-radius: var(--radius-pill);
  color: var(--slate);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9375rem;
}
.header__util:hover { background: var(--ivory); color: var(--slate); }
.header__util svg { width: 1.15rem; height: 1.15rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .6rem;
  border-radius: .6rem;
  color: var(--slate);
  cursor: pointer;
}
.nav-toggle svg { width: 1.6rem; height: 1.6rem; display: block; }

@media (max-width: 63.99em) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem var(--gutter) 2rem;
    overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 1rem .25rem;
    border-radius: 0;
    font-size: 1.125rem;
  }
  .nav__menu {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 .75rem;
    min-width: 0;
  }
  .nav__close {
    position: absolute;
    top: 1.1rem;
    right: var(--gutter);
    background: var(--ivory);
    border: 0;
    border-radius: 50%;
    width: 2.75rem; height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    cursor: pointer;
  }
  .nav-toggle { display: inline-flex; }
  .header__util--label span { display: none; }
}
@media (min-width: 64em) {
  .nav__close { display: none; }
}

/* ==========================================================================
   Hero — cinematic video
   ========================================================================== */
.hero {
  position: relative;
  overflow: clip;
  display: grid;
  align-items: end;
  min-height: min(94svh, 56rem);
  background: var(--slate);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: clip;
}
.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* shift the frame so the subject sits right of the copy */
  transform: scale(1.22) translateX(7%);
  transform-origin: center;
}
@media (max-width: 47.99em) {
  .hero__bg video,
  .hero__bg img { transform: none; }
}

/* Ken Burns product montage — cinematic crossfading slides built from
   high-resolution product photography (sharper than the compressed mp4s). */
.hero__kenburns {
  background: url("../img/customer-hugging-pillow.webp") 38% center / cover no-repeat;
}
.hero__kenburns .kb {
  position: absolute;
  inset: 0;
  opacity: 0;
}
/* keep the person clear of the copy, on the right of the frame */
.hero__kenburns .kb--comfort { object-position: 38% center; }
.hero__kenburns .kb--lounge { object-position: 62% center; }
@media (prefers-reduced-motion: no-preference) {
  .hero__kenburns .kb {
    animation: kb-fade 32s linear infinite, kb-move 32s linear infinite;
    will-change: opacity, transform;
  }
  .hero__kenburns .kb:nth-child(1) { animation-delay: 0s, 0s; }
  .hero__kenburns .kb:nth-child(2) { animation-delay: 8s, 8s; }
  .hero__kenburns .kb:nth-child(3) { animation-delay: 16s, 16s; }
  .hero__kenburns .kb:nth-child(4) { animation-delay: 24s, 24s; }
  .hero__kenburns .kb:nth-child(even) { --kb-from: scale(1.16) translate(1.5%, 1%); --kb-to: scale(1.02) translate(0, 0); }
  .hero__kenburns .kb:nth-child(odd)  { --kb-from: scale(1.02) translate(0, 0); --kb-to: scale(1.16) translate(-1.5%, -1%); }

  @keyframes kb-fade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    25% { opacity: 1; }
    31% { opacity: 0; }
    100% { opacity: 0; }
  }
  @keyframes kb-move {
    0% { transform: var(--kb-from); }
    31% { transform: var(--kb-to); }
    100% { transform: var(--kb-to); }
  }

  .hero__kenburns.is-paused .kb { animation-play-state: paused, paused; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26,39,46,.72) 0%, rgba(26,39,46,.16) 45%, rgba(26,39,46,.24) 100%),
    linear-gradient(98deg, rgba(26,39,46,.8) 0%, rgba(26,39,46,.45) 40%, rgba(26,39,46,.02) 68%);
}

@media (max-width: 47.99em) {
  .hero__scrim {
    background: linear-gradient(to top, rgba(26,39,46,.82) 0%, rgba(26,39,46,.42) 55%, rgba(26,39,46,.3) 100%);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(6.5rem, 11vw, 8.5rem) clamp(3.5rem, 7vw, 5.5rem);
  max-width: none;
}
.hero__content > * { max-width: 46rem; }

.hero__content .kicker { color: var(--sage-soft); }
.hero__content .kicker::before { background: var(--sage-soft); }

.hero__content h1 { color: var(--white); }
.hero__content h1 .accent { color: var(--sage-soft); }

.hero__content .lede { color: var(--ivory); max-width: 36rem; margin-top: 1.2rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.1rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin-top: 2.2rem;
}
.hero__proof li {
  display: inline-flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: var(--size-meta);
  color: var(--ivory);
  font-weight: 500;
}
.hero__proof li::before {
  content: "";
  width: .5rem; height: .5rem;
  margin-top: .42em;
  border-radius: 50%;
  background: var(--sage-soft);
  flex-shrink: 0;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 4vw, 3rem);
  top: clamp(6rem, 12vw, 8.5rem);
  background: rgba(255,255,255,.96);
  border-radius: 1.1rem;
  box-shadow: var(--shadow-float);
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.hero__badge .stars { color: var(--sage-dark); }
.hero__badge-text { font-family: var(--font-display); font-weight: 700; color: var(--slate); font-size: .9375rem; line-height: 1.3; }
.hero__badge-text small { display: block; font-family: var(--font-text); font-weight: 400; color: var(--body); font-size: .8125rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero__badge { animation: float-b 9s ease-in-out infinite; }
  @keyframes float-b {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
}
@media (max-width: 47.99em) {
  .hero__badge { display: none; }
}

/* Video pause/play control — WCAG 2.2.2 */
.video-toggle {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--slate);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.video-toggle:hover { transform: scale(1.06); background: var(--white); }
.video-toggle svg { width: 1.05rem; height: 1.05rem; }
.video-toggle .icon-pause { display: block; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  color: var(--white);
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
}
.hero__scroll svg { width: 1.3rem; height: 1.3rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll { animation: cue 2.2s ease-in-out infinite; }
  @keyframes cue {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(7px); }
  }
}
@media (max-width: 47.99em) {
  .hero__scroll { display: none; }
}

/* ---------- Transparent header over the video hero ---------- */
.header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.header--overlay:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header--overlay:not(.is-stuck) .nav__link,
.header--overlay:not(.is-stuck) .nav__trigger,
.header--overlay:not(.is-stuck) .header__util,
.header--overlay:not(.is-stuck) .nav-toggle { color: var(--white); }
.header--overlay:not(.is-stuck) .nav__link:hover,
.header--overlay:not(.is-stuck) .nav__trigger:hover,
.header--overlay:not(.is-stuck) .header__util:hover { background: rgba(255,255,255,.14); color: var(--white); }
.header--overlay:not(.is-stuck) :focus-visible { outline-color: var(--white); }

.header__logo .logo-light { display: none; }
.header--overlay:not(.is-stuck) .header__logo .logo-dark { display: none; }
.header--overlay:not(.is-stuck) .header__logo .logo-light { display: block; }

/* When the mobile nav overlay is open, force solid header colours */
@media (max-width: 63.99em) {
  body.nav-open .header--overlay:not(.is-stuck) .nav-toggle { color: var(--slate); }
}

/* ---------- Material ribbon (marquee) ---------- */
.ribbon {
  background: var(--slate);
  color: var(--ivory);
  overflow: clip;
  padding-block: .95rem;
  border-block: 1px solid var(--slate-deep);
}
.ribbon__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  padding-left: 1rem;
}
.ribbon__seq {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  flex-shrink: 0;
}
.ribbon__seq span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.ribbon__seq span::after {
  content: "✦";
  color: var(--sage-soft);
  font-size: .8em;
}
@media (prefers-reduced-motion: no-preference) {
  .ribbon__track { animation: ribbon-scroll 36s linear infinite; }
  .ribbon:hover .ribbon__track { animation-play-state: paused; }
  @keyframes ribbon-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

/* ==========================================================================
   Shop by need
   ========================================================================== */
.needs {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48em) { .needs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.need-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: clip;
  box-shadow: var(--shadow-card);
  aspect-ratio: 3 / 3.2;
  display: flex;
  align-items: flex-end;
  background: var(--slate);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.need-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.need-card__media { position: absolute; inset: 0; }
.need-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.need-card:hover .need-card__media img { transform: scale(1.06); }
.need-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,39,46,.88) 0%, rgba(26,39,46,.35) 38%, rgba(26,39,46,0) 62%);
}

.need-card__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.2rem 1.35rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.need-card h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.need-card h3 .arrow { color: var(--sage-soft); transition: transform .3s var(--ease-out); font-weight: 400; }
.need-card:hover h3 .arrow { transform: translateX(4px); }

.need-card__link { text-decoration: none; color: inherit; }
.need-card__link::after { content: ""; position: absolute; inset: 0; }
.need-card__link:focus-visible::after { outline: 3px solid var(--white); outline-offset: -3px; border-radius: var(--radius-card); }
.need-card p { font-size: var(--size-meta); margin: 0; color: var(--sage-pale); }

/* ==========================================================================
   Materials / education
   ========================================================================== */
.material-grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 56em) { .material-grid { grid-template-columns: 5fr 6fr; } }

.material-grid__media {
  position: relative;
  border-radius: 1.75rem;
  overflow: clip;
  box-shadow: var(--shadow-lift);
}
.material-grid__media img {
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  width: 100%;
}
.material-grid__media figcaption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(255,255,255,.94);
  color: var(--slate);
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
}

.benefits { display: grid; gap: .5rem; margin-top: 1.6rem; counter-reset: benefit; }
@media (min-width: 36em) { .benefits { grid-template-columns: 1fr 1fr; gap: .75rem 2.25rem; } }

.benefit { padding: 1rem 0 .9rem; border-top: 1px solid var(--line); counter-increment: benefit; }
.benefit h3 {
  font-size: 1.0625rem;
  margin-bottom: .25rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.benefit h3::before {
  content: counter(benefit, decimal-leading-zero);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: .06em;
}
.benefit p { font-size: var(--size-meta); margin: 0; }

.fibres {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
}
@media (min-width: 48em) { .fibres { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.fibre { position: relative; }
.fibre__media { border-radius: 1.1rem; overflow: clip; }
.fibre__media img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  transition: transform .7s var(--ease-out);
}
.fibre:hover .fibre__media img { transform: scale(1.06); }
.fibre h3 { font-size: 1.0625rem; margin: .85rem 0 .15rem; }
.fibre p { font-size: var(--size-meta); margin: 0; }

/* ==========================================================================
   Craftsmanship
   ========================================================================== */
.craft-grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 56em) { .craft-grid { grid-template-columns: 6fr 5fr; } }

.craft-media {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1fr;
}
.craft-media figure { margin: 0; border-radius: 1.4rem; overflow: clip; box-shadow: var(--shadow-card); }
.craft-media figure img { object-fit: cover; width: 100%; height: 100%; aspect-ratio: 3/3.4; transition: transform .8s var(--ease-out); }
.craft-media figure:hover img { transform: scale(1.04); }
.craft-media figure:first-child { grid-column: 1 / -1; }
.craft-media figure:first-child img { aspect-ratio: 16/9.5; }

.craft-video {
  position: relative;
  grid-column: 1 / -1;
  border-radius: 1.4rem;
  overflow: clip;
  box-shadow: var(--shadow-card);
}
.craft-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9.5;
  object-fit: cover;
}
.craft-video .video-toggle { right: 1rem; bottom: 1rem; width: 2.6rem; height: 2.6rem; }

.steps { counter-reset: step; display: grid; margin-top: 1.4rem; }
.step {
  counter-increment: step;
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sage-dark);
  font-size: 1.0625rem;
  flex-shrink: 0;
}
.step h3 { font-size: 1.0625rem; margin: 0 0 .1rem; }
.step p { font-size: var(--size-meta); margin: 0; }

.made-to-order {
  margin-top: 1.9rem;
  background: var(--ivory);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.4rem 1.7rem;
}
.made-to-order h3 { font-size: 1.0625rem; }
.made-to-order p { font-size: var(--size-meta); margin: 0; }

/* ---------- Stats band ---------- */
.stats { color: var(--white); }
.stats__grid {
  display: grid;
  gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
  text-align: center;
}
@media (min-width: 48em) { .stats__grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: -.015em;
}
.stat__value .unit { font-size: .55em; color: var(--sage-soft); }
.stat__label {
  margin-top: .6rem;
  font-size: var(--size-meta);
  color: var(--sage-pale);
}

/* ==========================================================================
   Brands
   ========================================================================== */
.brands {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 56em) { .brands { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: clip;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.brand-card__media { position: relative; overflow: clip; }
.brand-card__media img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  transition: transform .8s var(--ease-out);
}
.brand-card:hover .brand-card__media img { transform: scale(1.05); }

.brand-card__num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,.92);
  color: var(--slate);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .1em;
  padding: .4rem .85rem;
  border-radius: var(--radius-pill);
}

.brand-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.7rem 1.85rem;
  border-top: 4px solid var(--accent, var(--sage));
}
.brand-card--casa  { --accent: var(--slate); }
.brand-card--basta { --accent: var(--sage-dark); }
.brand-card--nomad { --accent: var(--black); }

.brand-card__kicker {
  font-family: var(--font-display);
  font-size: var(--size-kicker);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent, var(--sage-dark));
  margin-bottom: .5rem;
}
.brand-card h3 { font-size: 1.4375rem; margin-bottom: .35rem; }
.brand-card__for { font-weight: 600; color: var(--slate); font-size: var(--size-meta); margin-bottom: .6rem; }
.brand-card p { font-size: var(--size-meta); }
.brand-card__how {
  font-size: var(--size-meta);
  background: var(--ivory);
  border-radius: .85rem;
  padding: .75rem 1rem;
  margin: .35rem 0 1.2rem;
}
.brand-card .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Products
   ========================================================================== */
.products {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (min-width: 56em) { .products { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: clip;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.product-card__media { overflow: clip; background: var(--ivory); }
.product-card__media img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  transition: transform .7s var(--ease-out);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.35rem; }

.product-card__tag {
  position: absolute;
  top: .95rem; left: .95rem;
  z-index: 1;
  background: var(--slate);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  padding: .38rem .85rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}

.product-card h3 { font-size: 1.125rem; margin-bottom: .3rem; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card h3 a:focus-visible::after { outline: 3px solid var(--slate); outline-offset: -3px; border-radius: var(--radius-card); }

.product-card__desc { font-size: .9375rem; margin-bottom: .8rem; }
.product-card__meta { margin-top: auto; }

.price { font-family: var(--font-display); font-weight: 700; color: var(--slate); font-size: 1.125rem; }
.price .from { font-family: var(--font-text); font-weight: 400; color: var(--body); font-size: var(--size-meta); }

.rating { display: flex; align-items: center; gap: .45rem; margin-top: .4rem; font-size: var(--size-meta); color: var(--body); }
.stars { display: inline-flex; gap: .1rem; color: var(--sage-dark); }
.stars svg { width: .95rem; height: .95rem; }

.products-cta { text-align: center; margin-top: 2.75rem; }

/* ---------- Full-bleed workshop banner ---------- */
.banner {
  position: relative;
  overflow: clip;
  min-height: clamp(20rem, 46vw, 30rem);
  display: grid;
  align-items: end;
}
.banner__img {
  position: absolute;
  inset: -12% 0;
}
.banner__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,39,46,.78) 0%, rgba(26,39,46,.25) 55%, rgba(26,39,46,.05) 100%);
}
.banner__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.banner__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw + .6rem, 2.4rem);
  line-height: 1.3;
  color: var(--white);
  max-width: 30ch;
  margin: 0 0 .75rem;
  text-wrap: balance;
}
.banner__meta { color: var(--sage-pale); font-size: var(--size-meta); margin: 0; }

/* ==========================================================================
   Custom sizing
   ========================================================================== */
.custom-grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 56em) { .custom-grid { grid-template-columns: 6fr 5fr; } }

.custom-grid__media {
  border-radius: 1.75rem;
  overflow: clip;
  box-shadow: var(--shadow-lift);
}
.custom-grid__media img {
  aspect-ratio: 4/3.2;
  object-fit: cover;
  width: 100%;
}

.checklist { display: grid; gap: .7rem; margin: 1.5rem 0 1.9rem; }
@media (min-width: 36em) { .checklist { grid-template-columns: 1fr 1fr; } }

.checklist li {
  display: flex;
  gap: .65rem;
  align-items: baseline;
  font-size: var(--size-meta);
  color: var(--slate);
  font-weight: 500;
}
.checklist li::before {
  content: "✓";
  font-weight: 700;
  color: var(--sage);
  flex-shrink: 0;
}

.custom-note { font-size: .9375rem; color: var(--body); }

/* ==========================================================================
   Reviews — featured pull-quote + grid
   ========================================================================== */
.review-feature {
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.review-feature blockquote { margin: 0; padding: 0; }
.review-feature blockquote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw + .7rem, 2.1rem);
  line-height: 1.35;
  color: var(--slate);
  max-width: none;
  text-wrap: balance;
  margin: 0 0 1.1rem;
}
.review-feature figcaption { font-size: var(--size-meta); }
.review-feature .name { font-weight: 700; color: var(--slate); }

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  margin-bottom: 2.25rem;
}
.reviews-summary__score {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--slate);
  margin: 0;
}
.reviews-summary__source { font-size: var(--size-meta); color: var(--body); font-family: var(--font-text); font-weight: 400; }

.reviews {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48em) { .reviews { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.review {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  margin: 0;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.review blockquote { margin: .85rem 0 1.1rem; padding: 0; }
.review blockquote p { font-size: .9375rem; margin: 0; }
.review figcaption { margin-top: auto; font-size: var(--size-meta); }
.review figcaption .name { font-weight: 600; color: var(--slate); display: block; }
.review figcaption .context { color: var(--body); }

.review__source {
  display: inline-block;
  margin-top: .75rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--sage-dark);
  background: var(--ivory);
  padding: .28rem .75rem;
  border-radius: var(--radius-pill);
}

/* Reviews marquee — continuous strip like the material ribbon */
.reviews-marquee { position: relative; overflow: clip; }
.reviews-marquee__track {
  display: flex;
  width: max-content;
  padding-block: .5rem;
}
.reviews--seq {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
  flex-shrink: 0;
}
.reviews--seq .review { width: clamp(19rem, 26vw, 25rem); flex-shrink: 0; }

@media (prefers-reduced-motion: no-preference) {
  .reviews-marquee__track { animation: reviews-scroll 48s linear infinite; }
  .reviews-marquee:hover .reviews-marquee__track,
  .reviews-marquee:focus-within .reviews-marquee__track,
  .reviews-marquee.is-paused .reviews-marquee__track { animation-play-state: paused; }
  @keyframes reviews-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee { overflow-x: auto; }
  .reviews--seq[aria-hidden="true"] { display: none; }
  .reviews-marquee__toggle { display: none; }
}

.reviews-marquee__toggle {
  position: static;
  display: grid;
  margin: 1.5rem 0 0 auto;
  background: var(--white);
}

/* ==========================================================================
   Certifications
   ========================================================================== */
.certs {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48em) { .certs { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.cert {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.75rem 1.6rem;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--sage-muted); }
.cert h3 { font-size: 1.1875rem; margin-bottom: .45rem; }
.cert p { font-size: var(--size-meta); margin: 0; }
.cert__scope {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: .65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.cert__mark {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--sage-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* ==========================================================================
   Founder
   ========================================================================== */
.founder-grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: center;
}
@media (min-width: 56em) { .founder-grid { grid-template-columns: 5fr 7fr; } }

.founder-grid__media {
  position: relative;
  border-radius: 1.75rem;
  overflow: clip;
  box-shadow: var(--shadow-lift);
}
.founder-grid__media img {
  aspect-ratio: 4/4.4;
  object-fit: cover;
  width: 100%;
}
.founder-grid__media figcaption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(255,255,255,.94);
  color: var(--slate);
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
}

.founder-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw + .8rem, 2.6rem);
  line-height: 1.28;
  color: var(--slate);
  margin: 0 0 1.35rem;
  text-wrap: balance;
}

/* ==========================================================================
   Journal
   ========================================================================== */
.journal {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48em) { .journal { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.journal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: clip;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.journal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.journal-card__media { overflow: clip; }
.journal-card__media img {
  aspect-ratio: 16/9.5;
  object-fit: cover;
  width: 100%;
  transition: transform .7s var(--ease-out);
}
.journal-card:hover .journal-card__media img { transform: scale(1.05); }
.journal-card__body { padding: 1.3rem 1.45rem 1.55rem; display: flex; flex-direction: column; flex: 1; }
.journal-card__topic {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: .55rem;
}
.journal-card h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.journal-card h3 a { color: inherit; text-decoration: none; }
.journal-card h3 a::after { content: ""; position: absolute; inset: 0; }
.journal-card h3 a:focus-visible::after { outline: 3px solid var(--slate); outline-offset: -3px; border-radius: var(--radius-card); }
.journal-card p { font-size: .9375rem; margin: 0; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
  position: relative;
  color: var(--white);
  overflow: clip;
  background:
    linear-gradient(rgba(80,102,83,.94), rgba(80,102,83,.94)),
    url("../img/wool-fabric-texture.jpg") center / cover no-repeat;
}
.newsletter .section-head { margin-bottom: 1.85rem; }
.newsletter h2, .newsletter p { color: var(--white); }
.newsletter .lede { color: var(--sage-pale); }
.newsletter .kicker { color: var(--sage-pale); }
.newsletter .kicker::before { background: var(--sage-soft); }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  max-width: 35rem;
}
.newsletter-form label { flex-basis: 100%; font-weight: 600; font-size: var(--size-meta); }
.newsletter-form input {
  flex: 1 1 16rem;
  font: inherit;
  font-size: 1rem;
  padding: .95rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: var(--white);
  color: var(--slate);
}
.newsletter-form input:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.newsletter__fineprint { font-size: .875rem; color: var(--sage-pale); margin-top: 1.1rem; }
.newsletter__fineprint a { color: var(--white); }
.newsletter-form__note {
  flex-basis: 100%;
  margin: .4rem 0 0;
  font-size: var(--size-meta);
  color: var(--white);
  background: rgba(34,51,60,.35);
  border-radius: .75rem;
  padding: .7rem 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--slate); color: var(--sage-pale); font-size: var(--size-meta); }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.75rem) 2.5rem;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (min-width: 48em) { .footer__grid { grid-template-columns: 2fr repeat(4, 1fr); } }

.footer__brand img { height: 2.2rem; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: .9375rem; }

.footer h2 {
  font-size: .9375rem;
  color: var(--white);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer li { margin-bottom: .55rem; }

.footer__meta {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-block: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer__meta p { margin: 0; font-size: .875rem; }

/* ---------- Reduced motion: kill everything ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .header, .nav-toggle, .newsletter, .skip-link, .ribbon { display: none; }
}
