:root {
  --ticket-warm: #F8EEC6;
  --scrap-deep: #1C3220;
  --rust-copper: #D46A4C;
  --hoist-amber: #E8A44C;
  --magnet-grey: #AAA4A8;
  --ticket-edge: #E7D7A2;
  --rule-amber: #D9B470;
  --deep-line: #2C4630;
  --readout-line: #9C8A5E;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #F8EEC6;
  color: #1C3220;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: #D46A4C;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #B2472B;
}

/* ---------- NAVIGATION: WEIGH TICKET PADS ---------- */

.scalebay {
  background-color: #1C3220;
  width: 100%;
  border-bottom: 3px solid #D46A4C;
}

.scalebay-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.scalebay-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F8EEC6;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.01em;
  text-decoration: none;
  max-width: 320px;
  line-height: 1.25;
}

.scalebay-brand:hover {
  color: #E8A44C;
}

.scalebay-brand-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #AAA4A8;
  flex: 0 0 auto;
}

.scalebay-pads {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.scalebay-pad {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #F8EEC6;
  color: #1C3220;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 16px 10px 14px;
  border: 1px solid #E7D7A2;
  border-left: 4px solid #D46A4C;
  line-height: 1;
}

.scalebay-pad:hover {
  color: #B2472B;
  border-left-color: #1C3220;
}

.scalebay-stub {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #AAA4A8;
}

.scalebay-stamp {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #E8A44C;
  transform: rotate(45deg);
}

.scalebay-toggle {
  display: none;
  margin-left: auto;
  background-color: #D46A4C;
  color: #F8EEC6;
  border: 1px solid #F8EEC6;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 18px;
  cursor: pointer;
}

.scalebay-toggle:hover {
  background-color: #B2472B;
}

/* ---------- HERO: MAGNET BAY COLUMNS ---------- */

.magnetbay {
  background-color: #F8EEC6;
  border-bottom: 1px solid #D9B470;
}

.magnetbay-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 72px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 56px;
  align-items: center;
}

.magnetbay-copy {
  max-width: 640px;
}

.magnetbay-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A3D26;
  font-weight: bold;
  margin: 0 0 18px;
}

.magnetbay-title {
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 22px;
  color: #1C3220;
  font-weight: bold;
  letter-spacing: -0.01em;
}

.magnetbay-word {
  color: #D46A4C;
  font-style: italic;
}

.magnetbay-lede {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: #1C3220;
}

.magnetbay-link {
  color: #B2472B;
  font-weight: bold;
  white-space: nowrap;
}

.magnetbay-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #D46A4C;
  color: #F8EEC6;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 16px 30px;
  margin-top: 10px;
  border: none;
  letter-spacing: 0.02em;
}

.magnetbay-cta:hover {
  background-color: #B2472B;
  color: #F8EEC6;
}

/* Magnet rig illustration */

.magnetbay-rig {
  position: relative;
  height: 420px;
  background-color: #1C3220;
  border: 2px solid #2C4630;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.magnetbay-cable {
  width: 3px;
  height: 90px;
  background-color: #AAA4A8;
}

.magnetbay-disc {
  width: 150px;
  height: 46px;
  border-radius: 50%;
  background-color: #AAA4A8;
  border-bottom: 10px solid #8E888C;
  position: relative;
  z-index: 2;
}

.magnetbay-skip {
  margin-top: 14px;
  width: 210px;
  position: relative;
}

.magnetbay-skip-lip {
  width: 210px;
  height: 14px;
  background-color: #E8A44C;
  border-radius: 2px;
}

.magnetbay-skip-body {
  width: 180px;
  height: 96px;
  margin: 0 auto;
  background-color: #E8A44C;
  border-left: 6px solid #C78A32;
  border-right: 6px solid #C78A32;
  border-bottom: 6px solid #C78A32;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
}

.magnetbay-readout {
  margin-top: 22px;
  width: 180px;
  background-color: #F8EEC6;
  border: 1px solid #9C8A5E;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.magnetbay-readout-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #1C3220;
  font-weight: bold;
}

.magnetbay-readout-line {
  display: block;
  height: 3px;
  background-color: #9C8A5E;
}

.magnetbay-readout-short {
  width: 60%;
}

/* ---------- SECTIONS: BALER ROW RUN ---------- */

.balerrow {
  background-color: #F8EEC6;
  width: 100%;
}

.balerrow-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 24px;
}

.balerrow-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.balerrow-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A3D26;
  font-weight: bold;
  margin: 0 0 14px;
}

.balerrow-title {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #1C3220;
  font-weight: bold;
}

.balerrow-intro {
  font-size: 17px;
  line-height: 1.7;
  color: #1C3220;
  margin: 0;
}

.balerrow-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 34px;
  gap: 22px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid #D9B470;
}

.balerrow-item:first-of-type {
  border-top: 1px solid #D9B470;
}

.balerrow-glyph {
  width: 46px;
  height: 46px;
  position: relative;
  margin-top: 4px;
}

.balerrow-hook {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 26px;
  background-color: #AAA4A8;
  transform: translateX(-50%);
}

.balerrow-hook::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid #AAA4A8;
  border-radius: 50%;
  transform: translateX(-50%);
}

.balerrow-body h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #1C3220;
  font-weight: bold;
}

.balerrow-body p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
  color: #1C3220;
}

.balerrow-body p:last-child {
  margin-bottom: 0;
}

.balerrow-bale {
  display: block;
  width: 28px;
  height: 28px;
  background-color: #D46A4C;
  border: 2px solid #B2472B;
  margin-top: 8px;
  position: relative;
}

.balerrow-bale::before,
.balerrow-bale::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background-color: #8A3D26;
}

.balerrow-bale::before {
  top: 8px;
}

.balerrow-bale::after {
  bottom: 8px;
}

.balerrow-cta {
  margin-top: 6px;
}

/* ---------- ACCENT STRIP: LOAD BAND ---------- */

.loadband {
  background-color: #D46A4C;
  color: #F8EEC6;
  width: 100%;
  border-top: 3px solid #1C3220;
  border-bottom: 3px solid #1C3220;
}

.loadband-gantry {
  background-color: #F8EEC6;
  height: 46px;
  position: relative;
  border-bottom: 3px solid #1C3220;
}

.loadband-beam {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 60%;
  height: 8px;
  background-color: #AAA4A8;
  transform: translateX(-50%);
}

.loadband-block {
  position: absolute;
  top: 18px;
  width: 18px;
  height: 18px;
  background-color: #1C3220;
}

.loadband-block-a {
  left: 34%;
}

.loadband-block-b {
  left: 62%;
}

.loadband-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px;
  text-align: center;
  font-size: 19px;
  line-height: 1.6;
  color: #F8EEC6;
  font-weight: bold;
}

/* ---------- CONTACT FORM ---------- */

.contact-form {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1C3220;
}

.contact-field input,
.contact-field textarea {
  font-family: Georgia, serif;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #9C8A5E;
  background-color: #FBF5DD;
  color: #1C3220;
  border-radius: 0;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid #D46A4C;
  outline-offset: 1px;
}

.contact-submit {
  align-self: flex-start;
  background-color: #D46A4C;
  color: #F8EEC6;
  border: none;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 30px;
  cursor: pointer;
}

.contact-submit:hover {
  background-color: #B2472B;
}

.contact-status {
  font-size: 15px;
  color: #1C3220;
  margin: 0;
  min-height: 1.2em;
}

/* ---------- FOOTER: YARD CLOSER ---------- */

.yardyfoot {
  background-color: #F8EEC6;
  border-top: 3px solid #1C3220;
  width: 100%;
}

.yardyfoot-rule {
  position: relative;
  height: 44px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.yardyfoot-plate {
  width: 60px;
  height: 10px;
  background-color: #AAA4A8;
}

.yardyfoot-stack {
  width: 14px;
  height: 14px;
  background-color: #E8A44C;
  border: 1px solid #C78A32;
}

.yardyfoot-fence {
  width: 80px;
  height: 12px;
  background-color: #1C3220;
  border-left: 8px solid #2C4630;
  border-right: 8px solid #2C4630;
}

.yardyfoot-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 8px;
  text-align: center;
  font-size: 15px;
  color: #1C3220;
}

.yardyfoot-links a {
  color: #1C3220;
  text-decoration: none;
  font-weight: bold;
}

.yardyfoot-links a:hover {
  color: #B2472B;
  text-decoration: underline;
  text-decoration-color: #AAA4A8;
}

.yardyfoot-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 40px;
  text-align: center;
}

.yardyfoot-brand {
  font-size: 18px;
  font-weight: bold;
  color: #1C3220;
  margin: 0 0 10px;
}

.yardyfoot-blurb {
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #1C3220;
}

.yardyfoot-meta {
  font-size: 13px;
  line-height: 1.7;
  color: #1C3220;
  margin: 0;
}

.yardyfoot-ticket {
  display: inline-block;
  width: 12px;
  height: 8px;
  background-color: #D46A4C;
  margin-right: 4px;
  vertical-align: middle;
}

/* ---------- SCROLL REVEAL ---------- */

.reveal-target {
  opacity: 1;
  transform: none;
}

.js-reveal-ready .reveal-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-reveal-ready .reveal-target.is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .magnetbay-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 24px 56px;
  }

  .magnetbay-title {
    font-size: 40px;
  }

  .magnetbay-rig {
    max-width: 420px;
    margin: 0 auto;
  }

  .balerrow-item {
    grid-template-columns: 46px 1fr;
  }

  .balerrow-bale {
    display: none;
  }
}

@media (max-width: 720px) {
  .scalebay-inner {
    padding: 10px 18px;
    gap: 12px;
  }

  .scalebay-brand {
    max-width: none;
    font-size: 14px;
  }

  .scalebay-toggle {
    display: inline-block;
  }

  .scalebay-pads {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    margin-left: 0;
  }

  .scalebay-pads.scalebay-open {
    display: flex;
  }

  .scalebay-pad {
    width: 100%;
    padding: 12px 14px;
  }

  .magnetbay-title {
    font-size: 32px;
  }

  .balerrow-title {
    font-size: 28px;
  }

  .balerrow-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .balerrow-glyph {
    display: none;
  }

  .loadband-text {
    font-size: 17px;
  }
}
