/* Quota Global: the featured program (sugar) and the future-development sequence.
   Everything here is image- and CSS-driven: no WebGL renderer, no canvas loop. Stills come from freight-src/studio. */
.commodity-stage{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,5fr);gap:clamp(32px,5vw,72px);align-items:start;margin-top:clamp(36px,4.6vw,64px)}
.commodity-stage.is-future{grid-template-columns:minmax(0,1fr)}
.commodity-stage.is-future .sg-figure{display:none}
.commodity-panel[hidden]{display:none!important}

/* ---- sugar figure ---- */
.sg-figure{margin:0;position:sticky;top:calc(var(--nav-h,72px) + 24px)}
.sg-frame{position:relative;aspect-ratio:5/4;overflow:hidden;border-radius:3px;background:#eeecf7;box-shadow:0 1px 0 var(--rule),0 50px 90px -50px rgba(46,27,122,.4)}
.sg-pic{display:contents}
.sg-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;opacity:0;transform:scale(1.05);transition:opacity .55s ease,transform 1.1s cubic-bezier(.16,1,.3,1)}
.sg-img.is-on{opacity:1;transform:none}
.sg-frame[data-view="pack"] .sg-img.is-on{transform:none}
/* the square studies sit slightly low in the 5:4 frame so the sack top and the crystals both stay inside it */
.sg-img[data-view="pack"],.sg-img[data-view="program"]{object-position:50% 56%}
html.motion-off .sg-img,html.reduce-motion .sg-img{transition:none;transform:none}
.sg-notes{position:absolute;inset:0;pointer-events:none}
.sg-note{position:absolute;left:var(--x);top:var(--y);opacity:0;transition:opacity .4s ease .12s;display:block;white-space:nowrap}
.sg-note i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:#fff;border:1.5px solid var(--purple-accent,#6C4FE0);box-shadow:0 0 0 4px rgba(108,79,224,.16)}
.sg-note::before{content:"";position:absolute;left:0;top:0;height:1px;width:calc(var(--dx) * 3);max-width:90px;background:rgba(46,27,122,.55);transform-origin:left}
.sg-note b,.sg-note em{display:block;position:relative;left:min(calc(var(--dx) * 3),90px);margin-left:10px;font-style:normal}
.sg-note b{margin-top:-9px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--ink)}
.sg-note em{margin-top:3px;font-size:12px;color:var(--ink-2);letter-spacing:.01em}
.sg-frame[data-view="spec"] .sg-note[data-view="spec"],.sg-frame[data-view="pack"] .sg-note[data-view="pack"],.sg-frame[data-view="program"] .sg-note[data-view="program"]{opacity:1}
html.motion-off .sg-note,html.reduce-motion .sg-note{transition:none}
.sg-cap{margin-top:14px;font-size:11.5px;line-height:1.5;color:var(--grey-600);max-width:46ch}
.sg-views{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px;border-top:1px solid var(--rule-strong,rgba(14,12,24,.18))}
.sg-views button{position:relative;appearance:none;background:none;border:0;padding:16px 4px 14px 0;text-align:left;cursor:pointer;color:var(--grey-600);font:inherit;font-size:13.5px;font-weight:600;letter-spacing:-.005em;display:flex;flex-direction:column;gap:6px;min-height:48px;transition:color .25s}
.sg-views button span{font-size:10.5px;letter-spacing:.2em;font-weight:700;color:var(--grey-500,#8b8898)}
.sg-views button::before{content:"";position:absolute;left:0;right:12px;top:-1px;height:2px;background:var(--purple-accent,#6C4FE0);transform:scaleX(0);transform-origin:left;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.sg-views button[aria-selected="true"]{color:var(--ink)}
.sg-views button[aria-selected="true"]::before{transform:none}
.sg-views button[aria-selected="true"] span{color:var(--purple-mid)}
.sg-views button:hover{color:var(--ink)}
.sg-views button:focus-visible{outline:2px solid var(--purple-accent,#6C4FE0);outline-offset:2px;border-radius:2px}
html.motion-off .sg-views button::before,html.reduce-motion .sg-views button::before{transition:none}

/* the specification column: the view only changes which group is marked, never what is shown */
.spec-primary>div,.spec-row{position:relative}
.spec-primary>div::before,.spec-row::before{content:"";position:absolute;left:-14px;top:14px;bottom:2px;width:2px;background:var(--purple-accent,#6C4FE0);opacity:0;transition:opacity .3s}
.spec-row::before{top:0;bottom:0}
.commodity-panel[data-emph="spec"] .spec-primary>[data-group="spec"]::before,.commodity-panel[data-emph="pack"] .spec-primary>[data-group="pack"]::before,.commodity-panel[data-emph="program"] .spec-row[data-group="program"]::before{opacity:1}
.commodity-panel[data-emph="spec"] .spec-primary>[data-group="spec"] .sp-label,.commodity-panel[data-emph="pack"] .spec-primary>[data-group="pack"] .sp-label{color:var(--purple-mid)}
.commodity-panel[data-emph="program"] .spec-row[data-group="program"] span:first-child{color:var(--purple-mid)}

/* ---- future development: a spacious sequence of material studies ---- */
.fut-head{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(20px,5vw,80px);align-items:end}
.fut-head .future-rail-intro{max-width:62ch;font-size:15px;line-height:1.65;color:var(--ink-2);margin:0}
.fut-head .future-status{margin:0;align-self:end}
.future-tabs{display:flex;gap:10px;height:clamp(360px,42vw,540px);margin-top:clamp(26px,3.4vw,44px);padding:0;border:0}
.future-tab{position:relative;appearance:none;flex:1 1 0;min-width:0;padding:0;border:0;border-radius:3px;overflow:hidden;background:#14111F;color:#fff;cursor:pointer;text-align:left;font:inherit;transition:flex-grow .75s cubic-bezier(.16,1,.3,1);isolation:isolate}
.future-tab[aria-selected="true"]{flex-grow:4.4;background:#14111F;color:#fff;border:0}
.future-tab img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;z-index:-2;filter:brightness(.62) saturate(.8);transform:scale(1.04);transition:filter .6s ease,transform 1.2s cubic-bezier(.16,1,.3,1)}
.future-tab::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(11,10,16,.5),rgba(11,10,16,0) 32%,rgba(11,10,16,.72));transition:opacity .5s}
.future-tab[aria-selected="true"] img{filter:none;transform:none}
.future-tab.is-preview img{filter:brightness(.9) saturate(.95)}
.future-tab[aria-selected="true"]::after{opacity:.75}
@media (hover:hover) and (pointer:fine){.future-tab:not([aria-selected="true"]):hover{flex-grow:1.5}.future-tab:not([aria-selected="true"]):hover img{filter:brightness(.9) saturate(.95)}}
.future-tab:focus-visible{outline:2px solid var(--purple-accent,#6C4FE0);outline-offset:3px}
.ft-n{position:absolute;left:18px;top:16px;font-size:11px;letter-spacing:.22em;font-weight:700;color:#C9BFF5}
.ft-t{position:absolute;left:18px;bottom:18px;max-width:calc(100% - 36px);font-size:clamp(15px,1.5vw,20px);line-height:1.15;font-weight:700;letter-spacing:-.02em;text-shadow:0 1px 14px rgba(0,0,0,.55)}
.future-tab:not([aria-selected="true"]) .ft-t{writing-mode:vertical-rl;transform:rotate(180deg);left:auto;right:18px;bottom:18px;max-width:none;max-height:calc(100% - 70px);font-size:14px;letter-spacing:0;font-weight:600;white-space:nowrap;opacity:.92}
.future-tab[aria-selected="true"]{box-shadow:inset 0 0 0 1px rgba(201,191,245,.5)}
.fut-caption{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(20px,5vw,80px);align-items:start;margin-top:clamp(22px,3vw,36px);padding-top:clamp(20px,2.4vw,30px);border-top:1px solid var(--rule)}
.fut-state{display:block;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--purple-mid)}
.fut-title h3{max-width:none;margin-top:12px;font-size:clamp(28px,3.4vw,50px)}
.fut-body .future-desc{margin:0;max-width:56ch;min-height:0;font-size:clamp(15.5px,1.3vw,18px);line-height:1.62;color:var(--ink-2)}
.fut-body .commodity-cta{margin-top:20px}
.fut-note{margin:clamp(22px,3vw,34px) 0 0;font-size:11.5px;line-height:1.5;color:var(--grey-600);max-width:70ch}
.fut-caption.is-swap .fut-title h3,.fut-caption.is-swap .future-desc{opacity:.0}
.fut-title h3,.future-desc{transition:opacity .25s ease}
html.motion-off .fut-title h3,html.motion-off .future-desc,html.reduce-motion .fut-title h3,html.reduce-motion .future-desc{transition:none}
html.motion-off .future-tab,html.reduce-motion .future-tab,html.motion-off .future-tab img,html.reduce-motion .future-tab img{transition:none}

@media (max-width:980px){
  .commodity-stage{grid-template-columns:minmax(0,1fr);gap:36px}
  .sg-figure{position:relative;top:auto;max-width:560px}
  .fut-head,.fut-caption{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media (max-width:640px){
  .sg-note::before{display:none}
  .sg-note b,.sg-note em{left:0;margin-left:14px}
  .sg-note b{font-size:10px;letter-spacing:.14em}
}
@media (max-width:820px){
  .sg-frame{aspect-ratio:5/6}
  .future-tabs{flex-direction:column;height:auto;gap:8px}
  .future-tab{flex:none;height:78px;transition:height .6s cubic-bezier(.16,1,.3,1)}
  .future-tab[aria-selected="true"]{height:min(86vw,340px)}
  .future-tab:not([aria-selected="true"]) .ft-t{writing-mode:horizontal-tb;transform:none;left:18px;right:auto;bottom:auto;top:50%;margin-top:-10px;max-height:none;font-size:15px}
  .future-tab:not([aria-selected="true"]) .ft-n{top:50%;margin-top:-6px;left:auto;right:18px}
  .future-tab:not([aria-selected="true"]) img{object-position:50% 50%}
  .sg-views button{font-size:12.5px}
  .sg-note em{display:none}
}
