/*
 * Agricultural application pages (AgricultureApps module). Loaded after
 * ms.css, whose heading, note and call-to-action styles the block keeps.
 * Logical properties only (RTL for ar and he). Button labels never wrap.
 * Motion runs only under .aga-motion (set by aga.js when the visitor has
 * not asked for reduced motion); without it every element is in its final
 * state.
 *
 * Six ecosystem styles, one per application: bucket (feed mills), hopper
 * (bulk storage), airflow (livestock houses), sunpath (greenhouses),
 * trestle (conveyors and silo supports), furrow (farm buildings).
 */

/* Section headings follow the site token --fs-h2 (Admin → Appearance → Typography). */
.lp-sec.aga-sec .ctas .btn { white-space: nowrap; }
.lp-sec.aga-sec :where(.ms-note, .lw-note) + .ctas { margin-block-start: var(--flow-gap); }

/* ------------------------------------------------------------------ */
/* Ecosystem: section and shared node                                   */
/* ------------------------------------------------------------------ */
.aga-eco { --aga-leaf: #8CC56B; --aga-grain: #E3B74E; position: relative; overflow: hidden; }
.aga-eco::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgba(165, 0, 0, .2), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(227, 183, 78, .1), transparent 50%); pointer-events: none; }
.aga-eco > .wrap { position: relative; }
.aga-eco .lp-lede { color: var(--mist); }
.aga-eco-stage { margin-block-start: var(--space-6, 40px); }

.aga-node { position: relative; display: flex; align-items: flex-start; gap: var(--space-2, 12px); color: var(--white); text-decoration: none; }
a.aga-node:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.aga-node-no { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--gold); }
.aga-node-ico { display: inline-grid; place-items: center; flex: none; inline-size: 40px; block-size: 40px; background: var(--navy-700); color: #FF8A8A; transition: background .25s ease, color .25s ease; }
.aga-node-ico .ico { inline-size: 22px; block-size: 22px; }
.aga-node-body { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.aga-node-title { font-family: var(--f-card-title); font-size: var(--fs-card-title-sm, 17px); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); line-height: 1.15; text-transform: var(--tt-card-title); color: var(--white); }
.aga-node-text { font-size: 14px; line-height: 1.5; color: var(--mist); }
.aga-node-go { margin-inline-start: auto; flex: none; color: #FF8A8A; transition: transform .2s ease; }
[dir="rtl"] .aga-node-go { transform: scaleX(-1); }
a.aga-node:is(:hover, :focus-visible) .aga-node-ico, .aga-node.is-hot .aga-node-ico { background: var(--red); color: var(--white); }
a.aga-node:is(:hover, :focus-visible) .aga-node-go { transform: translateX(4px); }
[dir="rtl"] a.aga-node:is(:hover, :focus-visible) .aga-node-go { transform: scaleX(-1) translateX(4px); }

/* Numbered list beside a drawing (sunpath, trestle) */
.aga-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--navy-700); }
.aga-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4, 24px); }
.aga-list > li { border-block-end: 1px solid var(--navy-700); }
.aga-node.is-row { align-items: center; padding: 14px 10px; transition: background .25s ease; }
.aga-node.is-row .aga-node-ico { inline-size: 36px; block-size: 36px; }
.aga-node.is-row .aga-node-ico .ico { inline-size: 20px; block-size: 20px; }
.aga-node.is-row .aga-node-title { font-size: 15px; }
.aga-node.is-row .aga-node-text { font-size: 13.5px; line-height: 1.45; }
a.aga-node.is-row:is(:hover, :focus-visible), .aga-node.is-row.is-hot { background: var(--navy-800); }
.aga-node.is-row.is-hot .aga-node-no { color: var(--white); }
.aga-lead { margin: 0 0 var(--space-4, 24px); max-inline-size: 62ch; font-size: 16px; line-height: 1.6; color: var(--mist); }
.aga-motion .aga-list > li { opacity: 0; transform: translateY(10px); transition: opacity .45s ease calc(500ms + var(--i) * 70ms), transform .45s ease calc(500ms + var(--i) * 70ms); }
.aga-motion .is-in .aga-list > li { opacity: 1; transform: none; }
.aga-tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }

/* ------------------------------------------------------------------ */
/* Style 1 · bucket (feed mills and production towers)                  */
/* ------------------------------------------------------------------ */
.aga-bk { --spine: 120px; position: relative; max-inline-size: 1080px; margin-inline: auto; }
.aga-bk-tag { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
/* Head house: the roof of the tower, where the elevator discharges */
.aga-bk-head { position: relative; inline-size: min(100%, 420px); margin-inline: auto; padding: 34px 28px 22px; text-align: center; color: var(--white); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px), linear-gradient(135deg, var(--red) 0%, var(--red-700, #7d0000) 100%); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); box-shadow: 0 20px 40px rgba(165, 0, 0, .25); }
.aga-bk-head .aga-bk-tag { color: rgba(255, 255, 255, .75); }
.aga-bk-head strong { display: block; margin-block-start: 6px; font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.aga-bk-body { position: relative; }
/* Spine: the tower's columns and the two elevator legs */
.aga-bk-spine { position: absolute; inset-block: 0; inset-inline-start: calc(50% - var(--spine) / 2); inline-size: var(--spine); border-inline: 4px solid #C9D6E6; background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(143, 166, 194, .35) 46px 48px), linear-gradient(90deg, transparent 0 calc(50% - 1px), rgba(143, 166, 194, .25) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.aga-bk-leg { position: absolute; inset-block: 0; inline-size: 24px; border-inline: 2px solid #8FA6C2; background-color: rgba(6, 17, 31, .6); }
.aga-bk-leg.is-up { inset-inline-start: 18px; background-image: linear-gradient(180deg, transparent 0 10px, var(--aga-grain) 10px 20px, transparent 20px); background-size: 100% 34px; }
.aga-bk-leg.is-down { inset-inline-end: 18px; background-image: linear-gradient(180deg, transparent 0 10px, rgba(201, 214, 230, .55) 10px 20px, transparent 20px); background-size: 100% 34px; }
.aga-bk-leg.is-up::after { content: ""; position: absolute; inset-block-start: -10px; inset-inline-start: 50%; translate: -50% 0; border-inline: 7px solid transparent; border-block-end: 10px solid var(--aga-grain); }
.aga-bk-floors { position: relative; display: flex; flex-direction: column-reverse; margin: 0; padding: 0; list-style: none; }
.aga-bk-floor { position: relative; display: grid; margin-block-end: -34px; grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr); align-items: center; padding-block: 12px; }
/* Floor slab across the spine */
.aga-bk-floor::before { content: ""; position: absolute; inset-inline-start: calc(50% - var(--spine) / 2 - 10px); inline-size: calc(var(--spine) + 20px); inset-block-end: 0; block-size: 4px; background: #C9D6E6; }
.aga-bk-floor:first-child { margin-block-end: 0; }
.aga-bk-floor:last-child::after { content: ""; position: absolute; inset-inline-start: calc(50% - var(--spine) / 2 - 10px); inline-size: calc(var(--spine) + 20px); inset-block-start: 0; block-size: 4px; background: #C9D6E6; }
.aga-bk-level { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; padding: 4px 8px; background: var(--navy-950); border: 1px solid var(--gold); color: var(--gold); font-size: 11px; letter-spacing: 1px; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.aga-bk-level.is-hot { background: var(--gold); color: var(--navy-950); }
.aga-bk-floor .aga-node { grid-row: 1; padding: 16px 18px; background: rgba(6, 17, 31, .78); border: 1px solid var(--navy-700); transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.aga-bk-floor.is-start .aga-node { grid-column: 1; margin-inline-end: 18px; border-inline-end: 3px solid var(--red); }
.aga-bk-floor.is-end .aga-node { grid-column: 3; margin-inline-start: 18px; border-inline-start: 3px solid var(--aga-grain); }
.aga-bk-floor .aga-node-no { display: none; }
/* Tie from the card to the spine */
.aga-bk-floor .aga-node::after { content: ""; position: absolute; inset-block-start: 50%; inline-size: 18px; block-size: 2px; background: #8FA6C2; }
.aga-bk-floor.is-start .aga-node::after { inset-inline-end: -21px; }
.aga-bk-floor.is-end .aga-node::after { inset-inline-start: -21px; }
.aga-bk-floor a.aga-node:is(:hover, :focus-visible), .aga-bk-floor .aga-node.is-hot { background: var(--navy-800); border-color: var(--red); transform: translateY(-3px); }
.aga-bk-ground { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding-block: 18px 0; text-align: center; color: var(--mist); font-size: 15px; }
.aga-bk-ground::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 10px; background: repeating-linear-gradient(135deg, rgba(201, 214, 230, .45) 0 2px, transparent 2px 9px); border-block-start: 2px solid #C9D6E6; }

.aga-motion .aga-bk-head { opacity: 0; transform: translateY(-20px); transition: opacity .6s ease calc(400ms + var(--floors) * 110ms), transform .7s cubic-bezier(.2, .7, .2, 1) calc(400ms + var(--floors) * 110ms); }
.aga-motion .aga-bk-spine { transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s cubic-bezier(.3, .6, .2, 1); }
.aga-motion .aga-bk-floor .aga-node, .aga-motion .aga-bk-level { opacity: 0; transition: opacity .5s ease calc(300ms + var(--i) * 110ms), transform .5s ease calc(300ms + var(--i) * 110ms), border-color .25s ease, background .25s ease, color .25s ease; }
.aga-motion .aga-bk-floor.is-start .aga-node { transform: translateX(-16px); }
.aga-motion .aga-bk-floor.is-end .aga-node { transform: translateX(16px); }
[dir="rtl"].aga-motion .aga-bk-floor.is-start .aga-node, .aga-motion [dir="rtl"] .aga-bk-floor.is-start .aga-node { transform: translateX(16px); }
[dir="rtl"].aga-motion .aga-bk-floor.is-end .aga-node, .aga-motion [dir="rtl"] .aga-bk-floor.is-end .aga-node { transform: translateX(-16px); }
.aga-motion .is-in .aga-bk-head { opacity: 1; transform: none; }
.aga-motion .is-in .aga-bk-spine { transform: none; }
.aga-motion .is-in .aga-bk-floor .aga-node, .aga-motion .is-in .aga-bk-level { opacity: 1; transform: none; }
.aga-motion .is-in .aga-bk-floor a.aga-node:is(:hover, :focus-visible), .aga-motion .is-in .aga-bk-floor .aga-node.is-hot { transform: translateY(-3px); transition-delay: 0s; }
.aga-motion .is-in .aga-bk-leg.is-up { animation: aga-lift 1.6s linear 1.4s infinite; }
.aga-motion .is-in .aga-bk-leg.is-down { animation: aga-drop 1.6s linear 1.4s infinite; }
@keyframes aga-lift { to { background-position: 0 -34px; } }
@keyframes aga-drop { to { background-position: 0 34px; } }

/* ------------------------------------------------------------------ */
/* Style 2 · hopper (grain, fertiliser and bulk storage)                */
/* ------------------------------------------------------------------ */
.aga-hp { position: relative; max-inline-size: 1080px; margin-inline: auto; }
/* Grain falling into the bin */
.aga-hp-fall { position: relative; block-size: 46px; margin-inline: auto; inline-size: 120px; }
.aga-hp-fall span { position: absolute; inset-block-start: 0; inset-inline-start: calc(var(--d) * 12px + 6px); inline-size: 5px; block-size: 8px; border-radius: 50%; background: var(--aga-grain); opacity: .85; }
/* The bin: a vertical upper part, then the cone that narrows to the outlet */
.aga-hp-bin { --cone: polygon(0 0, 0 30%, 24% 100%, 76% 100%, 100% 30%, 100% 0); position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 22px 34px; }
.aga-hp-shape { position: absolute; inset: 0; clip-path: var(--cone); background: linear-gradient(180deg, rgba(6, 17, 31, .3), rgba(6, 17, 31, .8)); overflow: hidden; pointer-events: none; }
.aga-hp-fill { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(227, 183, 78, .28) 0%, rgba(227, 183, 78, .08) 75%, transparent 100%), radial-gradient(rgba(227, 183, 78, .22) 1px, transparent 1.6px) 0 0 / 10px 10px; transform-origin: bottom; }
.aga-hp-wall { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none; }
.aga-hp-wall polyline { fill: none; stroke: #C9D6E6; stroke-width: 4; stroke-linejoin: round; }
.aga-hp-wall .aga-hp-rim { stroke: #C9D6E6; stroke-width: 3; stroke-dasharray: 14 8; }
.aga-hp-row { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; inline-size: calc(100% - var(--r) * 12%); margin: 0; padding: 0; list-style: none; }
.aga-hp-row > li { display: flex; }
.aga-node.is-layer { flex: 1; padding: 16px 18px; background: rgba(10, 26, 48, .9); border: 1px solid #2B4A73; border-block-end: 3px solid var(--aga-grain); transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.aga-node.is-layer .aga-node-no { position: absolute; inset-block-start: 8px; inset-inline-end: 10px; }
a.aga-node.is-layer:is(:hover, :focus-visible), .aga-node.is-layer.is-hot { background: var(--navy-800); border-color: var(--red); transform: translateY(-3px); }
/* Outlet: the neck of the hopper and the project it feeds */
.aga-hp-outlet { position: relative; display: flex; flex-direction: column; align-items: center; }
.aga-hp-gate { display: block; inline-size: 52%; block-size: 46px; background: linear-gradient(90deg, transparent 0 4px, rgba(6, 17, 31, .75) 4px calc(100% - 4px), transparent calc(100% - 4px)), linear-gradient(90deg, #C9D6E6 0 4px, transparent 4px calc(100% - 4px), #C9D6E6 calc(100% - 4px)); clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%); position: relative; }
.aga-hp-gate::after { content: ""; position: absolute; inset-inline-start: calc(50% - 3px); inset-block: 6px 0; inline-size: 6px; background: repeating-linear-gradient(180deg, var(--aga-grain) 0 5px, transparent 5px 10px); }
.aga-hp-out { inline-size: min(100%, 460px); margin-block-start: 6px; padding: 22px 26px; text-align: center; color: var(--white); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px), linear-gradient(135deg, var(--red) 0%, var(--red-700, #7d0000) 100%); box-shadow: 0 20px 40px rgba(165, 0, 0, .25); }
.aga-hp-tag { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.aga-hp-out strong { display: block; margin-block: 6px 6px; font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.aga-hp-out span:not(.aga-hp-tag) { display: block; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); }

.aga-motion .aga-hp-fill { transform: scaleY(0); transition: transform 2.2s cubic-bezier(.3, .6, .2, 1) .3s; }
.aga-motion .aga-hp-row > li { opacity: 0; transform: translateY(-18px); transition: opacity .5s ease calc(250ms + var(--i) * 120ms), transform .55s cubic-bezier(.3, 1.3, .5, 1) calc(250ms + var(--i) * 120ms); }
.aga-motion .aga-hp-out { opacity: 0; transform: translateY(14px); transition: opacity .6s ease 1.3s, transform .6s ease 1.3s; }
.aga-motion .aga-hp-fall span { opacity: 0; }
.aga-motion .is-in .aga-hp-fill { transform: none; }
.aga-motion .is-in .aga-hp-row > li { opacity: 1; transform: none; }
.aga-motion .is-in .aga-hp-out { opacity: 1; transform: none; }
.aga-motion .is-in .aga-hp-fall span { animation: aga-fall 1.3s ease-in calc(var(--d) * 170ms) infinite; }
.aga-motion .is-in .aga-hp-gate::after { animation: aga-drop-grain .8s linear 1.6s infinite; }
@keyframes aga-fall { 0% { opacity: 0; transform: translateY(-6px); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(44px); } }
@keyframes aga-drop-grain { to { background-position: 0 10px; } }

/* ------------------------------------------------------------------ */
/* Style 3 · airflow (livestock and poultry houses)                     */
/* ------------------------------------------------------------------ */
.aga-af { max-inline-size: 1180px; margin-inline: auto; }
.aga-af-house { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr) 74px; gap: 0 18px; padding: 70px 18px 22px; border: 4px solid #C9D6E6; border-block-start: 0; background: linear-gradient(180deg, rgba(6, 17, 31, .25), rgba(6, 17, 31, .7)); }
.aga-af-roof { position: absolute; inset-inline: -4px; inset-block-start: -36px; block-size: 76px; background: linear-gradient(180deg, transparent calc(100% - 4px), #C9D6E6 calc(100% - 4px)); pointer-events: none; }
.aga-af-roof::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - 2px), #C9D6E6 calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) 0 0 / 50% 100% no-repeat, linear-gradient(to bottom left, transparent calc(50% - 2px), #C9D6E6 calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)) 100% 0 / 50% 100% no-repeat; }
.aga-af-inlet, .aga-af-fans { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.aga-af-inlet .aga-tag, .aga-af-fans .aga-tag { font-size: 10px; line-height: 1.3; }
.aga-af-louvre { inline-size: 40px; block-size: 160px; background: repeating-linear-gradient(180deg, #8FA6C2 0 3px, transparent 3px 12px); border: 2px solid #8FA6C2; }
.aga-af-fan { display: block; inline-size: 48px; block-size: 48px; }
.aga-af-fan svg { display: block; inline-size: 100%; block-size: 100%; }
.aga-af-fan circle { fill: rgba(6, 17, 31, .8); stroke: #C9D6E6; stroke-width: 2; }
.aga-af-fan path { fill: #8FA6C2; }
.aga-af-fan g { transform-origin: 20px 20px; }
.aga-af-bays { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.aga-af-bays > li { display: flex; }
.aga-node.is-bay { flex: 1; flex-direction: column; gap: 10px; padding: 16px 16px 30px; background: rgba(10, 26, 48, .88); border: 1px solid #2B4A73; border-block-start: 3px solid var(--aga-leaf); transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.aga-node.is-bay .aga-node-no { position: absolute; inset-block-start: 10px; inset-inline-end: 12px; }
.aga-node.is-bay .aga-node-go { position: absolute; inset-block-end: 10px; inset-inline-end: 12px; }
a.aga-node.is-bay:is(:hover, :focus-visible), .aga-node.is-bay.is-hot { background: var(--navy-800); border-color: var(--red); transform: translateY(-3px); }
.aga-af-streams { position: absolute; inset: 70px 92px 22px; pointer-events: none; }
.aga-af-streams span { position: absolute; inset-inline: 0; block-size: 2px; opacity: .55; background: repeating-linear-gradient(90deg, rgba(140, 197, 107, .9) 0 22px, transparent 22px 44px); }
.aga-af-streams span:nth-child(1) { inset-block-start: 12%; }
.aga-af-streams span:nth-child(2) { inset-block-start: 38%; }
.aga-af-streams span:nth-child(3) { inset-block-start: 62%; }
.aga-af-streams span:nth-child(4) { inset-block-start: 88%; }
.aga-af-center { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-block-start: 22px; text-align: center; }
.aga-af-center strong { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; color: var(--white); padding: 14px 28px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px), linear-gradient(135deg, var(--red) 0%, var(--red-700, #7d0000) 100%); }
.aga-af-center span { max-inline-size: 62ch; color: var(--mist); font-size: 15px; line-height: 1.55; }

.aga-motion .aga-af-bays > li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease calc(300ms + var(--i) * 90ms), transform .5s ease calc(300ms + var(--i) * 90ms); }
.aga-motion .aga-af-streams span { opacity: 0; transition: opacity .6s ease 1s; }
.aga-motion .is-in .aga-af-bays > li { opacity: 1; transform: none; }
.aga-motion .is-in .aga-af-streams span { opacity: .55; animation: aga-wind 1.4s linear infinite; }
.aga-motion .is-in .aga-af-streams span:nth-child(even) { animation-duration: 1.9s; }
.aga-motion .is-in .aga-af-fan g { animation: aga-spin 1.1s linear infinite; }
[dir="rtl"] .aga-af-streams { transform: scaleX(-1); }
@keyframes aga-wind { to { background-position: 44px 0; } }
@keyframes aga-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* Style 4 · sunpath (greenhouses and nurseries)                        */
/* ------------------------------------------------------------------ */
.aga-sp-vis { max-inline-size: 920px; margin-inline: auto; }
.aga-sp-vis svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.aga-sp svg text { font: 600 13px/1 var(--f-mono); fill: var(--white); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.aga-sp-arc { fill: none; stroke: rgba(227, 183, 78, .75); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.aga-sp-pos line { stroke: rgba(227, 183, 78, .16); stroke-width: 1.5; }
.aga-sp-pos circle { fill: var(--navy-950); stroke: var(--aga-grain); stroke-width: 3; transition: fill .25s ease, r .25s ease; }
.aga-sp-pos.is-hot circle { fill: var(--aga-grain); r: 21px; }
.aga-sp-pos.is-hot text { fill: var(--navy-950); }
.aga-sp-pos.is-hot line { stroke: rgba(227, 183, 78, .7); }
.aga-sp-sun circle { fill: #FFD36B; filter: drop-shadow(0 0 10px rgba(255, 211, 107, .9)); }
.aga-sp-sun { opacity: 0; }
.aga-sp-house polyline { fill: rgba(140, 197, 107, .08); stroke: #C9D6E6; stroke-width: 3; stroke-linejoin: round; }
.aga-sp-glaze { stroke: rgba(201, 214, 230, .35); stroke-width: 1.5; }
.aga-sp-gutter { stroke: #C9D6E6; stroke-width: 2; }
.aga-sp-ground { stroke: rgba(201, 214, 230, .5); stroke-width: 2; stroke-dasharray: 10 6; }
.aga-sp svg text.aga-sp-end { font-size: 11px; letter-spacing: 1.5px; fill: var(--gold); text-transform: uppercase; }
.aga-sp svg text.aga-sp-name { font-family: var(--f-display); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
.aga-sp-lead { margin-inline: auto; margin-block-start: var(--space-4, 24px); text-align: center; }
.aga-list.is-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-4, 24px); }
.aga-motion .aga-sp-arc { stroke-dashoffset: 0; opacity: 0; transition: opacity 1s ease .2s; }
.aga-motion .aga-sp-pos { opacity: 0; transition: opacity .45s ease calc(500ms + var(--i) * 130ms); }
.aga-motion .aga-sp-house { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; }
.aga-motion .is-in .aga-sp-arc, .aga-motion .is-in .aga-sp-pos, .aga-motion .is-in .aga-sp-sun { opacity: 1; }
.aga-motion .is-in .aga-sp-house { opacity: 1; transform: none; }
.aga-motion .is-in .aga-sp-sun { transition: opacity .6s ease 1.6s; }

/* ------------------------------------------------------------------ */
/* Style 5 · trestle (conveyors, silo supports and platforms)           */
/* ------------------------------------------------------------------ */
.aga-tr-vis { max-inline-size: 920px; margin-inline: auto; margin-block-end: var(--space-4, 24px); }
.aga-tr-vis svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.aga-tr svg text { font: 600 13px/1 var(--f-mono); fill: var(--white); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.aga-tr-ground { stroke: rgba(201, 214, 230, .5); stroke-width: 2; stroke-dasharray: 10 6; }
.aga-tr-silo path { fill: rgba(227, 183, 78, .1); stroke: #C9D6E6; stroke-width: 3; stroke-linejoin: round; }
.aga-tr-silo line { stroke: rgba(201, 214, 230, .45); stroke-width: 1.5; }
.aga-tr-bent polyline { fill: none; stroke: #8FA6C2; stroke-width: 3; stroke-linejoin: round; transition: stroke .25s ease; }
.aga-tr-bent line { stroke: #8FA6C2; stroke-width: 2; }
.aga-tr-bent circle { fill: var(--navy-950); stroke: #E04848; stroke-width: 3; transition: fill .25s ease, r .25s ease; }
.aga-tr-bent.is-hot polyline { stroke: var(--white); }
.aga-tr-bent.is-hot circle { fill: var(--red); stroke: var(--white); r: 19px; }
.aga-tr-gallery { fill: none; stroke: #C9D6E6; stroke-width: 14; stroke-linecap: round; }
.aga-tr-belt { fill: none; stroke: var(--navy-950); stroke-width: 6; stroke-dasharray: 10 8; stroke-linecap: butt; }
.aga-tr-pulley { fill: var(--navy-950); stroke: var(--aga-grain); stroke-width: 3; }
.aga-tr-load rect { fill: var(--aga-grain); stroke: var(--navy-950); stroke-width: 1.5; }
.aga-tr-load { opacity: 0; }
.aga-tr svg text.aga-tr-end { font-size: 11px; letter-spacing: 1.5px; fill: var(--gold); text-transform: uppercase; }
.aga-tr svg text.aga-tr-name { font-family: var(--f-display); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; }
.aga-motion .aga-tr-bent { opacity: 0; transform: translateY(16px); transition: opacity .45s ease calc(200ms + var(--i) * 110ms), transform .45s ease calc(200ms + var(--i) * 110ms); }
.aga-motion .aga-tr-gallery, .aga-motion .aga-tr-belt { stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset 1.4s cubic-bezier(.3, .6, .2, 1) .9s; }
.aga-motion .is-in .aga-tr-bent { opacity: 1; transform: none; }
.aga-motion .is-in .aga-tr-gallery { stroke-dashoffset: 0; }
.aga-motion .is-in .aga-tr-belt { stroke-dasharray: 10 8; stroke-dashoffset: 0; animation: aga-belt .9s linear 2.3s infinite; }
.aga-motion .is-in .aga-tr-load { opacity: 1; transition: opacity .5s ease 2.3s; }
@keyframes aga-belt { to { stroke-dashoffset: -18; } }

/* ------------------------------------------------------------------ */
/* Style 6 · furrow (farm and agri-business buildings)                  */
/* ------------------------------------------------------------------ */
.aga-fw { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: var(--space-4, 24px); align-items: stretch; }
.aga-fw-yard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 26px; color: var(--white); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px), linear-gradient(160deg, var(--red) 0%, var(--red-700, #7d0000) 100%); box-shadow: 0 20px 40px rgba(165, 0, 0, .25); }
.aga-fw-yard .aga-tag { color: rgba(255, 255, 255, .75); }
.aga-fw-yard strong { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.aga-fw-yard-text { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.aga-fw-sheds { display: flex; align-items: flex-end; gap: 10px; margin-block-end: auto; padding-block-end: 24px; }
.aga-fw-sheds span { display: block; inline-size: 54px; block-size: 34px; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .7); clip-path: polygon(0 35%, 50% 0, 100% 35%, 100% 100%, 0 100%); }
.aga-fw-sheds span:nth-child(2) { inline-size: 80px; block-size: 44px; }
.aga-fw-sheds span:nth-child(3) { inline-size: 40px; block-size: 28px; }
.aga-fw-yard strong { margin-block-start: 0; }
.aga-fw-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.aga-fw-row { position: relative; display: flex; min-block-size: 112px; overflow: hidden; border: 1px solid #2B4A73; background: rgba(10, 26, 48, .88); transition: border-color .25s ease; }
.aga-fw-row:has(a.aga-node:is(:hover, :focus-visible)), .aga-fw-row:has(.is-hot) { border-color: var(--red); }
.aga-fw-crop { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 38%; background: repeating-linear-gradient(90deg, var(--fc) 0 3px, transparent 3px 14px), linear-gradient(90deg, rgba(10, 26, 48, .95), transparent 40%), var(--fb); background-blend-mode: normal; }
.aga-fw-crop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, var(--fc) 0 2.5px, transparent 3px) 1px 6px / 14px 16px; transform-origin: bottom; }
.aga-fw-row.is-c0 { --fc: rgba(140, 197, 107, .7); --fb: rgba(140, 197, 107, .1); }
.aga-fw-row.is-c1 { --fc: rgba(227, 183, 78, .7); --fb: rgba(227, 183, 78, .1); }
.aga-fw-row.is-c2 { --fc: rgba(176, 132, 96, .75); --fb: rgba(176, 132, 96, .12); }
.aga-fw-label { position: absolute; inset-block-end: 8px; inset-inline-end: 10px; z-index: 1; padding: 2px 6px; background: var(--navy-950); font-size: 10px; letter-spacing: 1px; color: var(--gold); }
.aga-node.is-field { position: relative; z-index: 1; flex: 1; padding: 16px 18px; padding-inline-end: 40%; }
.aga-node.is-field .aga-node-no { display: none; }
.aga-node.is-field .aga-node-go { position: absolute; inset-block-start: 14px; inset-inline-end: 12px; }
.aga-motion .aga-fw-row { opacity: 0; transform: translateX(-14px); transition: opacity .5s ease calc(250ms + var(--i) * 90ms), transform .5s ease calc(250ms + var(--i) * 90ms), border-color .25s ease; }
[dir="rtl"].aga-motion .aga-fw-row, .aga-motion [dir="rtl"] .aga-fw-row { transform: translateX(14px); }
.aga-motion .aga-fw-crop::after { transform: scaleY(0); transition: transform .8s cubic-bezier(.3, 1.4, .5, 1) calc(800ms + var(--i) * 90ms); }
.aga-motion .aga-fw-yard { opacity: 0; transform: scale(.96); transition: opacity .6s ease, transform .6s ease; }
.aga-motion .is-in .aga-fw-row { opacity: 1; transform: none; }
.aga-motion .is-in .aga-fw-crop::after { transform: none; }
.aga-motion .is-in .aga-fw-yard { opacity: 1; transform: none; }

/* Related applications (hub_directory): three by two on desktop */
@media (min-width: 1000px) {
  .lp:has(.aga-sec) .hub-dir#applications .hub-dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ */
/* Tablets and phones                                                   */
/* ------------------------------------------------------------------ */
@media (max-width: 1099px) {
  .aga-list.is-2col { grid-template-columns: minmax(0, 1fr); }
  .aga-bk { --spine: 96px; }
  .aga-bk-floor .aga-node-text { font-size: 13.5px; }
}
@media (max-width: 899px) {
  /* Bucket: the spine runs down the start edge, every storey beside it */
  .aga-bk { --spine: 64px; }
  .aga-bk-head { inline-size: 100%; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
  .aga-bk-spine { inset-inline-start: 0; }
  .aga-bk-leg { inline-size: 14px; }
  .aga-bk-leg.is-up { inset-inline-start: 8px; }
  .aga-bk-leg.is-down { inset-inline-end: 8px; }
  .aga-bk-floor { grid-template-columns: var(--spine) minmax(0, 1fr); }
  .aga-bk-floor::before, .aga-bk-floor:last-child::after { inset-inline-start: 0; inline-size: calc(var(--spine) + 10px); }
  .aga-bk-level { grid-column: 1; writing-mode: vertical-rl; padding: 6px 3px; font-size: 10px; }
  [dir="rtl"] .aga-bk-level { writing-mode: vertical-lr; }
  .aga-bk-floor.is-start .aga-node, .aga-bk-floor.is-end .aga-node { grid-column: 2; margin-inline: 14px 0; border-inline-end: 1px solid var(--navy-700); border-inline-start: 3px solid var(--red); }
  .aga-bk-floor.is-end .aga-node { border-inline-start-color: var(--aga-grain); }
  .aga-bk-floor.is-start .aga-node::after, .aga-bk-floor.is-end .aga-node::after { inset-inline-start: -17px; inset-inline-end: auto; inline-size: 14px; }
  .aga-motion .aga-bk-floor.is-start .aga-node, .aga-motion .aga-bk-floor.is-end .aga-node { transform: translateY(12px); }
  .aga-bk-floor { margin-block-end: 0; }
  /* Hopper: two columns, then one */
  .aga-hp-row { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); inline-size: calc(100% - var(--r) * 6%); }
}
@media (max-width: 719px) {
  .aga-eco-stage { margin-block-start: var(--space-5, 32px); }
  .aga-bk-head { padding: 26px 18px 18px; }
  .aga-bk-floor .aga-node { padding: 14px; }
  .aga-hp-bin { --cone: polygon(0 0, 0 88%, 12% 100%, 88% 100%, 100% 88%, 100% 0); padding: 20px 12px 22px; }
  .aga-hp-wall { display: none; }
  .aga-hp-shape { border-inline: 3px solid #C9D6E6; }
  .aga-hp-row { grid-template-columns: minmax(0, 1fr); inline-size: calc(100% - var(--r) * 4%); gap: 10px; }
  .aga-hp-bin { gap: 10px; }
  .aga-hp-gate { inline-size: 50%; }
  .aga-hp-out { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .aga-node.is-row, .aga-node-ico, .aga-node-go, .aga-bk-floor .aga-node, .aga-bk-level, .aga-node.is-layer { transition: none; }
}

@media (max-width: 1099px) {
  .aga-af-bays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aga-list.is-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aga-fw { grid-template-columns: minmax(0, 1fr); }
  .aga-fw-yard { min-block-size: 0; }
  .aga-fw-yard strong { margin-block-start: 70px; }
}
@media (max-width: 719px) {
  .aga-af-house { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 52px 12px 14px; border-width: 3px; }
  .aga-af-roof { block-size: 56px; inset-block-start: -26px; }
  .aga-af-inlet, .aga-af-fans { flex-direction: row; }
  .aga-af-louvre { inline-size: 120px; block-size: 26px; background: repeating-linear-gradient(90deg, #8FA6C2 0 3px, transparent 3px 12px); }
  .aga-af-fan { inline-size: 36px; block-size: 36px; }
  .aga-af-bays { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .aga-af-streams { display: none; }
  .aga-list.is-3col { grid-template-columns: minmax(0, 1fr); }
  .aga-sp svg text.aga-sp-name { font-size: 26px; }
  .aga-fw-rows { grid-template-columns: minmax(0, 1fr); }
  .aga-node.is-field { padding-inline-end: calc(38% + 10px); }
}
@media (prefers-reduced-motion: reduce) {
  .aga-node.is-bay, .aga-sp-pos circle, .aga-tr-bent circle, .aga-tr-bent polyline, .aga-fw-row { transition: none; }
}
