.buyer {
  --paper: #f8f2e6;
  --ink: #321d16;
  --deep: #2a1a14;
  --muted: #645148;
  --line: #cdbbac;
  --orange: #f1a46e;
  --green: #42251a;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
.buyer-wrap { width: min(89%, 1480px); margin-inline: auto; }
.buyer-header { position:sticky; top:0; z-index:30; display:block; padding:0; height:auto; background:var(--paper); border-color:var(--line); }
.buyer-header > div { min-height:72px; display:flex; align-items:center; gap:28px; }
.buyer-brand, .buyer h1, .buyer h2, .buyer h3, .buyer-facts dd {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}
.buyer-brand { font-size: 28px; letter-spacing: -.045em; white-space: nowrap; }
.buyer-header nav { margin:0 0 0 auto; gap:clamp(14px,2.4vw,38px); font-size:14px; align-items:center; }
.buyer-header .buyer-nav-quote { font-weight:700; }
.buyer #language { color:inherit; padding:10px 6px; }
.buyer-hero {
  background: #241610 url('/assets/concept-lentils.jpg') center 55% / cover no-repeat;
  color: #fff3e4;
  position: relative;
  isolation: isolate;
  padding-block: clamp(62px, 7.5vw, 150px);
}
.buyer-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,#261711ec 0%,#29170dd4 29%,#26171144 61%,transparent 83%);
}
.buyer h1 { margin: 0 0 20px; font-size: clamp(46px, 6vw, 106px); letter-spacing: -.062em; line-height: .98; }
.buyer-hero p { max-width: 34ch; font-size: clamp(17px, 1.55vw, 24px); line-height: 1.4; margin-bottom: 29px; }
.buyer .button { background:var(--deep); color:#fff3e4; border-radius:4px; font-size:15px; padding:14px 23px; }
.buyer .button:hover { background:#563525; }
.buyer-hero .button { background:var(--orange); color:#25150e; font-weight:700; }
.buyer-hero .button:hover { background:#ffc395; }
.buyer-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding-block:22px; margin-block:0; border-bottom:1px solid var(--line); }
.buyer-facts div { display:grid; align-content:start; gap:4px; text-align:center; padding-inline:10px; }
.buyer-facts div + div { border-left:1px solid var(--line); }
.buyer-facts dd { grid-row:1; margin:0; font-size:clamp(19px,2.2vw,34px); letter-spacing:-.035em; }
.buyer-facts dt { font-size:13px; color:var(--muted); }
.buyer h2 { font-size:clamp(32px,3.5vw,59px); line-height:1.08; letter-spacing:-.05em; margin-bottom:26px; }
.buyer h3 { font-size:clamp(25px,2.5vw,40px); line-height:1.1; letter-spacing:-.04em; margin:15px 0 8px; }
.buyer-section { padding-block:clamp(48px,5.6vw,100px); }
.buyer-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,3vw,50px); }
.buyer-product-media { overflow:hidden; border-radius:3px; }
.buyer-product img { display:block; width:100%; height:clamp(160px,17vw,310px); object-fit:cover; border-radius:3px; }
.buyer-product:nth-child(2) img { object-position:right 85%; transform:scale(1.65); transform-origin:78% 70%; }
.buyer-product p { color:var(--muted); line-height:1.5; margin:0 0 14px; }
.buyer-link,.buyer-map summary {
  display:inline-flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:44px; max-width:100%; padding:10px 14px;
  background:#f2e4d2; color:var(--ink); border:1px solid #a58673; border-radius:5px;
  font-weight:700; font-size:14px; line-height:1.35; text-align:left; cursor:pointer;
}
.buyer-link:hover,.buyer-map summary:hover,.buyer-map[open] summary { background:#e8d5bf; }
.buyer-map summary { list-style:none; }
.buyer-map summary::-webkit-details-marker { display:none; }
.buyer-link::after {
  content:'+'; font-size:21px; line-height:1; color:#6d3a26;
}
.buyer-map summary::after {
  content:''; flex:none; width:7px; height:7px; margin:0 3px 4px 1px;
  border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg);
}
.buyer-map[open] summary::after { transform:rotate(225deg); margin-bottom:-3px; }
.buyer-production { background:var(--deep); color:#fff2e2; }
.buyer-section-rule { display:flex; align-items:center; gap:25px; margin-bottom:24px; }
.buyer-section-rule h2 { margin:0; }
.buyer-section-rule::after { content:''; height:1px; background:var(--orange); flex:1; }
.buyer-production .process-demo { display:grid; grid-template-columns:1.25fr 1fr; gap:clamp(20px,4vw,65px); align-items:center; }
.buyer-production .process-visual { height:clamp(220px,26vw,355px); background:#422b21; border-radius:4px; border:1px solid #795343; }
.buyer-production .process-bed { border-color:#b9876d; background:repeating-linear-gradient(90deg,#4f3529 0 18px,#c99d7d38 19px 20px); }
.buyer-production .process-bag { border-color:#e8c7a8; background:#d9ad8d29; }
.buyer-production .process { margin:0; }
.buyer-production .process li { border-color:#78594c; }
.buyer-production .process li > button { color:inherit; padding:16px 12px; }
.buyer-production .process li > button[aria-pressed="true"] { background:#4c3024; box-shadow:inset 2px 0 var(--orange); }
.buyer-production .process li > button span:first-child { color:#ffc198; }
.buyer-production .process li strong { font-size:18px; }
.buyer-production .process li p { font-size:14px; color:#e6c9b9; }
.buyer-visual-caption { color:#ddc0b0; font-size:13px; margin:12px 0 0; }
.buyer-shipping { display:grid; grid-template-columns:1fr 1fr; gap:clamp(26px,5vw,80px); }
.buyer-shipping > div + div { border-left:1px solid var(--line); padding-left:clamp(26px,5vw,80px); }
.buyer-shipping h2 { font-size:clamp(29px,3vw,49px); }
.buyer-shipping ul { margin:0; padding-left:1.2em; line-height:1.6; }
.buyer-shipping li + li { margin-top:8px; }
.buyer-map { margin-top:20px; }
.buyer-map summary { width:fit-content; }
.buyer-map .map-frame { margin-top:14px; background:#203c32; border-radius:4px; }
.buyer-map img { width:100%; height:auto; display:block; }
.buyer-map .map-routes { position:absolute; inset:0; width:100%; height:100%; }
.buyer #inquiry { padding-top:0; }
.buyer-quote {
  display:grid; grid-template-columns:minmax(200px,.7fr) minmax(0,1.4fr); gap:clamp(24px,4vw,65px);
  padding:clamp(20px,4vw,62px); border-radius:8px; background:#eee2d1;
}
.buyer-quote p { line-height:1.55; color:var(--muted); }
.buyer-preview-note { font-size:13px; }
.buyer-quote .form-grid { gap:14px 16px; }
.buyer-quote label { font-size:14px; color:var(--ink); }
.buyer-quote input,.buyer-quote select,.buyer-quote input,.buyer-quote select { min-height:44px; line-height:1.25; }
.buyer-quote select {
  -webkit-appearance:none; appearance:none;
  padding:10px 36px 10px 10px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23321d16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; background-size:14px;
  cursor:pointer;
}
.buyer-quote textarea {
  background:#fffaf0; color:var(--ink); border-color:#bba596; font-size:16px; padding:10px;
}
.buyer-quote textarea { min-height:86px; }
.buyer-quote form>.button { margin-top:16px; }
.buyer-quote #result { border-color:#ae8c76; }
.buyer-footer { display:block; padding:0; background:var(--deep); color:#fff3e4; font-size:14px; }
.buyer-footer-inner { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:28px; padding-block:36px; }
.buyer-footer-contact h2 { font-size:24px; margin-bottom:10px; }
.buyer-footer-contact p { margin-bottom:9px; }
.buyer-footer-quote { color:var(--orange); text-decoration:underline; text-underline-offset:4px; }
.buyer-versions { display:flex; gap:10px; }
.buyer-versions a { padding:5px; }
.buyer-versions a[aria-current] { font-weight:700; text-decoration:underline; }
.buyer dialog { background:var(--paper); color:var(--ink); }
.buyer dialog h2 { font-size:clamp(28px,4vw,40px); }
.buyer dialog .eyebrow { letter-spacing:normal; font-size:13px; color:var(--muted); }
@media(max-width:900px) {
  .buyer-header > div { gap:16px; min-height:65px; }
  .buyer-header nav { gap:14px; }
  .buyer-brand { font-size:25px; }
}
@media(max-width:760px) {
  .buyer-wrap { width:min(90%,1480px); }
  .buyer-header nav { top:65px; background:var(--paper); align-items:flex-start; }
  .buyer #menu { color:inherit; min-width:44px; min-height:44px; }
  .buyer #language { min-width:44px; min-height:44px; }
  .buyer-hero { background-position:58% center; padding-block:65px; }
  .buyer-hero::before { background:linear-gradient(90deg,#241610f3 0%,#241610be 60%,#24161048 100%); }
  .buyer h1 { font-size:clamp(37px,8.7vw,61px); }
  .buyer-facts dt { font-size:11px; }
  .buyer-facts dd { font-size:clamp(14px,4.3vw,28px); }
  .buyer-facts div { padding-inline:4px; }
  .buyer-products,.buyer-production .process-demo,.buyer-shipping,.buyer-quote { grid-template-columns:1fr; }
  .buyer-product img { height:clamp(175px,46vw,310px); }
  .buyer-shipping > div + div { padding:22px 0 0; border-left:0; border-top:1px solid var(--line); }
  .buyer-footer .buyer-brand { width:auto; }
}
@media(max-width:460px) {
  .buyer-quote .form-grid { grid-template-columns:1fr; }
}

.buyer-machine {
  position:absolute; left:35%; right:35%; top:12%; height:28%;
  border:1px solid #c79b82; border-radius:5px;
  background:linear-gradient(180deg,#a9816c,#654738);
  clip-path:polygon(0 0,100% 0,78% 72%,66% 72%,66% 100%,34% 100%,34% 72%,22% 72%);
  opacity:0; transform:translateY(-12px); transition:opacity .4s,transform .5s;
}
.buyer-production [data-stage="1"] .buyer-machine { opacity:1; transform:none; }
.buyer-process-progress { position:absolute; bottom:10px; inset-inline:12%; display:flex; gap:5px; }
.buyer-process-progress i { background:#886654; height:3px; flex:1; }
.buyer-production [data-stage="0"] .buyer-process-progress i:nth-child(1),
.buyer-production [data-stage="1"] .buyer-process-progress i:nth-child(2),
.buyer-production [data-stage="2"] .buyer-process-progress i:nth-child(3) { background:var(--orange); }
@media (prefers-reduced-motion:reduce) {
  .buyer-machine { transition:none; }
}

.buyer-production.is-scroll-driven {
  padding:0;
  min-height:calc(405svh - var(--nav-height));
}
.is-scroll-driven > .buyer-wrap {
  position:sticky; top:var(--nav-height);
  height:calc(100svh - var(--nav-height));
  display:flex; flex-direction:column; justify-content:center;
  padding-block:20px;
}
.is-scroll-driven .process-demo { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); }
.is-scroll-driven .process-visual { height:clamp(160px,40svh,355px); }
.is-scroll-driven .process-visual * { transition:none; }
.is-scroll-driven .process-visual .buyer-machine { opacity:var(--machine-visibility,0); transform:none; }
.is-scroll-driven .process-visual .process-bag { opacity:var(--bag-visibility,0); transform:none; }
.is-scroll-driven .process-visual[data-stage="2"] .process-bed { opacity:calc(1 - var(--bag-visibility,0)); }
.is-scroll-driven .process { display:grid; min-height:146px; align-content:center; }
.is-scroll-driven .process li { display:none; border:0; }
.is-scroll-driven .process li:has(button[aria-pressed="true"]) { display:block; }
.is-scroll-driven .process li button { pointer-events:none; }
.is-scroll-driven .process li strong { font-size:clamp(20px,2.6vw,36px); }
.is-scroll-driven .buyer-process-progress { display:block; height:3px; background:#886654; }
.is-scroll-driven .buyer-process-progress i { display:none; }
.is-scroll-driven .buyer-process-progress::after {
  content:''; display:block; height:100%; width:100%; transform-origin:left;
  transform:scaleX(var(--process-progress,0)); background:var(--orange);
}
@media(max-width:760px) {
  .is-scroll-driven .process-demo { grid-template-columns:minmax(0,1fr); gap:14px; }
  .is-scroll-driven .process-visual { height:clamp(140px,31svh,250px); }
  .is-scroll-driven .process { min-height:100px; }
  .is-scroll-driven .buyer-section-rule { margin-bottom:14px; }
}

.buyer-production .mill-scene { width:100%; height:100%; object-fit:contain; display:block; }
.buyer-production .process-bed,.buyer-production .process-bag,.buyer-production .process-grains { display:none; }

.buyer-handoffs { display:none; }
.is-scroll-driven .is-handoff .process { display:none; }
.is-scroll-driven .is-handoff .buyer-handoffs { display:grid; align-content:center; min-height:146px; }
.buyer-handoffs p { margin:0; padding:16px; color:#ffe8d6; font-size:clamp(16px,1.8vw,25px); }
@media(max-width:760px) { .is-scroll-driven .is-handoff .buyer-handoffs { min-height:100px; } }
