:root {
  --millst: #EAECE6;
  --waybill: #2C3834;
  --boxcar-blue: #187888;
  --woodstock: #1C2620;
  --mill-panel: #D8DCD6;
  --millrace: #BD9337;
  --stonechip: #9DAAA5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  background: #EAECE6;
  color: #2C3834;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #2C3834;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2.1rem;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.28rem;
}

p {
  margin: 0 0 18px;
}

a {
  color: #187888;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.waterwheel {
  position: relative;
  padding: 0 24px;
  margin: 0 auto;
  max-width: 1240px;
}

.waterwheel-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0 0;
}

.waterwheel-rim {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #D8DCD6;
  border: 6px solid #9DAAA5;
  flex: 0 0 auto;
  margin-left: -34px;
}

.waterwheel-rim::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 8px solid #BD9337;
  background: #EAECE6;
}

.waterwheel-rim::after {
  content: "";
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  background: #2C3834;
  border: 5px solid #187888;
}

.waterwheel-spoke {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 84%;
  height: 3px;
  background: #BD9337;
  transform-origin: center;
}

.waterwheel-spoke.s1 { transform: translateY(-50%) rotate(0deg); }
.waterwheel-spoke.s2 { transform: translateY(-50%) rotate(60deg); }
.waterwheel-spoke.s3 { transform: translateY(-50%) rotate(120deg); }

.waterwheel-axle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: #1C2620;
  color: #EAECE6;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 4px;
  border: 3px solid #9DAAA5;
  white-space: nowrap;
  margin-left: 18px;
}

.waterwheel-buckets {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
}

.waterwheel-bucket {
  background: #D8DCD6;
  border: 2px solid #9DAAA5;
  border-top: 4px solid #BD9337;
  padding: 9px 18px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2C3834;
  border-radius: 0 0 6px 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.waterwheel-bucket:nth-child(2) { margin-top: 10px; }
.waterwheel-bucket:nth-child(3) { margin-top: 2px; }
.waterwheel-bucket:nth-child(4) { margin-top: 14px; }
.waterwheel-bucket:nth-child(5) { margin-top: 5px; }

.waterwheel-bucket:hover {
  background: #187888;
  color: #EAECE6;
  text-decoration: none;
}

.waterwheel-bucket.wheel-active {
  background: #187888;
  color: #EAECE6;
  border-top-color: #BD9337;
}

.waterwheel-rule {
  flex: 1 1 60px;
  height: 2px;
  background: #9DAAA5;
  min-width: 24px;
}

.mobile-toggle {
  display: none;
  background: #1C2620;
  color: #EAECE6;
  border: 2px solid #9DAAA5;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}

.millrace {
  display: grid;
  grid-template-columns: 56% 44%;
  gap: 0;
  max-width: 1240px;
  margin: 40px auto 0;
  padding: 0 24px;
  align-items: stretch;
}

.millrace-text {
  padding: 30px 44px 34px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.millrace-eyebrow {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #187888;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #9DAAA5;
  display: inline-block;
}

.millrace-headline {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #2C3834;
  margin: 0 0 6px;
  line-height: 1.15;
}

.millrace-display {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.4rem;
  font-weight: 700;
  color: #187888;
  line-height: 0.95;
  margin: 4px 0 22px;
  letter-spacing: -0.02em;
}

.millrace-copy {
  font-size: 1.06rem;
  max-width: 540px;
  margin-bottom: 26px;
}

.millrace-link {
  font-weight: 700;
  color: #187888;
  border-bottom: 2px solid #187888;
  padding-bottom: 1px;
}

.millrace-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #187888;
  color: #EAECE6;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 24px;
  max-width: 540px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.millrace-cta:hover {
  background: #1C2620;
  text-decoration: none;
}

.millrace-cta .cta-arrow {
  font-size: 1.4rem;
  line-height: 1;
}

.millrace-art {
  position: relative;
  background: #D8DCD6;
  border: 3px solid #9DAAA5;
  min-height: 480px;
  overflow: hidden;
}

.race-channel {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22%;
  bottom: 20%;
  background: #EAECE6;
  border: 4px solid #9DAAA5;
}

.race-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: #187888;
}

.race-water::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: #BD9337;
}

.race-stone {
  position: absolute;
  width: 46px;
  height: 26px;
  background: #9DAAA5;
  border: 2px solid #EAECE6;
  border-radius: 3px;
}

.race-stone.r1 { top: 26%; left: 12%; }
.race-stone.r2 { top: 48%; right: 14%; }
.race-stone.r3 { top: 68%; left: 18%; }

.race-gate {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 30%;
  background: #1C2620;
  border: 3px solid #BD9337;
  z-index: 2;
}

.race-gate::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -34px;
  height: 34px;
  background: #187888;
  border-left: 3px solid #BD9337;
  border-right: 3px solid #BD9337;
}

.race-gate-handle {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 22px;
  background: #BD9337;
}

.race-sack {
  position: absolute;
  bottom: 22%;
  right: 8%;
  width: 74px;
  height: 92px;
  background: #BD9337;
  border: 3px solid #1C2620;
  border-radius: 42% 42% 14% 14%;
  z-index: 2;
}

.race-sack::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 10px;
  background: #1C2620;
  border-radius: 4px;
}

.race-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: #1C2620;
  border-top: 6px solid #9DAAA5;
}

.race-dock::after {
  content: "";
  position: absolute;
  left: 8%;
  top: -12px;
  width: 60px;
  height: 12px;
  background: #187888;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

.section-head .kicker {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #187888;
  display: block;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 1.06rem;
  color: #2C3834;
}

.waybillstub {
  background: #D8DCD6;
  border: 3px solid #9DAAA5;
  border-top: 10px solid #1C2620;
  padding: 40px 32px 36px;
  position: relative;
}

.waybillstub-clip {
  position: absolute;
  top: -10px;
  left: 42px;
  width: 74px;
  height: 30px;
  background: #1C2620;
  border: 3px solid #BD9337;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.waybillstub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
}

.waybillstub-item {
  background: #EAECE6;
  border-left: 6px solid #187888;
  padding: 22px 24px;
  position: relative;
  box-shadow: 4px 4px 0 #9DAAA5;
}

.waybillstub-item:nth-child(1) { flex: 0 1 54%; transform: rotate(-0.6deg); }
.waybillstub-item:nth-child(2) { flex: 0 1 40%; transform: rotate(0.5deg); }
.waybillstub-item:nth-child(3) { flex: 0 1 45%; transform: rotate(0.4deg); }
.waybillstub-item:nth-child(4) { flex: 0 1 47%; transform: rotate(-0.5deg); }
.waybillstub-item:nth-child(5) { flex: 0 1 52%; transform: rotate(0.6deg); }
.waybillstub-item:nth-child(6) { flex: 0 1 42%; transform: rotate(-0.4deg); }

.waybillstub-mark {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9DAAA5;
  display: block;
  margin-bottom: 8px;
}

.waybillstub-item::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #187888;
}

.waybillstub-item h3 {
  margin-bottom: 8px;
  padding-right: 28px;
}

.waybillstub-item p {
  margin: 0;
  font-size: 0.98rem;
}

.waybillstub-item a {
  font-weight: 700;
}

.sluicegateband {
  background: #1C2620;
  color: #EAECE6;
  margin: 24px 0;
}

.sluicegateband-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.sluicegateband-gate {
  position: relative;
  width: 90px;
  height: 74px;
  flex: 0 0 auto;
}

.sluicegateband-frame {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 26px;
  background: #D8DCD6;
  border: 3px solid #BD9337;
}

.sluicegateband-door {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 24px;
  background: #BD9337;
  border: 2px solid #EAECE6;
}

.sluicegateband-jet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 16px;
  height: 26px;
  background: #187888;
}

.sluicegateband-text {
  font-size: 1.2rem;
  color: #EAECE6;
  margin: 0;
  max-width: 860px;
  font-family: Georgia, "Times New Roman", serif;
}

.sluicegateband-text a {
  color: #EAECE6;
  border-bottom: 2px solid #BD9337;
  font-weight: 700;
}

.prose-block {
  max-width: 820px;
  margin-bottom: 28px;
}

.prose-block p {
  font-size: 1.04rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.col-card {
  background: #D8DCD6;
  border: 2px solid #9DAAA5;
  padding: 28px 30px;
}

.col-card h3 {
  color: #187888;
}

.rule-line {
  border: none;
  border-top: 2px solid #9DAAA5;
  margin: 48px auto;
  max-width: 1192px;
}

.loadingdock2 {
  background: #1C2620;
  color: #EAECE6;
  position: relative;
  margin-top: 40px;
}

.loadingdock2-lip {
  height: 34px;
  background: #D8DCD6;
  border-bottom: 6px solid #9DAAA5;
  position: relative;
}

.loadingdock2-lip::before {
  content: "";
  position: absolute;
  left: 8%;
  top: -10px;
  width: 90px;
  height: 10px;
  background: #187888;
}

.loadingdock2-lip::after {
  content: "";
  position: absolute;
  right: 10%;
  top: 8px;
  width: 54px;
  height: 16px;
  background: #1C2620;
  border-radius: 8px;
}

.loadingdock2-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 24px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
}

.loadingdock2-brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #EAECE6;
  margin: 0 0 14px;
}

.loadingdock2-blurb {
  color: #EAECE6;
  max-width: 520px;
  margin-bottom: 22px;
}

.loadingdock2-contact {
  color: #EAECE6;
  font-size: 0.98rem;
  line-height: 2;
}

.loadingdock2-contact a {
  color: #EAECE6;
  border-bottom: 1px solid #9DAAA5;
}

.loadingdock2-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.loadingdock2-links li {
  margin-bottom: 10px;
}

.loadingdock2-links a {
  color: #EAECE6;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
}

.loadingdock2-links a:hover {
  color: #BD9337;
}

.loadingdock2-base {
  border-top: 1px solid #9DAAA5;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px 22px;
  font-size: 0.9rem;
  color: #EAECE6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loadingdock2-wheel {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #BD9337;
  display: inline-block;
  background: #1C2620;
}

.form-field {
  margin: 0 0 16px;
}

.form-field label {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #1C2620;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: #2C3834;
  background: #EAECE6;
  border: 2px solid #9DAAA5;
  padding: 12px 14px;
  border-radius: 2px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #187888;
}

.form-submit {
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.96rem;
  color: #1C2620;
}

.faq-list {
  max-width: 860px;
}

.faq-item {
  background: #D8DCD6;
  border: 2px solid #9DAAA5;
  margin-bottom: 14px;
}

.faq-question {
  display: block;
  width: 100%;
  text-align: left;
  background: #D8DCD6;
  border: none;
  border-left: 6px solid #187888;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  color: #2C3834;
  padding: 16px 20px;
  cursor: pointer;
}

.faq-question:hover {
  background: #EAECE6;
}

.faq-answer {
  display: none;
  padding: 0 20px 16px 26px;
}

.faq-open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
}

.reveal {
  visibility: visible;
  transform: none;
}

.js-ready .reveal {
  visibility: hidden;
  transform: translateY(22px);
  transition: transform 0.6s ease;
}

.js-ready .reveal.is-visible {
  visibility: visible;
  transform: none;
}

@media (max-width: 900px) {
  .millrace {
    grid-template-columns: 1fr;
  }

  .millrace-text {
    padding: 20px 0 30px;
  }

  .millrace-art {
    min-height: 400px;
    order: -1;
  }

  .millrace-display {
    font-size: 4rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .loadingdock2-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 700px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .waterwheel-inner {
    flex-wrap: wrap;
    gap: 14px;
  }

  .waterwheel-rim {
    margin-left: 0;
    width: 100px;
    height: 100px;
  }

  .waterwheel-rim::after {
    inset: 40px;
  }

  .waterwheel-axle {
    font-size: 0.75rem;
    padding: 6px 10px;
    margin-left: 10px;
  }

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

  .waterwheel-buckets {
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  .waterwheel-buckets.wheel-open {
    display: flex;
  }

  .waterwheel-rule {
    display: none;
  }

  .waybillstub-item {
    flex: 1 1 100% !important;
    transform: none !important;
  }

  .millrace-headline {
    font-size: 2rem;
  }

  .millrace-display {
    font-size: 3.4rem;
  }

  .sluicegateband-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
