:root {
  --green-deep: #2d5016;
  --green-mid: #4a7c2f;
  --green-light: #e8f0de;
  --blue-deep: #0d2b45;
  --blue-mid: #1b4f72;
  --gold: #c8963e;
  --off-white: #f8f7f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2933;
  background: var(--off-white);
  font-family: "DM Sans", sans-serif;
}

img {
  display: block;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.image-fallback {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 2rem;
  color: rgba(13, 43, 69, 0.65);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(232, 240, 222, 0.8), rgba(248, 247, 244, 0.96)),
    repeating-linear-gradient(45deg, rgba(13, 43, 69, 0.05) 0 8px, transparent 8px 16px);
}

.grain-grid {
  background-image: radial-gradient(rgba(45, 80, 22, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}

.clip-port {
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.table-wrap {
  overflow-x: auto;
  box-shadow: 0 24px 70px rgba(13, 43, 69, 0.08);
}

.factory-placeholder {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(156, 163, 175, 0.7);
  background: #f3f4f6;
  color: #9ca3af;
}

.field-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.9rem 1rem;
  color: #fff;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.field-input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.field-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.13);
}

.menu-glyph,
.menu-glyph::before,
.menu-glyph::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
}

.menu-glyph {
  position: relative;
}

.menu-glyph::before,
.menu-glyph::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-glyph::before {
  top: -0.45rem;
}

.menu-glyph::after {
  top: 0.45rem;
}

.light-input {
  width: 100%;
  border: 1px solid rgba(13, 43, 69, 0.14);
  background: #fff;
  padding: 0.95rem 1rem;
  color: var(--blue-deep);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.light-input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 4px rgba(74, 124, 47, 0.1);
}

.page-hero {
  min-height: 540px;
  padding-top: 9rem;
}

.masonry-grid {
  columns: 3 220px;
  column-gap: 1rem;
}

.masonry-grid > * {
  break-inside: avoid;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .clip-port {
    clip-path: none;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 460px;
    padding-top: 7.5rem;
  }

  .nav-link::after {
    display: none;
  }
}
