@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* Palette taken from the factory photographs:
   lawn green, the blue of the yard drums, red-orange ixora flowers. */
:root {
  --green-900: #0e3b2c;
  --green-700: #17573f;
  --leaf: #b4e57a;
  --blue: #15568f;
  --clay: #b8441f;
  --mist: #eef1ec;
  --line: #d5dcd3;
  --ink: #10201a;
  --ink-soft: #40514a;
  --white: #fff;
  --head: "Outfit", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--white); }
img, video { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; top: -4rem; left: 1rem; z-index: 60; padding: .6rem 1rem; background: var(--white); border-radius: 999px; }
.skip:focus { top: 1rem; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .62rem 1.2rem; border: 0; border-radius: 999px;
  font: 500 1rem/1.2 var(--head); text-decoration: none; cursor: pointer;
  color: var(--white); background: rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, color .2s, transform .2s;
}
.pill:hover { background: rgb(255 255 255 / .3); }
.pill--solid { background: var(--blue); }
.pill--solid:hover { background: #0f4471; }
.pill--cta, .pill--white, .pill--blue { padding: .9rem 1.7rem; font-size: 1.0625rem; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pill--cta { background: var(--leaf); color: var(--green-900); }
.pill--cta:hover { background: #cbf19d; }
.pill--white { background: var(--white); color: var(--ink); }
.pill--white:hover { background: var(--mist); }
.pill--blue { background: var(--blue); }
.pill--blue:hover { background: #0f4471; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
  color: var(--white);
  transition: background-color .25s, box-shadow .25s, padding .25s, color .25s;
}
.site-header.is-solid { padding-block: .7rem; background: var(--white); color: var(--green-900); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .site-nav .pill:not(.pill--solid) { background: var(--mist); color: var(--green-900); }
.site-header.is-solid .site-nav .pill:not(.pill--solid):hover { background: var(--line); }

.wordmark { font: 600 1.5rem/1 var(--head); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.wordmark span { margin-left: .35em; font-size: .62em; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.site-nav { display: flex; align-items: center; gap: .55rem; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; display: grid; place-items: center; min-height: 88svh; overflow: hidden; background: var(--green-900); color: var(--white); text-align: center; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 34 25 / .72) 0%, rgb(8 34 25 / .56) 45%, rgb(8 34 25 / .78) 100%); }
.hero__body { position: relative; display: grid; justify-items: center; gap: 1.5rem; max-width: 50rem; padding: 7rem var(--gutter) 5rem; }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 4.75rem); }
.hero h1 em { display: block; color: var(--leaf); }
.hero p { max-width: 40rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 1.5rem;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; cursor: pointer;
  color: var(--white); background: rgb(255 255 255 / .18);
}
.hero__pause:hover { background: rgb(255 255 255 / .32); }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }

/* Split colour panels */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__panel { display: grid; align-content: center; justify-items: start; gap: 1.25rem; padding: clamp(3rem, 7vw, 6rem); color: var(--white); }
.split__panel h2 { font-size: clamp(2.125rem, 3.8vw, 3.25rem); }
.split__panel p { max-width: 32rem; font-size: 1.125rem; }
.split__panel .pill { margin-top: .75rem; }
.split__panel--clay { background: var(--clay); }
.split__panel--green { background: var(--green-700); }
.split__panel--green h2 em { color: var(--leaf); }
.split__media { width: 100%; height: 100%; min-height: 34rem; object-fit: cover; }
.split__media--people { object-position: 50% 28%; }

/* Products */
.products { padding-block: clamp(3rem, 6vw, 4.5rem); }
.products h2, .brands h2 { padding-bottom: 1rem; border-bottom: 2px solid var(--line); font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.filter {
  padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font: 500 1rem/1.2 var(--head); color: var(--green-900); background: var(--white);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { background: var(--mist); }
.filter[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-700); color: var(--white); }
.products__count { margin-top: 1rem; font-size: .9375rem; color: var(--ink-soft); }
.products__count:empty { display: none; }
.products__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: 1.5rem; }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mist); }
.product div { padding-top: .85rem; }
.product small, .brand small { display: block; margin-bottom: .35rem; font: 600 .8125rem/1.2 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.product h3 { font-size: 1.1875rem; line-height: 1.25; }
.product p { margin-top: .25rem; font-size: .9375rem; color: var(--ink-soft); }
.products__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.textlink { font: 500 1.0625rem/1.4 var(--head); text-underline-offset: 4px; }
.textlink:hover { color: var(--blue); }

/* Brands */
.brands { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--mist); }
.brands h2 { border-bottom-color: #9aa79f; }
.brands__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.brand { background: var(--white); }
.brand img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.brand div { padding: 1.35rem 1.5rem 1.75rem; }
.brand h3 { font-size: 1.625rem; }
.brand p { margin-top: .5rem; color: var(--ink-soft); }

/* Footer */
.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; color: var(--white); background: linear-gradient(100deg, var(--blue) 0%, var(--green-700) 100%); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1.2fr .8fr; gap: 2.5rem; }
.site-footer__phone { display: inline-block; margin-top: .9rem; font: 500 1.125rem/1.3 var(--head); }
.site-footer h2 { margin-bottom: .75rem; font-size: 1.0625rem; font-weight: 600; }
.site-footer li + li { margin-top: .35rem; }
.site-footer a { text-underline-offset: 3px; }
.wordmark--footer { font-size: 1.75rem; }
.site-footer__legal { margin-top: 2.5rem; font-size: .9375rem; }
.site-footer__legal p { padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .35); }

/* Reveal: only hidden once JS has opted in */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .products__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; right: var(--gutter); left: var(--gutter);
    display: none; flex-direction: column; align-items: stretch; gap: .4rem;
    padding: .75rem; background: var(--white); border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgb(8 34 25 / .25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .pill { justify-content: center; }
  .site-nav .pill:not(.pill--solid) { background: var(--mist); color: var(--green-900); }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__panel { order: 2; }
  .split__media { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .brands__list { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 640px) {
  .wordmark { font-size: 1.25rem; }
  .products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .product h3 { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pill, .site-header { transition: none; }
}
