:root {
  --materials-green-950: #073d31;
  --materials-green-900: #0b4c3b;
  --materials-green-800: #175b45;
  --materials-olive: #5e7b2d;
  --materials-olive-dark: #476421;
  --materials-gold: #c8892d;
  --materials-gold-dark: #8a5715;
  --materials-ink: #17231d;
  --materials-muted: #5e6963;
  --materials-cream: #fbf8f1;
  --materials-cream-2: #f4efe5;
  --materials-line: #dfddd4;
  --materials-shadow: 0 12px 30px rgba(29, 43, 34, 0.08);
}

.materials-page {
  overflow: clip;
  color: var(--materials-ink);
  background: #fff;
}

.materials-page * {
  min-width: 0;
}

.materials-kicker {
  margin: 0 0 10px;
  color: var(--materials-gold-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.materials-kicker--light {
  color: #e7efc9;
}

.materials-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(480px, calc(100dvh - var(--topbar-height) - var(--header-height) - 72px));
  overflow: hidden;
  background: var(--materials-green-950);
}

.materials-hero__forest {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: inherit;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.materials-hero__forest > img,
.materials-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.materials-hero__forest > img {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.materials-hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 47, 37, 0.95), rgba(4, 57, 44, 0.76)),
    linear-gradient(0deg, rgba(5, 45, 35, 0.2), rgba(5, 45, 35, 0.2));
}

.materials-hero__forest-inner {
  width: 100%;
  margin-left: auto;
  padding: 56px clamp(34px, 4vw, 64px) 56px max(24px, calc((100vw - 1180px) / 2));
}

.materials-hero h1 {
  max-width: 580px;
  margin: 0 0 20px;
  color: #fff;
  font: 700 54px/1.03 var(--serif);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.materials-hero__forest-inner > p:not(.materials-kicker) {
  max-width: 530px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.65;
}

.materials-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.materials-hero__actions .btn,
.materials-cta__actions .btn {
  min-height: 48px;
}

.materials-btn-primary {
  border-color: var(--materials-olive);
  color: #fff;
  background: var(--materials-olive);
}

.materials-btn-primary:hover {
  border-color: var(--materials-olive-dark);
  color: #fff;
  background: var(--materials-olive-dark);
}

.materials-btn-ghost {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.materials-btn-ghost:hover {
  border-color: #fff;
  color: var(--materials-green-950);
  background: #fff;
}

.materials-btn-outline {
  border-color: rgba(7, 61, 49, 0.45);
  color: var(--materials-green-950);
  background: rgba(255, 255, 255, 0.72);
}

.materials-btn-outline:hover {
  border-color: var(--materials-green-950);
  color: #fff;
  background: var(--materials-green-950);
}

.materials-hero__room {
  min-height: inherit;
  margin: 0;
  overflow: hidden;
  background: #eae3d6;
}

.materials-hero__room img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.materials-page a:focus-visible,
.materials-page summary:focus-visible {
  outline: 3px solid var(--materials-gold);
  outline-offset: 3px;
}

.materials-section {
  padding: 70px 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.materials-section--soft {
  background: var(--materials-cream);
}

.materials-heading {
  max-width: 790px;
  margin: 0 auto 36px;
  text-align: center;
}

.materials-heading--compact {
  margin-bottom: 30px;
}

.materials-heading h2,
.materials-cta h2 {
  margin: 0 0 12px;
  color: var(--materials-green-950);
  font: 700 42px/1.12 var(--serif);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.materials-heading > p:last-child {
  margin: 0;
  color: var(--materials-muted);
  font-size: 15px;
  line-height: 1.7;
}

.materials-benefits {
  padding-top: 58px;
}

.materials-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--materials-line);
  border-bottom: 1px solid var(--materials-line);
}

.materials-benefits article {
  position: relative;
  min-height: 236px;
  padding: 32px 25px;
  text-align: center;
}

.materials-benefits article:not(:last-child)::after {
  position: absolute;
  top: 22%;
  right: 0;
  width: 1px;
  height: 56%;
  background: var(--materials-line);
  content: "";
}

.materials-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 16px;
  border: 1px solid #bcc9aa;
  border-radius: 50%;
  color: var(--materials-olive-dark);
  font-size: 20px;
}

.materials-benefits h3,
.materials-process h3,
.materials-capabilities h3,
.materials-options h3 {
  color: var(--materials-green-950);
  font-weight: 800;
  letter-spacing: 0;
}

.materials-benefits h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.32;
}

.materials-benefits article p {
  margin: 0;
  color: var(--materials-muted);
  font-size: 13px;
  line-height: 1.62;
}

.materials-process {
  background: linear-gradient(#faf7f0, #f7f2e8);
}

.materials-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.materials-process__grid > li {
  position: relative;
  display: flex;
  overflow: visible;
  flex-direction: column;
  border: 1px solid var(--materials-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(59, 50, 31, 0.04);
}

.materials-process__grid > li:not(:last-child)::after {
  position: absolute;
  z-index: 3;
  top: 106px;
  right: -14px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #98a585;
  border-right: 2px solid #98a585;
  content: "";
  transform: rotate(45deg);
}

.materials-process figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #e5e5de;
}

.materials-process figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform 240ms ease;
}

.materials-process li:hover figure img {
  transform: scale(1.025);
}

.materials-process figure span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  background: var(--materials-olive);
  font-size: 11px;
  font-weight: 900;
}

.materials-process li > div {
  flex: 1;
  padding: 18px 18px 21px;
}

.materials-process h3 {
  margin: 0 0 8px;
  font: 700 19px/1.25 var(--serif);
}

.materials-process li > div p {
  margin: 0;
  color: var(--materials-muted);
  font-size: 13px;
  line-height: 1.58;
}

.materials-capabilities {
  background: #fff;
}

.materials-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--materials-line);
  border-radius: 8px;
  background: #fff;
}

.materials-capabilities article {
  min-height: 200px;
  padding: 28px 17px;
  text-align: center;
}

.materials-capabilities article:not(:last-child) {
  border-right: 1px solid var(--materials-line);
}

.materials-mini-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0 auto 15px;
  border: 1px solid #c5d2b5;
  border-radius: 50%;
  color: var(--materials-olive);
  font-size: 19px;
}

.materials-capabilities h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.materials-capabilities article p {
  margin: 0;
  color: var(--materials-muted);
  font-size: 12px;
  line-height: 1.58;
}

.materials-options {
  background: var(--materials-cream);
}

.materials-options__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.materials-options__grid article {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--materials-line);
  border-radius: 8px;
  background: #fff;
}

.materials-options__grid img {
  display: block;
  width: 100%;
  height: 126px;
  object-fit: cover;
  object-position: center;
  background: #eee;
}

.materials-options__grid article > div {
  flex: 1;
  padding: 15px 14px 17px;
  text-align: center;
}

.materials-options h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.3;
}

.materials-options__grid article p {
  margin: 0;
  color: var(--materials-muted);
  font-size: 12px;
  line-height: 1.55;
}

.materials-options__note {
  display: flex;
  max-width: 760px;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  margin: 22px auto 0;
  color: var(--materials-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.materials-options__note i {
  margin-top: 3px;
  color: var(--materials-gold-dark);
}

.materials-faq {
  padding-top: 60px;
  background: #fff;
}

.materials-faq__inner {
  max-width: 960px;
}

.materials-faq__list {
  display: grid;
  gap: 8px;
}

.materials-faq details {
  overflow: hidden;
  border: 1px solid var(--materials-line);
  border-radius: 8px;
  background: #fbfaf7;
}

.materials-faq summary {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 14px 54px 14px 18px;
  color: var(--materials-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
}

.materials-faq summary::-webkit-details-marker {
  display: none;
}

.materials-faq summary::after {
  position: absolute;
  top: 50%;
  right: 15px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #c5d2b5;
  border-radius: 50%;
  color: var(--materials-olive-dark);
  content: "+";
  font: 700 20px/1 var(--sans);
  transform: translateY(-50%);
}

.materials-faq details[open] summary::after {
  color: #fff;
  background: var(--materials-olive);
  content: "-";
}

.materials-faq details p {
  margin: 0;
  padding: 0 54px 17px 18px;
  color: var(--materials-muted);
  font-size: 14px;
  line-height: 1.65;
}

.materials-cta {
  background: var(--materials-cream-2);
}

.materials-cta__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 350px;
}

.materials-cta__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 60px 52px 0;
}

.materials-cta h2 {
  font-size: 38px;
}

.materials-cta__copy > p:not(.materials-kicker) {
  max-width: 650px;
  margin: 0;
  color: #505b55;
  font-size: 15px;
  line-height: 1.68;
}

.materials-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.materials-cta__media {
  position: relative;
  min-height: 350px;
  margin: 0;
  overflow: hidden;
}

.materials-cta__media::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 24%;
  background: linear-gradient(90deg, var(--materials-cream-2), rgba(244, 239, 229, 0));
  content: "";
  pointer-events: none;
}

.materials-cta__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1100px) {
  .materials-hero h1 {
    font-size: 48px;
  }

  .materials-hero__forest-inner {
    padding-right: 36px;
  }

  .materials-benefits__grid,
  .materials-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-benefits article:nth-child(2)::after {
    display: none;
  }

  .materials-benefits article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--materials-line);
  }

  .materials-process__grid > li::after {
    display: none;
  }

  .materials-capabilities__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .materials-capabilities article {
    border-bottom: 1px solid var(--materials-line);
  }

  .materials-capabilities article:nth-child(3) {
    border-right: 0;
  }

  .materials-options__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .materials-cta__copy {
    padding-right: 40px;
  }
}

@media (max-width: 800px) {
  .materials-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .materials-hero__room {
    order: -1;
    height: 260px;
    min-height: 0;
  }

  .materials-hero__forest {
    min-height: 355px;
  }

  .materials-hero__forest-inner {
    width: min(680px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 36px;
  }

  .materials-hero h1 {
    font-size: 42px;
  }

  .materials-hero__actions {
    flex-wrap: nowrap;
  }

  .materials-heading h2 {
    font-size: 36px;
  }

  .materials-options__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-cta__inner {
    grid-template-columns: 1fr;
  }

  .materials-cta__copy {
    padding: 48px 0;
  }

  .materials-cta__media {
    min-height: 280px;
  }

  .materials-cta__media::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 22%;
    background: linear-gradient(180deg, var(--materials-cream-2), rgba(244, 239, 229, 0));
  }
}

@media (max-width: 560px) {
  .materials-hero__room {
    height: 190px;
    min-height: 0;
  }

  .materials-hero__forest {
    min-height: 0;
  }

  .materials-hero__forest-inner {
    width: min(100% - 28px, 680px);
    padding: 30px 0 34px;
  }

  .materials-hero h1 {
    margin-bottom: 15px;
    font-size: 38px;
    line-height: 1.06;
  }

  .materials-hero__forest-inner > p:not(.materials-kicker) {
    font-size: 16px;
    line-height: 1.58;
  }

  .materials-hero__actions {
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .materials-hero__actions .btn {
    flex: 1 1 190px;
  }

  .materials-section {
    padding: 54px 0;
  }

  .materials-benefits {
    padding-top: 48px;
  }

  .materials-heading {
    margin-bottom: 28px;
  }

  .materials-heading h2,
  .materials-cta h2 {
    font-size: 32px;
  }

  .materials-heading > p:last-child {
    font-size: 14px;
  }

  .materials-benefits__grid,
  .materials-process__grid,
  .materials-capabilities__grid,
  .materials-options__grid {
    grid-template-columns: 1fr;
  }

  .materials-benefits article {
    min-height: 0;
    padding: 28px 22px;
  }

  .materials-benefits article:not(:last-child)::after,
  .materials-benefits article:nth-child(2)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 1px;
  }

  .materials-benefits article:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .materials-process figure img {
    aspect-ratio: 16 / 9;
  }

  .materials-capabilities article {
    min-height: 0;
    border-right: 0 !important;
  }

  .materials-options__grid article {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    min-height: 118px;
  }

  .materials-options__grid img {
    width: 122px;
    height: 100%;
    min-height: 118px;
  }

  .materials-options__grid article > div {
    align-self: center;
    text-align: left;
  }

  .materials-options__note {
    text-align: left;
  }

  .materials-faq {
    padding-top: 48px;
  }

  .materials-faq summary {
    min-height: 60px;
    padding: 14px 50px 14px 15px;
    font-size: 15px;
  }

  .materials-faq details p {
    padding: 0 15px 17px;
    font-size: 14px;
  }

  .materials-cta__copy {
    padding: 40px 0;
  }

  .materials-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .materials-cta__actions .btn {
    width: 100%;
  }

  .materials-cta__media {
    min-height: 220px;
  }
}

@media (max-width: 420px) {
  .materials-hero__room {
    height: 135px;
    min-height: 0;
  }

  .materials-hero h1 {
    font-size: 32px;
  }

  .materials-hero__forest-inner {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .materials-hero__actions {
    margin-top: 16px;
  }

  .materials-hero__actions .materials-btn-ghost {
    display: none;
  }
}

@media (max-height: 520px) and (min-width: 801px) {
  .materials-hero {
    min-height: 420px;
  }

  .materials-hero h1 {
    font-size: 44px;
  }

  .materials-hero__forest-inner {
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .materials-page *,
  .materials-page *::before,
  .materials-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
