:root {
  --ink: #101418;
  --ink-soft: #303942;
  --muted: #67717c;
  --line: #d7dde3;
  --paper: #f4f1ec;
  --paper-cool: #eef2f4;
  --white: #ffffff;
  --charcoal: #111820;
  --green: #355f53;
  --green-deep: #1f4038;
  --blue: #215f90;
  --red: #b84b3f;
  --gold: #c4a15a;
  --shadow: 0 18px 45px rgba(11, 18, 24, 0.14);
  --radius: 8px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(16, 20, 24, 0.1);
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 17px;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.top-nav a {
  padding: 9px 11px;
  border-bottom: 2px solid transparent;
  color: #28313a;
  font-size: 14px;
  font-weight: 760;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--red);
  color: var(--green-deep);
  outline: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(760px, 78svh);
  overflow: hidden;
  background: #f8f7f3;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background:
    url("site-assets/2024-catalogue-images/image-093.jpg") 56% 50% / cover no-repeat;
  filter: saturate(0.98) contrast(1.02) brightness(1.03);
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 247, 243, 0.98), rgba(248, 247, 243, 0.9) 43%, rgba(248, 247, 243, 0.42)),
    linear-gradient(0deg, rgba(248, 247, 243, 0.88), transparent 42%);
}

.hero-inner {
  width: min(var(--max), calc(100% - clamp(36px, 8vw, 108px)));
  margin-inline: auto;
  padding-block: clamp(62px, 9vw, 112px);
  color: var(--ink);
}

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

.dark-section .eyebrow {
  color: #e2b96a;
}

.hero .eyebrow {
  color: var(--red);
}

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

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #9f3d34;
  outline: 0;
}

.button-secondary {
  border-color: rgba(16, 20, 24, 0.22);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.section .button-secondary,
.contact-section .button-secondary,
.quote-section .button-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--green);
  outline: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin: 42px 0 0;
  border: 1px solid rgba(16, 20, 24, 0.14);
  background: rgba(16, 20, 24, 0.12);
}

.hero-metrics div {
  min-height: 94px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.hero-metrics dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid rgba(16, 20, 24, 0.1);
  background: var(--line);
}

.intro-strip > div {
  min-height: 104px;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 56px);
  background: #faf8f4;
}

.strip-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.intro-strip strong {
  display: block;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.24;
}

.section {
  padding: clamp(64px, 8vw, 116px) clamp(18px, 4vw, 54px);
  background: var(--white);
}

.section-tight {
  padding-top: clamp(56px, 7vw, 94px);
}

.section-heading,
.machine-grid,
.application-layout,
.advantage-grid,
.table-controls,
.table-wrap,
.process-grid,
.quote-layout,
.gallery-grid,
.contact-layout {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(0, 0.76fr);
  gap: clamp(20px, 5vw, 70px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading-narrow {
  display: block;
  max-width: 860px;
  margin-left: 0;
}

.section-heading-narrow p:not(.eyebrow) {
  margin-top: 16px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(var(--max), 100%);
  margin: 0 auto 22px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  outline: 0;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.machine-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.machine-card[hidden] {
  display: none;
}

.image-button,
.feature-image,
.gallery-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  cursor: zoom-in;
}

.image-button img,
.feature-image img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.image-button:hover img,
.feature-image:hover img,
.gallery-grid button:hover img {
  filter: brightness(1.08) contrast(1.05);
  transform: scale(1.025);
}

.machine-card .image-button {
  background: #f7f7f3;
}

.machine-card .image-button img {
  object-fit: contain;
}

.machine-card:nth-child(1) .image-button img {
  object-position: 50% 50%;
}

.machine-card:nth-child(2) .image-button img {
  object-position: 50% 50%;
}

.machine-card:nth-child(3) .image-button img {
  object-position: 50% 50%;
}

.machine-card:nth-child(4) .image-button img {
  object-position: 50% 50%;
}

.machine-card:nth-child(5) .image-button img {
  object-position: 50% 48%;
}

.machine-card:nth-child(6) .image-button img {
  object-position: 50% 50%;
}

.machine-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.machine-tag {
  width: max-content;
  max-width: 100%;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.machine-copy p,
.compact-list {
  margin-bottom: 0;
  color: var(--muted);
}

.compact-list {
  padding-left: 1.1em;
}

.compact-list li {
  margin: 7px 0;
}

.split-section,
.process-section,
.quote-section {
  background: var(--paper-cool);
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.feature-image {
  min-height: 560px;
  box-shadow: var(--shadow);
}

.feature-image img {
  object-position: 50% 52%;
}

.application-grid,
.process-grid,
.advantage-grid {
  display: grid;
  gap: 14px;
}

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

.application-grid article,
.process-grid article,
.advantage-grid article {
  border: 1px solid rgba(16, 20, 24, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

.application-grid article {
  min-height: 248px;
  padding: 26px;
}

.application-grid span,
.process-grid span {
  display: block;
  margin-bottom: 32px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.application-grid p,
.process-grid p,
.advantage-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.dark-section {
  background: var(--charcoal);
  color: #fff;
}

.dark-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

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

.advantage-grid article {
  min-height: 238px;
  padding: 26px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
}

.advantage-grid h3 {
  color: #fff;
}

.advantage-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.table-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.table-controls label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

select,
input {
  padding: 9px 11px;
}

textarea {
  min-height: 126px;
  padding: 11px;
  resize: vertical;
}

.table-controls select {
  width: min(260px, 100%);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.spec-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  background: var(--green-deep);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table tbody tr[hidden] {
  display: none;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), 100%);
  margin-top: 32px;
}

.process-grid article {
  min-height: 250px;
  padding: 26px;
  background: #fff;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.selector-panel,
.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.selector-panel label,
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.recommendation {
  display: grid;
  gap: 7px;
  min-height: 106px;
  padding: 18px;
  border-left: 4px solid var(--red);
  background: #f8f6f0;
}

.recommendation strong {
  font-size: 20px;
}

.recommendation span {
  color: var(--muted);
}

.gallery-section {
  background: #f9f8f5;
}

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

.gallery-grid button {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-grid span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px 10px;
  background: rgba(12, 18, 24, 0.76);
  color: #fff;
  font-size: 13px;
  font-weight: 780;
  text-align: left;
}

.contact-section {
  background:
    linear-gradient(135deg, #12231f, #1f4038 58%, #f4f1ec 58.2%, #f4f1ec);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-list a,
.contact-list address {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: #fff;
  outline: 0;
}

.contact-form {
  box-shadow: none;
}

.form-actions {
  align-items: center;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-deep);
  font-weight: 760;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px);
  background: #0d1116;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.sticky-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.sticky-contact a {
  min-width: 116px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(17, 24, 32, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 820;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.lightbox {
  width: min(94vw, 1280px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(8, 11, 15, 0.86);
}

.lightbox img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .machine-grid,
  .advantage-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .application-layout,
  .quote-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  .brand {
    min-width: auto;
  }

  .nav-toggle {
    display: block;
  }

  .top-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 18px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 241, 236, 0.98);
  }

  body.nav-open .top-nav {
    display: flex;
  }

  .top-nav a {
    min-height: 44px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 72svh;
  }

  .hero-inner {
    width: min(100% - 36px, var(--max));
    padding-block: 54px 68px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .hero-metrics,
  .intro-strip,
  .section-heading,
  .machine-grid,
  .application-grid,
  .advantage-grid,
  .process-grid,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .machine-card {
    grid-template-rows: 230px 1fr;
  }

  .feature-image {
    min-height: 330px;
  }

  .table-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .table-controls select {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .sticky-contact {
    right: 10px;
    bottom: 10px;
  }

  .sticky-contact a {
    min-width: 96px;
  }
}

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-metrics div,
  .intro-strip > div,
  .machine-copy,
  .application-grid article,
  .advantage-grid article,
  .process-grid article,
  .selector-panel,
  .contact-form {
    padding: 20px;
  }

  .sticky-contact {
    left: 10px;
    right: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
