:root {
  color-scheme: light;
  --ink: #171a1f;
  --muted: #66717f;
  --paper: #f6f3ed;
  --panel: #ffffff;
  --line: #ddd8ce;
  --green: #145944;
  --green-2: #0d3f33;
  --gold: #b2753d;
  --stone: #30343a;
  --shadow: 0 18px 48px rgba(23, 26, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(246, 243, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--green-2);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 8px 10px;
  color: #4a525c;
  border: 1px solid transparent;
  font-size: 14px;
}

.nav a:hover {
  color: var(--green-2);
  border-color: var(--line);
  background: #fff;
}

.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 860px);
  color: #fff;
  background: #0f1214;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 0.38fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  opacity: 0.86;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img:first-child {
  grid-row: 1 / 3;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(8, 11, 12, 0.86), rgba(8, 11, 12, 0.55) 48%, rgba(8, 11, 12, 0.18));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 36px));
  min-height: inherit;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 78px 0 110px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b7eadb;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(44px, 8vw, 98px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.14;
}

h4 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  font-weight: 800;
}

.button.primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.quick-stats {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: -62px auto 0;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-stats article {
  min-height: 122px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.quick-stats article:last-child {
  border-right: 0;
}

.quick-stats strong {
  display: block;
  color: var(--green-2);
  font-size: 32px;
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(260px, 0.52fr);
  gap: 42px;
  align-items: end;
}

.section-heading p:not(.eyebrow),
.value-grid p,
.category-copy p,
.product-card p,
.application-card p,
.export-copy p,
.export-card li {
  color: var(--muted);
  line-height: 1.75;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-grid article {
  min-height: 230px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
}

.value-grid span,
.category-copy span,
.product-card span,
.project-card span,
.tile span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.value-grid h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.category-tabs button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: #3f4650;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.category-tabs button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.category-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.35fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: start;
}

.category-copy {
  position: sticky;
  top: 100px;
  padding: 30px;
  color: #fff;
  background: var(--green-2);
}

.category-copy span {
  color: #b7eadb;
}

.category-copy h3 {
  margin: 16px 0 18px;
}

.category-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e5ded2;
}

.product-card div {
  padding: 18px;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.application-card {
  background: #fff;
  border: 1px solid var(--line);
}

.application-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.application-card div {
  padding: 18px;
}

.application-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.project-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  background: #111;
}

.project-card.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.project-card span {
  color: #b7eadb;
}

.project-card h3 {
  margin: 7px 0 0;
  font-size: 20px;
}

.export {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.export-copy,
.export-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
}

.export-copy {
  color: #fff;
  background: var(--stone);
}

.export-copy .eyebrow {
  color: #b7eadb;
}

.export-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.export-card {
  background: #fff;
}

.export-card h3 {
  margin-bottom: 16px;
  font-size: 26px;
}

.export-card ul {
  margin: 0;
  padding-left: 20px;
}

.export-card li + li {
  margin-top: 10px;
}

.gallery-section {
  padding-bottom: 72px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #eee9df;
  border: 1px solid var(--line);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.search span {
  color: var(--muted);
  font-size: 14px;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filters button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: #424851;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.filters button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-top: 16px;
}

.tile {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e5ded2;
}

.tile figcaption {
  padding: 10px;
}

.tile strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tile span {
  display: inline-block;
  margin-top: 6px;
}

.empty {
  margin: 56px 0;
  color: var(--muted);
  text-align: center;
}

.lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: #050505;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #111;
}

.lightbox-meta a {
  color: #b7eadb;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 58px);
  color: var(--muted);
  background: #eee9df;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .value-grid,
  .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-panel,
  .export {
    grid-template-columns: 1fr;
  }

  .category-copy {
    position: static;
  }

  .project-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 820px) {
  .topbar,
  .section-heading.split,
  .toolbar {
    display: block;
  }

  .nav {
    margin-top: 10px;
    justify-content: flex-start;
  }

  .hero-media {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .hero-media img:not(:first-child) {
    display: none;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(8, 11, 12, 0.88), rgba(8, 11, 12, 0.24));
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-stats article:nth-child(2) {
    border-right: 0;
  }

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

  .section {
    padding-top: 66px;
  }

  .section-heading.split > p {
    margin-top: 12px;
  }

  .filters {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 650px;
  }

  .hero-copy {
    justify-content: flex-end;
    padding-bottom: 84px;
  }

  .quick-stats,
  .value-grid,
  .product-grid,
  .application-grid,
  .project-board,
  .gallery {
    grid-template-columns: 1fr;
  }

  .quick-stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-stats article:last-child {
    border-bottom: 0;
  }

  .project-card.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lightbox-meta {
    display: block;
  }

  .lightbox-meta a {
    display: inline-block;
    margin-top: 8px;
  }
}
